mirror of
https://github.com/Redocly/redoc.git
synced 2025-08-07 21:54:53 +03:00
Add the title tag to the Array () definition within a schema block
This commit is contained in:
parent
6a97239f50
commit
4a2ac5136e
|
@ -5,6 +5,7 @@ import { Schema, SchemaProps } from './Schema';
|
|||
import { ArrayClosingLabel, ArrayOpenningLabel } from '../../common-elements';
|
||||
import styled from '../../styled-components';
|
||||
import {humanizeConstraints} from "../../utils";
|
||||
import { TypeTitle } from '../../common-elements/fields';
|
||||
|
||||
const PaddedSchema = styled.div`
|
||||
padding-left: ${({ theme }) => theme.spacing.unit * 2}px;
|
||||
|
@ -23,6 +24,7 @@ export class ArraySchema extends React.PureComponent<SchemaProps> {
|
|||
return (
|
||||
<div>
|
||||
<ArrayOpenningLabel> Array ({minMaxItems})</ArrayOpenningLabel>
|
||||
<TypeTitle>{itemsSchema.schema.title}</TypeTitle>
|
||||
<PaddedSchema>
|
||||
<Schema {...this.props} schema={itemsSchema} />
|
||||
</PaddedSchema>
|
||||
|
|
Loading…
Reference in New Issue
Block a user