From 9bf45d810e145b5867e54d63bf8ce38821c0fa9b Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Mon, 29 Jul 2019 17:14:32 +0300 Subject: [PATCH] chore: rename ObjectDescription to SchemaDefinition --- .../SchemaDefinition.tsx} | 4 ++-- src/services/AppStore.ts | 8 ++++---- src/utils/openapi.ts | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) rename src/components/{ObjectDescription/ObjectDescription.tsx => SchemaDefinition/SchemaDefinition.tsx} (94%) diff --git a/src/components/ObjectDescription/ObjectDescription.tsx b/src/components/SchemaDefinition/SchemaDefinition.tsx similarity index 94% rename from src/components/ObjectDescription/ObjectDescription.tsx rename to src/components/SchemaDefinition/SchemaDefinition.tsx index 0aa4672a..9515cf99 100644 --- a/src/components/ObjectDescription/ObjectDescription.tsx +++ b/src/components/SchemaDefinition/SchemaDefinition.tsx @@ -18,7 +18,7 @@ export interface ObjectDescriptionProps { options: RedocNormalizedOptions; } -export class ObjectDescription extends React.PureComponent { +export class SchemaDefinition extends React.PureComponent { private static getMediaType(schemaRef: string, exampleRef?: string): OpenAPIMediaType { if (!schemaRef) { return {}; @@ -44,7 +44,7 @@ export class ObjectDescription extends React.PureComponent ({ parser: store.spec.parser, options: store.options, diff --git a/src/utils/openapi.ts b/src/utils/openapi.ts index 6b667ee9..e4524f56 100644 --- a/src/utils/openapi.ts +++ b/src/utils/openapi.ts @@ -497,7 +497,7 @@ export function normalizeServers( export const SECURITY_DEFINITIONS_COMPONENT_NAME = 'security-definitions'; export const SECURITY_DEFINITIONS_JSX_NAME = 'SecurityDefinitions'; -export const OBJECT_DEFINTION_JSX_NAME = 'ObjectDescription'; +export const SCHEMA_DEFINITION_JSX_NAME = 'ObjectDescription'; export let SECURITY_SCHEMES_SECTION_PREFIX = 'section/Authentication/'; export function setSecuritySchemePrefix(prefix: string) {