mirror of
https://github.com/Redocly/redoc.git
synced 2025-08-07 13:44:54 +03:00
Revert "fix: No maxLength label is displayed for arrays of items #1701"
This reverts commit 543ecc4d39
.
This commit is contained in:
parent
032caeb952
commit
b5fb407470
|
@ -26,7 +26,6 @@ import { l } from '../../services/Labels';
|
||||||
import { OptionsContext } from '../OptionsProvider';
|
import { OptionsContext } from '../OptionsProvider';
|
||||||
import { FieldModel } from '../../services/models/Field';
|
import { FieldModel } from '../../services/models/Field';
|
||||||
import styled from '../../styled-components';
|
import styled from '../../styled-components';
|
||||||
import { ArraySchema } from '../Schema';
|
|
||||||
|
|
||||||
const MAX_PATTERN_LENGTH = 45;
|
const MAX_PATTERN_LENGTH = 45;
|
||||||
|
|
||||||
|
@ -64,19 +63,11 @@ export class FieldDetails extends React.PureComponent<FieldProps, { patternShown
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<div>
|
<div>
|
||||||
{schema.type === 'array' ?
|
|
||||||
<ArraySchema schema={schema}/>
|
|
||||||
:
|
|
||||||
(<>
|
|
||||||
<TypePrefix>{schema.typePrefix}</TypePrefix>
|
<TypePrefix>{schema.typePrefix}</TypePrefix>
|
||||||
<TypeName>{schema.displayType}</TypeName>
|
<TypeName>{schema.displayType}</TypeName>
|
||||||
</>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
{schema.displayFormat && (
|
{schema.displayFormat && (
|
||||||
<TypeFormat>
|
<TypeFormat>
|
||||||
{' '}
|
{' '}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user