From 4496622438a1a314300ed796b4be267699869d13 Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Tue, 30 Jul 2019 19:51:27 +0300 Subject: [PATCH] fix: rename ObjectDescription to SchemaDefinition as discussed --- demo/openapi.yaml | 4 ++-- src/utils/openapi.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/demo/openapi.yaml b/demo/openapi.yaml index 39669574..b7c1833a 100644 --- a/demo/openapi.yaml +++ b/demo/openapi.yaml @@ -66,11 +66,11 @@ tags: - name: pet_model x-displayName: The Pet Model description: | - + - name: store_model x-displayName: The Order Model description: | - + x-tagGroups: - name: General tags: diff --git a/src/utils/openapi.ts b/src/utils/openapi.ts index f4d9eb45..374fd70f 100644 --- a/src/utils/openapi.ts +++ b/src/utils/openapi.ts @@ -507,7 +507,7 @@ export function normalizeServers( export const SECURITY_DEFINITIONS_COMPONENT_NAME = 'security-definitions'; export const SECURITY_DEFINITIONS_JSX_NAME = 'SecurityDefinitions'; -export const SCHEMA_DEFINITION_JSX_NAME = 'ObjectDescription'; +export const SCHEMA_DEFINITION_JSX_NAME = 'SchemaDefinition'; export let SECURITY_SCHEMES_SECTION_PREFIX = 'section/Authentication/'; export function setSecuritySchemePrefix(prefix: string) {