fix: sanitize array of items (#1920)

This commit is contained in:
AlexVarchuk 2022-03-14 17:39:55 +02:00 committed by GitHub
parent 1672d4599b
commit 059bd8000e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,7 +11,7 @@ export function ArrayItemDetails({ schema }: { schema: SchemaModel }) {
return ( return (
<Wrapper> <Wrapper>
[ items [ items
{schema.displayFormat && <TypeFormat>{` &lt;${schema.displayFormat}&gt; `}</TypeFormat>} {schema.displayFormat && <TypeFormat> &lt;{schema.displayFormat} &gt;</TypeFormat>}
<ConstraintsView constraints={schema.constraints} /> <ConstraintsView constraints={schema.constraints} />
<Pattern schema={schema} /> <Pattern schema={schema} />
{schema.items && <ArrayItemDetails schema={schema.items} />} ] {schema.items && <ArrayItemDetails schema={schema.items} />} ]