mirror of
https://github.com/Redocly/redoc.git
synced 2025-08-02 19:30:19 +03:00
Merge 6338fdc51c
into 3f3f9551ee
This commit is contained in:
commit
1a90682344
|
@ -66,6 +66,14 @@ If set to `true`, the pattern is not shown in the schema.
|
||||||
|
|
||||||
Hides the schema title next to to the type.
|
Hides the schema title next to to the type.
|
||||||
|
|
||||||
|
### hideObjectTitle
|
||||||
|
|
||||||
|
Hides the object title in the schema.
|
||||||
|
|
||||||
|
### hideObjectDescription
|
||||||
|
|
||||||
|
Hides the object description in the schema.
|
||||||
|
|
||||||
### hideSecuritySection
|
### hideSecuritySection
|
||||||
|
|
||||||
Hides the Security panel section.
|
Hides the Security panel section.
|
||||||
|
|
|
@ -104,7 +104,8 @@ export class Field extends React.Component<FieldProps> {
|
||||||
schema={field.schema}
|
schema={field.schema}
|
||||||
skipReadOnly={this.props.skipReadOnly}
|
skipReadOnly={this.props.skipReadOnly}
|
||||||
skipWriteOnly={this.props.skipWriteOnly}
|
skipWriteOnly={this.props.skipWriteOnly}
|
||||||
showTitle={this.props.showTitle}
|
hideObjectTitle={this.props.hideObjectTitle}
|
||||||
|
hideObjectDescription={this.props.hideObjectDescription}
|
||||||
level={this.props.level}
|
level={this.props.level}
|
||||||
/>
|
/>
|
||||||
</InnerPropertiesWrap>
|
</InnerPropertiesWrap>
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
import { DropdownOrLabel, DropdownOrLabelProps } from '../DropdownOrLabel/DropdownOrLabel';
|
import { DropdownOrLabel, DropdownOrLabelProps } from '../DropdownOrLabel/DropdownOrLabel';
|
||||||
import { ParametersGroup } from './ParametersGroup';
|
import { ParametersGroup } from './ParametersGroup';
|
||||||
|
import { OptionsContext } from '../OptionsProvider';
|
||||||
|
|
||||||
import { UnderlinedHeader } from '../../common-elements';
|
import { UnderlinedHeader } from '../../common-elements';
|
||||||
|
|
||||||
|
@ -29,6 +30,8 @@ export interface ParametersProps {
|
||||||
const PARAM_PLACES = ['path', 'query', 'cookie', 'header'];
|
const PARAM_PLACES = ['path', 'query', 'cookie', 'header'];
|
||||||
|
|
||||||
export class Parameters extends React.PureComponent<ParametersProps> {
|
export class Parameters extends React.PureComponent<ParametersProps> {
|
||||||
|
static contextType = OptionsContext;
|
||||||
|
|
||||||
orderParams(params: FieldModel[]): Record<string, FieldModel[]> {
|
orderParams(params: FieldModel[]): Record<string, FieldModel[]> {
|
||||||
const res = {};
|
const res = {};
|
||||||
params.forEach(param => {
|
params.forEach(param => {
|
||||||
|
@ -38,6 +41,7 @@ export class Parameters extends React.PureComponent<ParametersProps> {
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
const { hideObjectTitle, hideObjectDescription } = this.context;
|
||||||
const { body, parameters = [] } = this.props;
|
const { body, parameters = [] } = this.props;
|
||||||
if (body === undefined && parameters === undefined) {
|
if (body === undefined && parameters === undefined) {
|
||||||
return null;
|
return null;
|
||||||
|
@ -63,6 +67,8 @@ export class Parameters extends React.PureComponent<ParametersProps> {
|
||||||
content={bodyContent}
|
content={bodyContent}
|
||||||
description={bodyDescription}
|
description={bodyDescription}
|
||||||
bodyRequired={bodyRequired}
|
bodyRequired={bodyRequired}
|
||||||
|
hideObjectTitle={hideObjectTitle}
|
||||||
|
hideObjectDescription={hideObjectDescription}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
</>
|
</>
|
||||||
|
@ -90,8 +96,10 @@ export function BodyContent(props: {
|
||||||
content: MediaContentModel;
|
content: MediaContentModel;
|
||||||
description?: string;
|
description?: string;
|
||||||
bodyRequired?: boolean;
|
bodyRequired?: boolean;
|
||||||
|
hideObjectTitle?: boolean;
|
||||||
|
hideObjectDescription?: boolean;
|
||||||
}): JSX.Element {
|
}): JSX.Element {
|
||||||
const { content, description, bodyRequired } = props;
|
const { content, description, bodyRequired, hideObjectTitle, hideObjectDescription } = props;
|
||||||
const { isRequestType } = content;
|
const { isRequestType } = content;
|
||||||
return (
|
return (
|
||||||
<MediaTypesSwitch
|
<MediaTypesSwitch
|
||||||
|
@ -108,6 +116,8 @@ export function BodyContent(props: {
|
||||||
<Schema
|
<Schema
|
||||||
skipReadOnly={isRequestType}
|
skipReadOnly={isRequestType}
|
||||||
skipWriteOnly={!isRequestType}
|
skipWriteOnly={!isRequestType}
|
||||||
|
hideObjectTitle={hideObjectTitle}
|
||||||
|
hideObjectDescription={hideObjectDescription}
|
||||||
key="schema"
|
key="schema"
|
||||||
schema={schema}
|
schema={schema}
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -11,9 +11,13 @@ import { Extensions } from '../Fields/Extensions';
|
||||||
import { Markdown } from '../Markdown/Markdown';
|
import { Markdown } from '../Markdown/Markdown';
|
||||||
import { ResponseHeaders } from './ResponseHeaders';
|
import { ResponseHeaders } from './ResponseHeaders';
|
||||||
import { ConstraintsView } from '../Fields/FieldConstraints';
|
import { ConstraintsView } from '../Fields/FieldConstraints';
|
||||||
|
import { OptionsContext } from '../OptionsProvider';
|
||||||
|
|
||||||
export class ResponseDetails extends React.PureComponent<{ response: ResponseModel }> {
|
export class ResponseDetails extends React.PureComponent<{ response: ResponseModel }> {
|
||||||
|
static contextType = OptionsContext;
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
const { hideObjectTitle, hideObjectDescription } = this.context;
|
||||||
const { description, extensions, headers, content } = this.props.response;
|
const { description, extensions, headers, content } = this.props.response;
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
@ -27,7 +31,13 @@ export class ResponseDetails extends React.PureComponent<{ response: ResponseMod
|
||||||
{schema?.type === 'object' && (
|
{schema?.type === 'object' && (
|
||||||
<ConstraintsView constraints={schema?.constraints || []} />
|
<ConstraintsView constraints={schema?.constraints || []} />
|
||||||
)}
|
)}
|
||||||
<Schema skipWriteOnly={true} key="schema" schema={schema} />
|
<Schema
|
||||||
|
hideObjectTitle={hideObjectTitle}
|
||||||
|
hideObjectDescription={hideObjectDescription}
|
||||||
|
skipWriteOnly={true}
|
||||||
|
key="schema"
|
||||||
|
schema={schema}
|
||||||
|
/>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}}
|
}}
|
||||||
|
|
|
@ -1,9 +1,13 @@
|
||||||
import { observer } from 'mobx-react';
|
import { observer } from 'mobx-react';
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
|
|
||||||
|
import styled from '../../styled-components';
|
||||||
|
import { H3 } from '../../common-elements/headers';
|
||||||
|
import { Markdown } from '../Markdown/Markdown';
|
||||||
|
|
||||||
import { SchemaModel } from '../../services/models';
|
import { SchemaModel } from '../../services/models';
|
||||||
|
|
||||||
import { PropertiesTable, PropertiesTableCaption } from '../../common-elements/fields-layout';
|
import { PropertiesTable } from '../../common-elements/fields-layout';
|
||||||
import { Field } from '../Fields/Field';
|
import { Field } from '../Fields/Field';
|
||||||
import { DiscriminatorDropdown } from './DiscriminatorDropdown';
|
import { DiscriminatorDropdown } from './DiscriminatorDropdown';
|
||||||
import { SchemaProps } from './Schema';
|
import { SchemaProps } from './Schema';
|
||||||
|
@ -18,13 +22,26 @@ export interface ObjectSchemaProps extends SchemaProps {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export const ObjectSchemaDetails = styled.div`
|
||||||
|
margin: 0 0 0.5em 0;
|
||||||
|
`;
|
||||||
|
|
||||||
|
export const ObjectSchemaTitle = styled(H3)`
|
||||||
|
margin: 0.5em 0 0 0;
|
||||||
|
`;
|
||||||
|
|
||||||
|
export const ObjectSchemaDescription = styled.div`
|
||||||
|
margin: 0.5em 0 0 0;
|
||||||
|
`;
|
||||||
|
|
||||||
export const ObjectSchema = observer(
|
export const ObjectSchema = observer(
|
||||||
({
|
({
|
||||||
schema: { fields = [], title },
|
schema: { fields = [], title, description },
|
||||||
showTitle,
|
|
||||||
discriminator,
|
discriminator,
|
||||||
skipReadOnly,
|
skipReadOnly,
|
||||||
skipWriteOnly,
|
skipWriteOnly,
|
||||||
|
hideObjectTitle,
|
||||||
|
hideObjectDescription,
|
||||||
level,
|
level,
|
||||||
}: ObjectSchemaProps) => {
|
}: ObjectSchemaProps) => {
|
||||||
const { expandSingleSchemaField, showObjectSchemaExamples, schemaExpansionLevel } =
|
const { expandSingleSchemaField, showObjectSchemaExamples, schemaExpansionLevel } =
|
||||||
|
@ -48,37 +65,48 @@ export const ObjectSchema = observer(
|
||||||
(expandSingleSchemaField && filteredFields.length === 1) || schemaExpansionLevel >= level!;
|
(expandSingleSchemaField && filteredFields.length === 1) || schemaExpansionLevel >= level!;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<PropertiesTable>
|
<div>
|
||||||
{showTitle && <PropertiesTableCaption>{title}</PropertiesTableCaption>}
|
<ObjectSchemaDetails>
|
||||||
<tbody>
|
{!hideObjectTitle && <ObjectSchemaTitle>{title}</ObjectSchemaTitle>}
|
||||||
{mapWithLast(filteredFields, (field, isLast) => {
|
{!hideObjectDescription && (
|
||||||
return (
|
<ObjectSchemaDescription>
|
||||||
<Field
|
<Markdown compact={true} source={description} />
|
||||||
key={field.name}
|
</ObjectSchemaDescription>
|
||||||
isLast={isLast}
|
)}
|
||||||
field={field}
|
</ObjectSchemaDetails>
|
||||||
expandByDefault={expandByDefault}
|
|
||||||
renderDiscriminatorSwitch={
|
<PropertiesTable>
|
||||||
discriminator?.fieldName === field.name
|
<tbody>
|
||||||
? () => (
|
{mapWithLast(filteredFields, (field, isLast) => {
|
||||||
<DiscriminatorDropdown
|
return (
|
||||||
parent={discriminator!.parentSchema}
|
<Field
|
||||||
enumValues={field.schema.enum}
|
key={field.name}
|
||||||
/>
|
isLast={isLast}
|
||||||
)
|
field={field}
|
||||||
: undefined
|
expandByDefault={expandByDefault}
|
||||||
}
|
renderDiscriminatorSwitch={
|
||||||
className={field.expanded ? 'expanded' : undefined}
|
discriminator?.fieldName === field.name
|
||||||
showExamples={showObjectSchemaExamples}
|
? () => (
|
||||||
skipReadOnly={skipReadOnly}
|
<DiscriminatorDropdown
|
||||||
skipWriteOnly={skipWriteOnly}
|
parent={discriminator!.parentSchema}
|
||||||
showTitle={showTitle}
|
enumValues={field.schema.enum}
|
||||||
level={level}
|
/>
|
||||||
/>
|
)
|
||||||
);
|
: undefined
|
||||||
})}
|
}
|
||||||
</tbody>
|
className={field.expanded ? 'expanded' : undefined}
|
||||||
</PropertiesTable>
|
showExamples={showObjectSchemaExamples}
|
||||||
|
skipReadOnly={skipReadOnly}
|
||||||
|
skipWriteOnly={skipWriteOnly}
|
||||||
|
hideObjectTitle={hideObjectTitle}
|
||||||
|
hideObjectDescription={hideObjectDescription}
|
||||||
|
level={level}
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
})}
|
||||||
|
</tbody>
|
||||||
|
</PropertiesTable>
|
||||||
|
</div>
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
|
@ -13,9 +13,10 @@ import { RecursiveSchema } from './RecursiveSchema';
|
||||||
import { isArray } from '../../utils/helpers';
|
import { isArray } from '../../utils/helpers';
|
||||||
|
|
||||||
export interface SchemaOptions {
|
export interface SchemaOptions {
|
||||||
showTitle?: boolean;
|
|
||||||
skipReadOnly?: boolean;
|
skipReadOnly?: boolean;
|
||||||
skipWriteOnly?: boolean;
|
skipWriteOnly?: boolean;
|
||||||
|
hideObjectTitle?: boolean;
|
||||||
|
hideObjectDescription?: boolean;
|
||||||
level?: number;
|
level?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -14,6 +14,8 @@ export interface ObjectDescriptionProps {
|
||||||
exampleRef?: string;
|
exampleRef?: string;
|
||||||
showReadOnly?: boolean;
|
showReadOnly?: boolean;
|
||||||
showWriteOnly?: boolean;
|
showWriteOnly?: boolean;
|
||||||
|
showObjectTitle?: boolean;
|
||||||
|
showObjectDescription?: boolean;
|
||||||
showExample?: boolean;
|
showExample?: boolean;
|
||||||
parser: OpenAPIParser;
|
parser: OpenAPIParser;
|
||||||
options: RedocNormalizedOptions;
|
options: RedocNormalizedOptions;
|
||||||
|
@ -54,7 +56,13 @@ export class SchemaDefinition extends React.PureComponent<ObjectDescriptionProps
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const { showReadOnly = true, showWriteOnly = false, showExample = true } = this.props;
|
const {
|
||||||
|
showReadOnly = true,
|
||||||
|
showWriteOnly = false,
|
||||||
|
showExample = true,
|
||||||
|
showObjectTitle = false,
|
||||||
|
showObjectDescription = false,
|
||||||
|
} = this.props;
|
||||||
return (
|
return (
|
||||||
<Section>
|
<Section>
|
||||||
<Row>
|
<Row>
|
||||||
|
@ -62,6 +70,8 @@ export class SchemaDefinition extends React.PureComponent<ObjectDescriptionProps
|
||||||
<Schema
|
<Schema
|
||||||
skipWriteOnly={!showWriteOnly}
|
skipWriteOnly={!showWriteOnly}
|
||||||
skipReadOnly={!showReadOnly}
|
skipReadOnly={!showReadOnly}
|
||||||
|
hideObjectTitle={!showObjectTitle}
|
||||||
|
hideObjectDescription={!showObjectDescription}
|
||||||
schema={this.mediaModel.schema}
|
schema={this.mediaModel.schema}
|
||||||
/>
|
/>
|
||||||
</MiddlePanel>
|
</MiddlePanel>
|
||||||
|
|
|
@ -2865,143 +2865,156 @@ exports[`Components SchemaView discriminator should correctly render SchemaView
|
||||||
`;
|
`;
|
||||||
|
|
||||||
exports[`Components SchemaView discriminator should correctly render discriminator dropdown 1`] = `
|
exports[`Components SchemaView discriminator should correctly render discriminator dropdown 1`] = `
|
||||||
<styled.table>
|
<div>
|
||||||
<tbody>
|
<styled.div>
|
||||||
<Field
|
<Styled(styled.h2)>
|
||||||
expandByDefault={false}
|
Dog
|
||||||
field={
|
</Styled(styled.h2)>
|
||||||
FieldModel {
|
<styled.div>
|
||||||
"const": "",
|
<Markdown
|
||||||
"deprecated": false,
|
compact={true}
|
||||||
"description": "",
|
source=""
|
||||||
"example": undefined,
|
/>
|
||||||
"expanded": undefined,
|
</styled.div>
|
||||||
"explode": false,
|
</styled.div>
|
||||||
"in": undefined,
|
<styled.table>
|
||||||
"kind": "field",
|
<tbody>
|
||||||
"name": "packSize",
|
<Field
|
||||||
"required": false,
|
expandByDefault={false}
|
||||||
"schema": SchemaModel {
|
field={
|
||||||
"activeOneOf": 0,
|
FieldModel {
|
||||||
"const": "",
|
"const": "",
|
||||||
"constraints": Array [],
|
|
||||||
"contentEncoding": undefined,
|
|
||||||
"contentMediaType": undefined,
|
|
||||||
"default": undefined,
|
|
||||||
"deprecated": false,
|
"deprecated": false,
|
||||||
"description": "",
|
"description": "",
|
||||||
"displayFormat": undefined,
|
|
||||||
"displayType": "number",
|
|
||||||
"enum": Array [],
|
|
||||||
"example": undefined,
|
"example": undefined,
|
||||||
"examples": undefined,
|
"expanded": undefined,
|
||||||
"externalDocs": undefined,
|
"explode": false,
|
||||||
"format": undefined,
|
"in": undefined,
|
||||||
"isCircular": false,
|
"kind": "field",
|
||||||
"isPrimitive": true,
|
"name": "packSize",
|
||||||
"maxItems": undefined,
|
"required": false,
|
||||||
"minItems": undefined,
|
"schema": SchemaModel {
|
||||||
"options": "<<<filtered>>>",
|
"activeOneOf": 0,
|
||||||
"pattern": undefined,
|
"const": "",
|
||||||
"pointer": "#/components/schemas/Dog/properties/packSize",
|
"constraints": Array [],
|
||||||
"rawSchema": Object {
|
"contentEncoding": undefined,
|
||||||
|
"contentMediaType": undefined,
|
||||||
"default": undefined,
|
"default": undefined,
|
||||||
|
"deprecated": false,
|
||||||
|
"description": "",
|
||||||
|
"displayFormat": undefined,
|
||||||
|
"displayType": "number",
|
||||||
|
"enum": Array [],
|
||||||
|
"example": undefined,
|
||||||
|
"examples": undefined,
|
||||||
|
"externalDocs": undefined,
|
||||||
|
"format": undefined,
|
||||||
|
"isCircular": false,
|
||||||
|
"isPrimitive": true,
|
||||||
|
"maxItems": undefined,
|
||||||
|
"minItems": undefined,
|
||||||
|
"options": "<<<filtered>>>",
|
||||||
|
"pattern": undefined,
|
||||||
|
"pointer": "#/components/schemas/Dog/properties/packSize",
|
||||||
|
"rawSchema": Object {
|
||||||
|
"default": undefined,
|
||||||
|
"type": "number",
|
||||||
|
},
|
||||||
|
"readOnly": false,
|
||||||
|
"refsStack": Array [
|
||||||
|
"#/components/schemas/Dog",
|
||||||
|
"#/components/schemas/Dog/properties/packSize",
|
||||||
|
],
|
||||||
|
"schema": Object {
|
||||||
|
"default": undefined,
|
||||||
|
"type": "number",
|
||||||
|
},
|
||||||
|
"title": "",
|
||||||
"type": "number",
|
"type": "number",
|
||||||
|
"typePrefix": "",
|
||||||
|
"writeOnly": false,
|
||||||
},
|
},
|
||||||
"readOnly": false,
|
}
|
||||||
"refsStack": Array [
|
|
||||||
"#/components/schemas/Dog",
|
|
||||||
"#/components/schemas/Dog/properties/packSize",
|
|
||||||
],
|
|
||||||
"schema": Object {
|
|
||||||
"default": undefined,
|
|
||||||
"type": "number",
|
|
||||||
},
|
|
||||||
"title": "",
|
|
||||||
"type": "number",
|
|
||||||
"typePrefix": "",
|
|
||||||
"writeOnly": false,
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
}
|
isLast={false}
|
||||||
isLast={false}
|
key="packSize"
|
||||||
key="packSize"
|
showExamples={false}
|
||||||
showExamples={false}
|
/>
|
||||||
/>
|
<Field
|
||||||
<Field
|
expandByDefault={false}
|
||||||
expandByDefault={false}
|
field={
|
||||||
field={
|
FieldModel {
|
||||||
FieldModel {
|
|
||||||
"const": "",
|
|
||||||
"deprecated": false,
|
|
||||||
"description": "",
|
|
||||||
"example": undefined,
|
|
||||||
"expanded": undefined,
|
|
||||||
"explode": false,
|
|
||||||
"in": undefined,
|
|
||||||
"kind": "field",
|
|
||||||
"name": "type",
|
|
||||||
"required": true,
|
|
||||||
"schema": SchemaModel {
|
|
||||||
"activeOneOf": 0,
|
|
||||||
"const": "",
|
"const": "",
|
||||||
"constraints": Array [],
|
|
||||||
"contentEncoding": undefined,
|
|
||||||
"contentMediaType": undefined,
|
|
||||||
"default": undefined,
|
|
||||||
"deprecated": false,
|
"deprecated": false,
|
||||||
"description": "",
|
"description": "",
|
||||||
"displayFormat": undefined,
|
|
||||||
"displayType": "string",
|
|
||||||
"enum": Array [],
|
|
||||||
"example": undefined,
|
"example": undefined,
|
||||||
"examples": undefined,
|
"expanded": undefined,
|
||||||
"externalDocs": undefined,
|
"explode": false,
|
||||||
"format": undefined,
|
"in": undefined,
|
||||||
"isCircular": false,
|
"kind": "field",
|
||||||
"isPrimitive": true,
|
"name": "type",
|
||||||
"maxItems": undefined,
|
"required": true,
|
||||||
"minItems": undefined,
|
"schema": SchemaModel {
|
||||||
"options": "<<<filtered>>>",
|
"activeOneOf": 0,
|
||||||
"pattern": undefined,
|
"const": "",
|
||||||
"pointer": "#/components/schemas/Dog/properties/type",
|
"constraints": Array [],
|
||||||
"rawSchema": Object {
|
"contentEncoding": undefined,
|
||||||
|
"contentMediaType": undefined,
|
||||||
"default": undefined,
|
"default": undefined,
|
||||||
"type": "string",
|
"deprecated": false,
|
||||||
"x-refsStack": Array [
|
"description": "",
|
||||||
|
"displayFormat": undefined,
|
||||||
|
"displayType": "string",
|
||||||
|
"enum": Array [],
|
||||||
|
"example": undefined,
|
||||||
|
"examples": undefined,
|
||||||
|
"externalDocs": undefined,
|
||||||
|
"format": undefined,
|
||||||
|
"isCircular": false,
|
||||||
|
"isPrimitive": true,
|
||||||
|
"maxItems": undefined,
|
||||||
|
"minItems": undefined,
|
||||||
|
"options": "<<<filtered>>>",
|
||||||
|
"pattern": undefined,
|
||||||
|
"pointer": "#/components/schemas/Dog/properties/type",
|
||||||
|
"rawSchema": Object {
|
||||||
|
"default": undefined,
|
||||||
|
"type": "string",
|
||||||
|
"x-refsStack": Array [
|
||||||
|
"#/components/schemas/Dog",
|
||||||
|
"#/components/schemas/Pet",
|
||||||
|
],
|
||||||
|
},
|
||||||
|
"readOnly": false,
|
||||||
|
"refsStack": Array [
|
||||||
|
"#/components/schemas/Dog",
|
||||||
"#/components/schemas/Dog",
|
"#/components/schemas/Dog",
|
||||||
"#/components/schemas/Pet",
|
"#/components/schemas/Pet",
|
||||||
],
|
|
||||||
},
|
|
||||||
"readOnly": false,
|
|
||||||
"refsStack": Array [
|
|
||||||
"#/components/schemas/Dog",
|
|
||||||
"#/components/schemas/Dog",
|
|
||||||
"#/components/schemas/Pet",
|
|
||||||
"#/components/schemas/Dog",
|
|
||||||
"#/components/schemas/Pet",
|
|
||||||
"#/components/schemas/Dog/properties/type",
|
|
||||||
],
|
|
||||||
"schema": Object {
|
|
||||||
"default": undefined,
|
|
||||||
"type": "string",
|
|
||||||
"x-refsStack": Array [
|
|
||||||
"#/components/schemas/Dog",
|
"#/components/schemas/Dog",
|
||||||
"#/components/schemas/Pet",
|
"#/components/schemas/Pet",
|
||||||
|
"#/components/schemas/Dog/properties/type",
|
||||||
],
|
],
|
||||||
|
"schema": Object {
|
||||||
|
"default": undefined,
|
||||||
|
"type": "string",
|
||||||
|
"x-refsStack": Array [
|
||||||
|
"#/components/schemas/Dog",
|
||||||
|
"#/components/schemas/Pet",
|
||||||
|
],
|
||||||
|
},
|
||||||
|
"title": "",
|
||||||
|
"type": "string",
|
||||||
|
"typePrefix": "",
|
||||||
|
"writeOnly": false,
|
||||||
},
|
},
|
||||||
"title": "",
|
}
|
||||||
"type": "string",
|
|
||||||
"typePrefix": "",
|
|
||||||
"writeOnly": false,
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
}
|
isLast={true}
|
||||||
isLast={true}
|
key="type"
|
||||||
key="type"
|
renderDiscriminatorSwitch={[Function]}
|
||||||
renderDiscriminatorSwitch={[Function]}
|
showExamples={false}
|
||||||
showExamples={false}
|
/>
|
||||||
/>
|
</tbody>
|
||||||
</tbody>
|
</styled.table>
|
||||||
</styled.table>
|
</div>
|
||||||
`;
|
`;
|
||||||
|
|
|
@ -159,7 +159,7 @@ exports[`FieldDetailsComponent renders correctly when field items have string ty
|
||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
<span
|
<span
|
||||||
class="sc-kpDqfm sc-dAlyuH sc-dxcDKg cGRfjn gHomYR gXntsr"
|
class="sc-kpDqfm sc-dAlyuH sc-knuQbY cGRfjn gHomYR fhHPsm"
|
||||||
>
|
>
|
||||||
[
|
[
|
||||||
<span
|
<span
|
||||||
|
|
|
@ -3,21 +3,21 @@
|
||||||
exports[`SecurityRequirement should render SecurityDefs 1`] = `
|
exports[`SecurityRequirement should render SecurityDefs 1`] = `
|
||||||
"<div id=\\"section/Authentication/petstore_auth\\" data-section-id=\\"section/Authentication/petstore_auth\\" class=\\"sc-dcJsrY bBkGhy\\"><div class=\\"sc-kAyceB hBQWIZ\\"><div class=\\"sc-fqkvVR oJKYx\\"><h2 class=\\"sc-jXbUNg fWnwAh\\">petstore_auth</h2><div class=\\"sc-eeDRCY sc-eBMEME gTGgei fMmru\\"><p>Get access to data while protecting your account credentials.
|
"<div id=\\"section/Authentication/petstore_auth\\" data-section-id=\\"section/Authentication/petstore_auth\\" class=\\"sc-dcJsrY bBkGhy\\"><div class=\\"sc-kAyceB hBQWIZ\\"><div class=\\"sc-fqkvVR oJKYx\\"><h2 class=\\"sc-jXbUNg fWnwAh\\">petstore_auth</h2><div class=\\"sc-eeDRCY sc-eBMEME gTGgei fMmru\\"><p>Get access to data while protecting your account credentials.
|
||||||
OAuth2 is also a safer and more secure way to give you access.</p>
|
OAuth2 is also a safer and more secure way to give you access.</p>
|
||||||
</div><div class=\\"sc-ejfMa-d a-DjBE\\"><div class=\\"sc-dkmUuB hFwAIA\\"><b>Security Scheme Type: </b><span>OAuth2</span></div><div class=\\"sc-eeDRCY sc-eBMEME gTGgei fMmru\\"><div class=\\"sc-dkmUuB hFwAIA\\"><b>Flow type: </b><code>implicit </code></div><div class=\\"sc-dkmUuB hFwAIA\\"><strong> Authorization URL: </strong><code><a target=\\"_blank\\" rel=\\"noopener noreferrer\\" href=\\"http://petstore.swagger.io/api/oauth/dialog\\">http://petstore.swagger.io/api/oauth/dialog</a></code></div><div class=\\"sc-dkmUuB hFwAIA\\"><b> Scopes: </b></div><div class=\\"sc-iEXKAA blExNw container\\" style=\\"height: 4em;\\"><ul><li><code>write:pets</code> - <div class=\\"sc-eeDRCY sc-eBMEME gTGgei fMmru sc-fhzFiK hXtrri redoc-markdown\\"><p>modify pets in your account</p>
|
</div><div class=\\"sc-eZYNyq fYQLSg\\"><div class=\\"sc-EgOXT GPHWZ\\"><b>Security Scheme Type: </b><span>OAuth2</span></div><div class=\\"sc-eeDRCY sc-eBMEME gTGgei fMmru\\"><div class=\\"sc-EgOXT GPHWZ\\"><b>Flow type: </b><code>implicit </code></div><div class=\\"sc-EgOXT GPHWZ\\"><strong> Authorization URL: </strong><code><a target=\\"_blank\\" rel=\\"noopener noreferrer\\" href=\\"http://petstore.swagger.io/api/oauth/dialog\\">http://petstore.swagger.io/api/oauth/dialog</a></code></div><div class=\\"sc-EgOXT GPHWZ\\"><b> Scopes: </b></div><div class=\\"sc-dlWCHZ eWGZCd container\\" style=\\"height: 4em;\\"><ul><li><code>write:pets</code> - <div class=\\"sc-eeDRCY sc-eBMEME gTGgei fMmru sc-fhzFiK hXtrri redoc-markdown\\"><p>modify pets in your account</p>
|
||||||
</div></li><li><code>read:pets</code> - <div class=\\"sc-eeDRCY sc-eBMEME gTGgei fMmru sc-fhzFiK hXtrri redoc-markdown\\"><p>read your pets</p>
|
</div></li><li><code>read:pets</code> - <div class=\\"sc-eeDRCY sc-eBMEME gTGgei fMmru sc-fhzFiK hXtrri redoc-markdown\\"><p>read your pets</p>
|
||||||
</div></li></ul></div><div class=\\"sc-EgOXT bNSpXO\\"></div></div></div></div></div></div><div id=\\"section/Authentication/GitLab_PersonalAccessToken\\" data-section-id=\\"section/Authentication/GitLab_PersonalAccessToken\\" class=\\"sc-dcJsrY bBkGhy\\"><div class=\\"sc-kAyceB hBQWIZ\\"><div class=\\"sc-fqkvVR oJKYx\\"><h2 class=\\"sc-jXbUNg fWnwAh\\">GitLab_PersonalAccessToken</h2><div class=\\"sc-eeDRCY sc-eBMEME gTGgei fMmru\\"><p>GitLab Personal Access Token description</p>
|
</div></li></ul></div><div class=\\"sc-hHOBiw zjoZc\\"></div></div></div></div></div></div><div id=\\"section/Authentication/GitLab_PersonalAccessToken\\" data-section-id=\\"section/Authentication/GitLab_PersonalAccessToken\\" class=\\"sc-dcJsrY bBkGhy\\"><div class=\\"sc-kAyceB hBQWIZ\\"><div class=\\"sc-fqkvVR oJKYx\\"><h2 class=\\"sc-jXbUNg fWnwAh\\">GitLab_PersonalAccessToken</h2><div class=\\"sc-eeDRCY sc-eBMEME gTGgei fMmru\\"><p>GitLab Personal Access Token description</p>
|
||||||
</div><div class=\\"sc-ejfMa-d a-DjBE\\"><div class=\\"sc-dkmUuB hFwAIA\\"><b>Security Scheme Type: </b><span>API Key</span></div><div class=\\"sc-eeDRCY sc-eBMEME gTGgei fMmru\\"><div class=\\"sc-dkmUuB hFwAIA\\"><b>Header parameter name: </b><code>PRIVATE-TOKEN</code></div></div></div></div></div></div><div id=\\"section/Authentication/GitLab_OpenIdConnect\\" data-section-id=\\"section/Authentication/GitLab_OpenIdConnect\\" class=\\"sc-dcJsrY bBkGhy\\"><div class=\\"sc-kAyceB hBQWIZ\\"><div class=\\"sc-fqkvVR oJKYx\\"><h2 class=\\"sc-jXbUNg fWnwAh\\">GitLab_OpenIdConnect</h2><div class=\\"sc-eeDRCY sc-eBMEME gTGgei fMmru\\"><p>GitLab OpenIdConnect description</p>
|
</div><div class=\\"sc-eZYNyq fYQLSg\\"><div class=\\"sc-EgOXT GPHWZ\\"><b>Security Scheme Type: </b><span>API Key</span></div><div class=\\"sc-eeDRCY sc-eBMEME gTGgei fMmru\\"><div class=\\"sc-EgOXT GPHWZ\\"><b>Header parameter name: </b><code>PRIVATE-TOKEN</code></div></div></div></div></div></div><div id=\\"section/Authentication/GitLab_OpenIdConnect\\" data-section-id=\\"section/Authentication/GitLab_OpenIdConnect\\" class=\\"sc-dcJsrY bBkGhy\\"><div class=\\"sc-kAyceB hBQWIZ\\"><div class=\\"sc-fqkvVR oJKYx\\"><h2 class=\\"sc-jXbUNg fWnwAh\\">GitLab_OpenIdConnect</h2><div class=\\"sc-eeDRCY sc-eBMEME gTGgei fMmru\\"><p>GitLab OpenIdConnect description</p>
|
||||||
</div><div class=\\"sc-ejfMa-d a-DjBE\\"><div class=\\"sc-dkmUuB hFwAIA\\"><b>Security Scheme Type: </b><span>OpenID Connect</span></div><div class=\\"sc-eeDRCY sc-eBMEME gTGgei fMmru\\"><div class=\\"sc-dkmUuB hFwAIA\\"><b>Connect URL: </b><code><a target=\\"_blank\\" rel=\\"noopener noreferrer\\" href=\\"https://gitlab.com/.well-known/openid-configuration\\">https://gitlab.com/.well-known/openid-configuration</a></code></div></div></div></div></div></div><div id=\\"section/Authentication/basicAuth\\" data-section-id=\\"section/Authentication/basicAuth\\" class=\\"sc-dcJsrY bBkGhy\\"><div class=\\"sc-kAyceB hBQWIZ\\"><div class=\\"sc-fqkvVR oJKYx\\"><h2 class=\\"sc-jXbUNg fWnwAh\\">basicAuth</h2><div class=\\"sc-eeDRCY sc-eBMEME gTGgei fMmru\\"></div><div class=\\"sc-ejfMa-d a-DjBE\\"><div class=\\"sc-dkmUuB hFwAIA\\"><b>Security Scheme Type: </b><span>HTTP</span></div><div class=\\"sc-eeDRCY sc-eBMEME gTGgei fMmru\\"><div class=\\"sc-dkmUuB hFwAIA\\"><b>HTTP Authorization Scheme: </b><code>basic</code></div><div class=\\"sc-dkmUuB hFwAIA\\"></div></div></div></div></div></div>"
|
</div><div class=\\"sc-eZYNyq fYQLSg\\"><div class=\\"sc-EgOXT GPHWZ\\"><b>Security Scheme Type: </b><span>OpenID Connect</span></div><div class=\\"sc-eeDRCY sc-eBMEME gTGgei fMmru\\"><div class=\\"sc-EgOXT GPHWZ\\"><b>Connect URL: </b><code><a target=\\"_blank\\" rel=\\"noopener noreferrer\\" href=\\"https://gitlab.com/.well-known/openid-configuration\\">https://gitlab.com/.well-known/openid-configuration</a></code></div></div></div></div></div></div><div id=\\"section/Authentication/basicAuth\\" data-section-id=\\"section/Authentication/basicAuth\\" class=\\"sc-dcJsrY bBkGhy\\"><div class=\\"sc-kAyceB hBQWIZ\\"><div class=\\"sc-fqkvVR oJKYx\\"><h2 class=\\"sc-jXbUNg fWnwAh\\">basicAuth</h2><div class=\\"sc-eeDRCY sc-eBMEME gTGgei fMmru\\"></div><div class=\\"sc-eZYNyq fYQLSg\\"><div class=\\"sc-EgOXT GPHWZ\\"><b>Security Scheme Type: </b><span>HTTP</span></div><div class=\\"sc-eeDRCY sc-eBMEME gTGgei fMmru\\"><div class=\\"sc-EgOXT GPHWZ\\"><b>HTTP Authorization Scheme: </b><code>basic</code></div><div class=\\"sc-EgOXT GPHWZ\\"></div></div></div></div></div></div>"
|
||||||
`;
|
`;
|
||||||
|
|
||||||
exports[`SecurityRequirement should render authDefinition 1`] = `"<div class=\\"sc-bDumWk iWBBny\\"><div class=\\"sc-sLsrZ hgeUJn\\"><h5 class=\\"sc-dAlyuH sc-fifgRP jbQuod kWJur\\">Authorizations:</h5><svg class=\\"sc-cwHptR iZRiKW\\" version=\\"1.1\\" viewBox=\\"0 0 24 24\\" x=\\"0\\" xmlns=\\"http://www.w3.org/2000/svg\\" y=\\"0\\" aria-hidden=\\"true\\"><polygon points=\\"17.3 8.3 12 13.6 6.7 8.3 5.3 9.7 12 16.4 18.7 9.7 \\"></polygon></svg></div><div class=\\"sc-dBmzty eoFcYg\\"><span class=\\"sc-kbousE cpXQuZ\\">(<span class=\\"sc-gfoqjT kbvnry\\">API Key: <i>GitLab_PersonalAccessToken</i></span><span class=\\"sc-gfoqjT kbvnry\\">OpenID Connect: <i>GitLab_OpenIdConnect</i></span><span class=\\"sc-gfoqjT kbvnry\\">HTTP: <i>basicAuth</i></span>) </span><span class=\\"sc-kbousE cpXQuZ\\"><span class=\\"sc-gfoqjT kbvnry\\">OAuth2: <i>petstore_auth</i></span></span></div></div>,"`;
|
exports[`SecurityRequirement should render authDefinition 1`] = `"<div class=\\"sc-iEXKAA jcxXwP\\"><div class=\\"sc-bDumWk bGSpwN\\"><h5 class=\\"sc-dAlyuH sc-ejfMa-d jbQuod fmqXEj\\">Authorizations:</h5><svg class=\\"sc-cwHptR iZRiKW\\" version=\\"1.1\\" viewBox=\\"0 0 24 24\\" x=\\"0\\" xmlns=\\"http://www.w3.org/2000/svg\\" y=\\"0\\" aria-hidden=\\"true\\"><polygon points=\\"17.3 8.3 12 13.6 6.7 8.3 5.3 9.7 12 16.4 18.7 9.7 \\"></polygon></svg></div><div class=\\"sc-dkmUuB hSVZwQ\\"><span class=\\"sc-fifgRP dCXXEI\\">(<span class=\\"sc-dBmzty lnpucz\\">API Key: <i>GitLab_PersonalAccessToken</i></span><span class=\\"sc-dBmzty lnpucz\\">OpenID Connect: <i>GitLab_OpenIdConnect</i></span><span class=\\"sc-dBmzty lnpucz\\">HTTP: <i>basicAuth</i></span>) </span><span class=\\"sc-fifgRP dCXXEI\\"><span class=\\"sc-dBmzty lnpucz\\">OAuth2: <i>petstore_auth</i></span></span></div></div>,"`;
|
||||||
|
|
||||||
exports[`SecurityRequirement should render authDefinition 2`] = `
|
exports[`SecurityRequirement should render authDefinition 2`] = `
|
||||||
"<div class=\\"sc-bDumWk gtsPcy\\"><div class=\\"sc-sLsrZ hgeUJn\\"><h5 class=\\"sc-dAlyuH sc-fifgRP jbQuod kWJur\\">Authorizations:</h5><svg class=\\"sc-cwHptR dSJqIk\\" version=\\"1.1\\" viewBox=\\"0 0 24 24\\" x=\\"0\\" xmlns=\\"http://www.w3.org/2000/svg\\" y=\\"0\\" aria-hidden=\\"true\\"><polygon points=\\"17.3 8.3 12 13.6 6.7 8.3 5.3 9.7 12 16.4 18.7 9.7 \\"></polygon></svg></div><div class=\\"sc-dBmzty llvZdI\\"><span class=\\"sc-kbousE dOwJQz\\">(<span class=\\"sc-gfoqjT kbvnry\\">API Key: <i>GitLab_PersonalAccessToken</i></span><span class=\\"sc-gfoqjT kbvnry\\">OpenID Connect: <i>GitLab_OpenIdConnect</i></span><span class=\\"sc-gfoqjT kbvnry\\">HTTP: <i>basicAuth</i></span>) </span><span class=\\"sc-kbousE dOwJQz\\"><span class=\\"sc-gfoqjT kbvnry\\">OAuth2: <i>petstore_auth</i> (<code class=\\"sc-eyvILC bzHwfc\\">write:pets</code><code class=\\"sc-eyvILC bzHwfc\\">read:pets</code>) </span></span></div></div><div class=\\"sc-ejfMa-d a-DjBE\\"><h5><svg xmlns=\\"http://www.w3.org/2000/svg\\" viewBox=\\"0 0 24 24\\" width=\\"11\\" height=\\"11\\"><path fill=\\"currentColor\\" d=\\"M18 10V6A6 6 0 0 0 6 6v4H3v14h18V10h-3zM8 6c0-2.206 1.794-4 4-4s4 1.794 4 4v4H8V6zm11 16H5V12h14v10z\\"></path></svg> OAuth2: petstore_auth</h5><div class=\\"sc-eeDRCY sc-eBMEME gTGgei fMmru\\"><p>Get access to data while protecting your account credentials.
|
"<div class=\\"sc-iEXKAA frhMMv\\"><div class=\\"sc-bDumWk bGSpwN\\"><h5 class=\\"sc-dAlyuH sc-ejfMa-d jbQuod fmqXEj\\">Authorizations:</h5><svg class=\\"sc-cwHptR dSJqIk\\" version=\\"1.1\\" viewBox=\\"0 0 24 24\\" x=\\"0\\" xmlns=\\"http://www.w3.org/2000/svg\\" y=\\"0\\" aria-hidden=\\"true\\"><polygon points=\\"17.3 8.3 12 13.6 6.7 8.3 5.3 9.7 12 16.4 18.7 9.7 \\"></polygon></svg></div><div class=\\"sc-dkmUuB kAGRNw\\"><span class=\\"sc-fifgRP tCRMq\\">(<span class=\\"sc-dBmzty lnpucz\\">API Key: <i>GitLab_PersonalAccessToken</i></span><span class=\\"sc-dBmzty lnpucz\\">OpenID Connect: <i>GitLab_OpenIdConnect</i></span><span class=\\"sc-dBmzty lnpucz\\">HTTP: <i>basicAuth</i></span>) </span><span class=\\"sc-fifgRP tCRMq\\"><span class=\\"sc-dBmzty lnpucz\\">OAuth2: <i>petstore_auth</i> (<code class=\\"sc-sLsrZ IIDgM\\">write:pets</code><code class=\\"sc-sLsrZ IIDgM\\">read:pets</code>) </span></span></div></div><div class=\\"sc-eZYNyq fYQLSg\\"><h5><svg xmlns=\\"http://www.w3.org/2000/svg\\" viewBox=\\"0 0 24 24\\" width=\\"11\\" height=\\"11\\"><path fill=\\"currentColor\\" d=\\"M18 10V6A6 6 0 0 0 6 6v4H3v14h18V10h-3zM8 6c0-2.206 1.794-4 4-4s4 1.794 4 4v4H8V6zm11 16H5V12h14v10z\\"></path></svg> OAuth2: petstore_auth</h5><div class=\\"sc-eeDRCY sc-eBMEME gTGgei fMmru\\"><p>Get access to data while protecting your account credentials.
|
||||||
OAuth2 is also a safer and more secure way to give you access.</p>
|
OAuth2 is also a safer and more secure way to give you access.</p>
|
||||||
</div><div class=\\"sc-eeDRCY sc-eBMEME gTGgei fMmru\\"><div class=\\"sc-dkmUuB hFwAIA\\"><b>Flow type: </b><code>implicit </code></div><div class=\\"sc-dkmUuB hFwAIA\\"><strong> Authorization URL: </strong><code><a target=\\"_blank\\" rel=\\"noopener noreferrer\\" href=\\"http://petstore.swagger.io/api/oauth/dialog\\">http://petstore.swagger.io/api/oauth/dialog</a></code></div><div><b>Required scopes: </b><code>write:pets</code> <code>read:pets</code> </div><div class=\\"sc-dkmUuB hFwAIA\\"><b> Scopes: </b></div><div class=\\"sc-iEXKAA blExNw container\\" style=\\"height: 4em;\\"><ul><li><code>write:pets</code> - <div class=\\"sc-eeDRCY sc-eBMEME gTGgei fMmru sc-fhzFiK hXtrri redoc-markdown\\"><p>modify pets in your account</p>
|
</div><div class=\\"sc-eeDRCY sc-eBMEME gTGgei fMmru\\"><div class=\\"sc-EgOXT GPHWZ\\"><b>Flow type: </b><code>implicit </code></div><div class=\\"sc-EgOXT GPHWZ\\"><strong> Authorization URL: </strong><code><a target=\\"_blank\\" rel=\\"noopener noreferrer\\" href=\\"http://petstore.swagger.io/api/oauth/dialog\\">http://petstore.swagger.io/api/oauth/dialog</a></code></div><div><b>Required scopes: </b><code>write:pets</code> <code>read:pets</code> </div><div class=\\"sc-EgOXT GPHWZ\\"><b> Scopes: </b></div><div class=\\"sc-dlWCHZ eWGZCd container\\" style=\\"height: 4em;\\"><ul><li><code>write:pets</code> - <div class=\\"sc-eeDRCY sc-eBMEME gTGgei fMmru sc-fhzFiK hXtrri redoc-markdown\\"><p>modify pets in your account</p>
|
||||||
</div></li><li><code>read:pets</code> - <div class=\\"sc-eeDRCY sc-eBMEME gTGgei fMmru sc-fhzFiK hXtrri redoc-markdown\\"><p>read your pets</p>
|
</div></li><li><code>read:pets</code> - <div class=\\"sc-eeDRCY sc-eBMEME gTGgei fMmru sc-fhzFiK hXtrri redoc-markdown\\"><p>read your pets</p>
|
||||||
</div></li></ul></div><div class=\\"sc-EgOXT bNSpXO\\"></div></div></div><div class=\\"sc-ejfMa-d a-DjBE\\"><h5><svg xmlns=\\"http://www.w3.org/2000/svg\\" viewBox=\\"0 0 24 24\\" width=\\"11\\" height=\\"11\\"><path fill=\\"currentColor\\" d=\\"M18 10V6A6 6 0 0 0 6 6v4H3v14h18V10h-3zM8 6c0-2.206 1.794-4 4-4s4 1.794 4 4v4H8V6zm11 16H5V12h14v10z\\"></path></svg> API Key: GitLab_PersonalAccessToken</h5><div class=\\"sc-eeDRCY sc-eBMEME gTGgei fMmru\\"><p>GitLab Personal Access Token description</p>
|
</div></li></ul></div><div class=\\"sc-hHOBiw zjoZc\\"></div></div></div><div class=\\"sc-eZYNyq fYQLSg\\"><h5><svg xmlns=\\"http://www.w3.org/2000/svg\\" viewBox=\\"0 0 24 24\\" width=\\"11\\" height=\\"11\\"><path fill=\\"currentColor\\" d=\\"M18 10V6A6 6 0 0 0 6 6v4H3v14h18V10h-3zM8 6c0-2.206 1.794-4 4-4s4 1.794 4 4v4H8V6zm11 16H5V12h14v10z\\"></path></svg> API Key: GitLab_PersonalAccessToken</h5><div class=\\"sc-eeDRCY sc-eBMEME gTGgei fMmru\\"><p>GitLab Personal Access Token description</p>
|
||||||
</div><div class=\\"sc-eeDRCY sc-eBMEME gTGgei fMmru\\"><div class=\\"sc-dkmUuB hFwAIA\\"><b>Header parameter name: </b><code>PRIVATE-TOKEN</code></div></div></div><div class=\\"sc-ejfMa-d a-DjBE\\"><h5><svg xmlns=\\"http://www.w3.org/2000/svg\\" viewBox=\\"0 0 24 24\\" width=\\"11\\" height=\\"11\\"><path fill=\\"currentColor\\" d=\\"M18 10V6A6 6 0 0 0 6 6v4H3v14h18V10h-3zM8 6c0-2.206 1.794-4 4-4s4 1.794 4 4v4H8V6zm11 16H5V12h14v10z\\"></path></svg> OpenID Connect: GitLab_OpenIdConnect</h5><div class=\\"sc-eeDRCY sc-eBMEME gTGgei fMmru\\"><p>GitLab OpenIdConnect description</p>
|
</div><div class=\\"sc-eeDRCY sc-eBMEME gTGgei fMmru\\"><div class=\\"sc-EgOXT GPHWZ\\"><b>Header parameter name: </b><code>PRIVATE-TOKEN</code></div></div></div><div class=\\"sc-eZYNyq fYQLSg\\"><h5><svg xmlns=\\"http://www.w3.org/2000/svg\\" viewBox=\\"0 0 24 24\\" width=\\"11\\" height=\\"11\\"><path fill=\\"currentColor\\" d=\\"M18 10V6A6 6 0 0 0 6 6v4H3v14h18V10h-3zM8 6c0-2.206 1.794-4 4-4s4 1.794 4 4v4H8V6zm11 16H5V12h14v10z\\"></path></svg> OpenID Connect: GitLab_OpenIdConnect</h5><div class=\\"sc-eeDRCY sc-eBMEME gTGgei fMmru\\"><p>GitLab OpenIdConnect description</p>
|
||||||
</div><div class=\\"sc-eeDRCY sc-eBMEME gTGgei fMmru\\"><div class=\\"sc-dkmUuB hFwAIA\\"><b>Connect URL: </b><code><a target=\\"_blank\\" rel=\\"noopener noreferrer\\" href=\\"https://gitlab.com/.well-known/openid-configuration\\">https://gitlab.com/.well-known/openid-configuration</a></code></div></div></div><div class=\\"sc-ejfMa-d a-DjBE\\"><h5><svg xmlns=\\"http://www.w3.org/2000/svg\\" viewBox=\\"0 0 24 24\\" width=\\"11\\" height=\\"11\\"><path fill=\\"currentColor\\" d=\\"M18 10V6A6 6 0 0 0 6 6v4H3v14h18V10h-3zM8 6c0-2.206 1.794-4 4-4s4 1.794 4 4v4H8V6zm11 16H5V12h14v10z\\"></path></svg> HTTP: basicAuth</h5><div class=\\"sc-eeDRCY sc-eBMEME gTGgei fMmru\\"></div><div class=\\"sc-eeDRCY sc-eBMEME gTGgei fMmru\\"><div class=\\"sc-dkmUuB hFwAIA\\"><b>HTTP Authorization Scheme: </b><code>basic</code></div><div class=\\"sc-dkmUuB hFwAIA\\"></div></div></div>,"
|
</div><div class=\\"sc-eeDRCY sc-eBMEME gTGgei fMmru\\"><div class=\\"sc-EgOXT GPHWZ\\"><b>Connect URL: </b><code><a target=\\"_blank\\" rel=\\"noopener noreferrer\\" href=\\"https://gitlab.com/.well-known/openid-configuration\\">https://gitlab.com/.well-known/openid-configuration</a></code></div></div></div><div class=\\"sc-eZYNyq fYQLSg\\"><h5><svg xmlns=\\"http://www.w3.org/2000/svg\\" viewBox=\\"0 0 24 24\\" width=\\"11\\" height=\\"11\\"><path fill=\\"currentColor\\" d=\\"M18 10V6A6 6 0 0 0 6 6v4H3v14h18V10h-3zM8 6c0-2.206 1.794-4 4-4s4 1.794 4 4v4H8V6zm11 16H5V12h14v10z\\"></path></svg> HTTP: basicAuth</h5><div class=\\"sc-eeDRCY sc-eBMEME gTGgei fMmru\\"></div><div class=\\"sc-eeDRCY sc-eBMEME gTGgei fMmru\\"><div class=\\"sc-EgOXT GPHWZ\\"><b>HTTP Authorization Scheme: </b><code>basic</code></div><div class=\\"sc-EgOXT GPHWZ\\"></div></div></div>,"
|
||||||
`;
|
`;
|
||||||
|
|
|
@ -39,6 +39,8 @@ export interface RedocRawOptions {
|
||||||
showObjectSchemaExamples?: boolean | string;
|
showObjectSchemaExamples?: boolean | string;
|
||||||
showSecuritySchemeType?: boolean;
|
showSecuritySchemeType?: boolean;
|
||||||
hideSecuritySection?: boolean;
|
hideSecuritySection?: boolean;
|
||||||
|
hideObjectTitle?: boolean | string;
|
||||||
|
hideObjectDescription?: boolean | string;
|
||||||
|
|
||||||
unstable_ignoreMimeParameters?: boolean;
|
unstable_ignoreMimeParameters?: boolean;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user