mirror of
https://github.com/Redocly/redoc.git
synced 2025-08-07 13:44:54 +03:00
feat: add support array in field type
This commit is contained in:
parent
823be24b31
commit
21e086222e
|
@ -114,6 +114,7 @@ export class SchemaModel {
|
||||||
this.externalDocs = schema.externalDocs;
|
this.externalDocs = schema.externalDocs;
|
||||||
|
|
||||||
this.constraints = humanizeConstraints(schema);
|
this.constraints = humanizeConstraints(schema);
|
||||||
|
this.displayType = Array.isArray(this.type) ? this.type.join(' or ') : this.type;
|
||||||
this.displayFormat = this.format;
|
this.displayFormat = this.format;
|
||||||
this.isPrimitive = isPrimitiveType(schema, this.type);
|
this.isPrimitive = isPrimitiveType(schema, this.type);
|
||||||
this.default = schema.default;
|
this.default = schema.default;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user