Skip to content

Commit

Permalink
feat(content-serdes): add application/ld+json to supported Content-Types
Browse files Browse the repository at this point in the history
This is required for fully supporting the `exploreDirectory` method.

See https://www.w3.org/TR/wot-discovery/#exploration-directory-api-things-listing
  • Loading branch information
JKRhb committed Dec 14, 2023
1 parent d12f665 commit bfcf85c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/core/src/content-serdes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ export class ContentSerdes {
this.instance.addCodec(new JsonCodec(), true);
this.instance.addCodec(new JsonCodec("application/senml+json"));
this.instance.addCodec(new JsonCodec("application/td+json"));
this.instance.addCodec(new JsonCodec("application/ld+json"));
// CBOR
this.instance.addCodec(new CborCodec(), true);
// Text
Expand Down

0 comments on commit bfcf85c

Please sign in to comment.