diff --git a/.changeset/long-icons-shave.md b/.changeset/long-icons-shave.md new file mode 100644 index 000000000..74e70187e --- /dev/null +++ b/.changeset/long-icons-shave.md @@ -0,0 +1,5 @@ +--- +"@hey-api/openapi-ts": minor +--- + +feat: add JSON-LD to content parsing diff --git a/packages/openapi-ts/src/openApi/v3/parser/getContent.ts b/packages/openapi-ts/src/openApi/v3/parser/getContent.ts index fe0b2c16f..07ed845d8 100644 --- a/packages/openapi-ts/src/openApi/v3/parser/getContent.ts +++ b/packages/openapi-ts/src/openApi/v3/parser/getContent.ts @@ -11,6 +11,7 @@ export interface Content { const BASIC_MEDIA_TYPES = [ 'application/json-patch+json', 'application/json', + 'application/ld+json', 'application/x-www-form-urlencoded', 'text/json', 'text/plain',