mirror of
https://github.com/Redocly/redoc.git
synced 2025-08-07 21:54:53 +03:00
fix: do not display long regexps
This commit is contained in:
parent
5bace3008f
commit
902b4b7a68
|
@ -62,7 +62,9 @@ export class FieldDetails extends React.PureComponent<FieldProps> {
|
||||||
{schema.title && !hideSchemaTitles && <TypeTitle> ({schema.title}) </TypeTitle>}
|
{schema.title && !hideSchemaTitles && <TypeTitle> ({schema.title}) </TypeTitle>}
|
||||||
<ConstraintsView constraints={schema.constraints} />
|
<ConstraintsView constraints={schema.constraints} />
|
||||||
{schema.nullable && <NullableLabel> {l('nullable')} </NullableLabel>}
|
{schema.nullable && <NullableLabel> {l('nullable')} </NullableLabel>}
|
||||||
{schema.pattern && <PatternLabel> {schema.pattern} </PatternLabel>}
|
{schema.pattern && schema.pattern.length < 45 && (
|
||||||
|
<PatternLabel> {schema.pattern} </PatternLabel>
|
||||||
|
)}
|
||||||
{schema.isCircular && <RecursiveLabel> {l('recursive')} </RecursiveLabel>}
|
{schema.isCircular && <RecursiveLabel> {l('recursive')} </RecursiveLabel>}
|
||||||
</div>
|
</div>
|
||||||
{deprecated && (
|
{deprecated && (
|
||||||
|
|
Loading…
Reference in New Issue
Block a user