mirror of
https://github.com/Redocly/redoc.git
synced 2025-08-07 13:44:54 +03:00
rename option
This commit is contained in:
parent
63d2732f60
commit
ae0417e571
|
@ -26,7 +26,7 @@ export const ObjectSchema = observer(
|
||||||
skipReadOnly,
|
skipReadOnly,
|
||||||
skipWriteOnly,
|
skipWriteOnly,
|
||||||
}: ObjectSchemaProps) => {
|
}: ObjectSchemaProps) => {
|
||||||
const { expandSingleSchemaField, showObjectExample } = React.useContext(OptionsContext);
|
const { expandSingleSchemaField, showObjectSchemaExamples } = React.useContext(OptionsContext);
|
||||||
|
|
||||||
const filteredFields = React.useMemo(
|
const filteredFields = React.useMemo(
|
||||||
() =>
|
() =>
|
||||||
|
@ -66,7 +66,7 @@ export const ObjectSchema = observer(
|
||||||
: undefined
|
: undefined
|
||||||
}
|
}
|
||||||
className={field.expanded ? 'expanded' : undefined}
|
className={field.expanded ? 'expanded' : undefined}
|
||||||
showExamples={showObjectExample}
|
showExamples={showObjectSchemaExamples}
|
||||||
skipReadOnly={skipReadOnly}
|
skipReadOnly={skipReadOnly}
|
||||||
skipWriteOnly={skipWriteOnly}
|
skipWriteOnly={skipWriteOnly}
|
||||||
showTitle={showTitle}
|
showTitle={showTitle}
|
||||||
|
|
|
@ -35,7 +35,7 @@ export interface RedocRawOptions {
|
||||||
simpleOneOfTypeLabel?: boolean | string;
|
simpleOneOfTypeLabel?: boolean | string;
|
||||||
payloadSampleIdx?: number;
|
payloadSampleIdx?: number;
|
||||||
expandSingleSchemaField?: boolean | string;
|
expandSingleSchemaField?: boolean | string;
|
||||||
showObjectExample?: boolean | string;
|
showObjectSchemaExamples?: boolean | string;
|
||||||
|
|
||||||
unstable_ignoreMimeParameters?: boolean;
|
unstable_ignoreMimeParameters?: boolean;
|
||||||
|
|
||||||
|
@ -221,7 +221,7 @@ export class RedocNormalizedOptions {
|
||||||
simpleOneOfTypeLabel: boolean;
|
simpleOneOfTypeLabel: boolean;
|
||||||
payloadSampleIdx: number;
|
payloadSampleIdx: number;
|
||||||
expandSingleSchemaField: boolean;
|
expandSingleSchemaField: boolean;
|
||||||
showObjectExample: boolean;
|
showObjectSchemaExamples: boolean;
|
||||||
|
|
||||||
/* tslint:disable-next-line */
|
/* tslint:disable-next-line */
|
||||||
unstable_ignoreMimeParameters: boolean;
|
unstable_ignoreMimeParameters: boolean;
|
||||||
|
@ -283,7 +283,7 @@ export class RedocNormalizedOptions {
|
||||||
this.simpleOneOfTypeLabel = argValueToBoolean(raw.simpleOneOfTypeLabel);
|
this.simpleOneOfTypeLabel = argValueToBoolean(raw.simpleOneOfTypeLabel);
|
||||||
this.payloadSampleIdx = RedocNormalizedOptions.normalizePayloadSampleIdx(raw.payloadSampleIdx);
|
this.payloadSampleIdx = RedocNormalizedOptions.normalizePayloadSampleIdx(raw.payloadSampleIdx);
|
||||||
this.expandSingleSchemaField = argValueToBoolean(raw.expandSingleSchemaField);
|
this.expandSingleSchemaField = argValueToBoolean(raw.expandSingleSchemaField);
|
||||||
this.showObjectExample = argValueToBoolean(raw.showObjectExample);
|
this.showObjectSchemaExamples = argValueToBoolean(raw.showObjectSchemaExamples);
|
||||||
|
|
||||||
this.unstable_ignoreMimeParameters = argValueToBoolean(raw.unstable_ignoreMimeParameters);
|
this.unstable_ignoreMimeParameters = argValueToBoolean(raw.unstable_ignoreMimeParameters);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user