diff --git a/src/components/Fields/FieldDetails.tsx b/src/components/Fields/FieldDetails.tsx index 87aebdac..0d063226 100644 --- a/src/components/Fields/FieldDetails.tsx +++ b/src/components/Fields/FieldDetails.tsx @@ -28,7 +28,14 @@ export class FieldDetails extends React.PureComponent {
{schema.typePrefix} {schema.displayType} - {schema.displayFormat && <{schema.displayFormat}> } + {schema.displayFormat && ( + + {' '} + < + {schema.displayFormat} + >{' '} + + )} {schema.title && ({schema.title}) } {schema.nullable && Nullable } diff --git a/src/components/PayloadSamples/MediaTypeSamples.tsx b/src/components/PayloadSamples/MediaTypeSamples.tsx index 9101f2fa..1ae2d2d2 100644 --- a/src/components/PayloadSamples/MediaTypeSamples.tsx +++ b/src/components/PayloadSamples/MediaTypeSamples.tsx @@ -34,7 +34,9 @@ export class MediaTypeSamples extends React.Component { return ( - {examplesNames.map(name => {examples[name].summary || name} )} + {examplesNames.map(name => ( + {examples[name].summary || name} + ))} {examplesNames.map(name => ( {sampleView(examples[name].value)} diff --git a/src/components/SearchBox/styled.elements.tsx b/src/components/SearchBox/styled.elements.tsx index 26d87337..36222aee 100644 --- a/src/components/SearchBox/styled.elements.tsx +++ b/src/components/SearchBox/styled.elements.tsx @@ -24,7 +24,7 @@ export const SearchInput = styled.input.attrs({ outline: none; `; -export const SearchIcon = styled((props: {className?: string}) => ( +export const SearchIcon = styled((props: { className?: string }) => ( {scheme.id} {scheme.scopes.length > 0 && ' ('} - {scheme.scopes.map(scope => {scope})} + {scheme.scopes.map(scope => ( + {scope} + ))} {scheme.scopes.length > 0 && ') '} ); @@ -117,7 +119,9 @@ export class SecurityRequirements extends React.PureComponentAuthorizations: - {securities.map((security, idx) => )} + {securities.map((security, idx) => ( + + ))} ); diff --git a/src/services/MenuStore.ts b/src/services/MenuStore.ts index c11fe56a..f775070b 100644 --- a/src/services/MenuStore.ts +++ b/src/services/MenuStore.ts @@ -52,12 +52,14 @@ export class MenuStore { /** * active item absolute index (when flattened). -1 means nothing is selected */ - @observable activeItemIdx: number = -1; + @observable + activeItemIdx: number = -1; /** * whether sidebar with menu is opened or not */ - @observable sideBarOpened: boolean = false; + @observable + sideBarOpened: boolean = false; items: IMenuItem[]; flatItems: IMenuItem[]; diff --git a/src/services/models/Field.ts b/src/services/models/Field.ts index 1dba916f..192c9ee2 100644 --- a/src/services/models/Field.ts +++ b/src/services/models/Field.ts @@ -10,7 +10,8 @@ import { SchemaModel } from './Schema'; * Field or Parameter model ready to be used by components */ export class FieldModel { - @observable expanded: boolean = false; + @observable + expanded: boolean = false; schema: SchemaModel; name: string; diff --git a/src/services/models/Group.model.ts b/src/services/models/Group.model.ts index 34f2b73c..c1aaa246 100644 --- a/src/services/models/Group.model.ts +++ b/src/services/models/Group.model.ts @@ -21,8 +21,10 @@ export class GroupModel implements IMenuItem { parent?: GroupModel; externalDocs?: OpenAPIExternalDocumentation; - @observable active: boolean = false; - @observable expanded: boolean = false; + @observable + active: boolean = false; + @observable + expanded: boolean = false; depth: number; level: number; diff --git a/src/services/models/MediaContent.ts b/src/services/models/MediaContent.ts index dd3cc300..32fd770e 100644 --- a/src/services/models/MediaContent.ts +++ b/src/services/models/MediaContent.ts @@ -14,7 +14,8 @@ import { RedocNormalizedOptions } from '../RedocNormalizedOptions'; export class MediaContentModel { mediaTypes: MediaTypeModel[]; - @observable activeMimeIdx = 0; + @observable + activeMimeIdx = 0; /** * @param isRequestType needed to know if skipe RO/RW fields in objects diff --git a/src/services/models/Operation.ts b/src/services/models/Operation.ts index c1abcdce..a63fa776 100644 --- a/src/services/models/Operation.ts +++ b/src/services/models/Operation.ts @@ -40,9 +40,12 @@ export class OperationModel implements IMenuItem { depth: number; - @observable ready?: boolean = true; - @observable active: boolean = false; - @observable expanded: boolean = false; + @observable + ready?: boolean = true; + @observable + active: boolean = false; + @observable + expanded: boolean = false; //#endregion pointer: string; diff --git a/src/services/models/Response.ts b/src/services/models/Response.ts index c18f4097..3fc4d06c 100644 --- a/src/services/models/Response.ts +++ b/src/services/models/Response.ts @@ -9,7 +9,8 @@ import { FieldModel } from './Field'; import { MediaContentModel } from './MediaContent'; export class ResponseModel { - @observable expanded: boolean; + @observable + expanded: boolean; content?: MediaContentModel; code: string; diff --git a/src/services/models/Schema.ts b/src/services/models/Schema.ts index 1b9abfd0..a53ad183 100644 --- a/src/services/models/Schema.ts +++ b/src/services/models/Schema.ts @@ -48,7 +48,8 @@ export class SchemaModel { oneOf?: SchemaModel[]; oneOfType: string; discriminatorProp: string; - @observable activeOneOf: number = 0; + @observable + activeOneOf: number = 0; rawSchema: OpenAPISchema; schema: MergedOpenAPISchema;