mirror of
https://github.com/Redocly/redoc.git
synced 2025-07-29 17:40:05 +03:00
feat(): Change order of the extraApiReferenceForValidation
This commit is contained in:
parent
8162672f51
commit
e77fedf5db
|
@ -111,13 +111,6 @@ export const FieldDetailsComponent = observer((props: FieldProps) => {
|
||||||
{!renderDiscriminatorSwitch && (
|
{!renderDiscriminatorSwitch && (
|
||||||
<EnumValues isArrayType={isArrayType} values={schema.enum} />
|
<EnumValues isArrayType={isArrayType} values={schema.enum} />
|
||||||
)}{' '}
|
)}{' '}
|
||||||
{!!extraApiReferenceForValidation && (
|
|
||||||
<ExtraOperationInformation
|
|
||||||
httpVerb={extraApiReferenceForValidation.httpVerb}
|
|
||||||
label={extraApiReferenceForValidation.label}
|
|
||||||
description={extraApiReferenceForValidation.description}
|
|
||||||
/>
|
|
||||||
)}
|
|
||||||
{extraDescription && <ExtraDescription extraDescriptions={extraDescription} />}
|
{extraDescription && <ExtraDescription extraDescriptions={extraDescription} />}
|
||||||
{renderedExamples}
|
{renderedExamples}
|
||||||
<Extensions extensions={{ ...extensions, ...schema.extensions }} />
|
<Extensions extensions={{ ...extensions, ...schema.extensions }} />
|
||||||
|
@ -129,6 +122,13 @@ export const FieldDetailsComponent = observer((props: FieldProps) => {
|
||||||
)}
|
)}
|
||||||
{(renderDiscriminatorSwitch && renderDiscriminatorSwitch(props)) || null}
|
{(renderDiscriminatorSwitch && renderDiscriminatorSwitch(props)) || null}
|
||||||
{(_const && <FieldDetail label={l('const') + ':'} value={_const} />) || null}
|
{(_const && <FieldDetail label={l('const') + ':'} value={_const} />) || null}
|
||||||
|
{!!extraApiReferenceForValidation && (
|
||||||
|
<ExtraOperationInformation
|
||||||
|
httpVerb={extraApiReferenceForValidation.httpVerb}
|
||||||
|
label={extraApiReferenceForValidation.label}
|
||||||
|
description={extraApiReferenceForValidation.description}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user