From 6606bb43fa6a29de9209117160c6a74611876d81 Mon Sep 17 00:00:00 2001 From: Gheorghe Date: Mon, 24 May 2021 14:28:09 +0300 Subject: [PATCH] Added ld+json suppoprt --- src/openApi/v3/parser/getContent.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/openApi/v3/parser/getContent.ts b/src/openApi/v3/parser/getContent.ts index 0a2a4f4e3..0e7c6a6f0 100644 --- a/src/openApi/v3/parser/getContent.ts +++ b/src/openApi/v3/parser/getContent.ts @@ -6,6 +6,9 @@ import type { OpenApiSchema } from '../interfaces/OpenApiSchema'; export function getContent(openApi: OpenApi, content: Dictionary): OpenApiSchema | null { /* prettier-ignore */ return ( + content['application/ld+json'] && + content['application/ld+json'].schema + ) || ( content['application/json-patch+json'] && content['application/json-patch+json'].schema ) || (