From 0538b31122ff635d22a17d3544aa690aaf5709c1 Mon Sep 17 00:00:00 2001 From: Phuc Tran Date: Mon, 15 Apr 2024 11:50:54 +0200 Subject: [PATCH] feat: add JSON-LD to content parsing --- .changeset/long-icons-shave.md | 5 +++++ packages/openapi-ts/src/openApi/v3/parser/getContent.ts | 1 + 2 files changed, 6 insertions(+) create mode 100644 .changeset/long-icons-shave.md 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',