mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-22 16:46:34 +03:00
chore: escape HTML (#527)
This commit is contained in:
parent
c0b0cd49b5
commit
35f83e491a
|
@ -28,12 +28,7 @@ export class FieldDetails extends React.PureComponent<FieldProps> {
|
|||
<div>
|
||||
<TypePrefix>{schema.typePrefix}</TypePrefix>
|
||||
<TypeName>{schema.displayType}</TypeName>
|
||||
{schema.format && (
|
||||
<TypeFormat>
|
||||
{' <'}
|
||||
{schema.format}>
|
||||
</TypeFormat>
|
||||
)}
|
||||
{schema.format && <TypeFormat> <{schema.format}> </TypeFormat>}
|
||||
{schema.title && <TypeTitle> ({schema.title}) </TypeTitle>}
|
||||
<ConstraintsView constraints={schema.constraints} />
|
||||
{schema.nullable && <NullableLabel> Nullable </NullableLabel>}
|
||||
|
|
Loading…
Reference in New Issue
Block a user