mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-23 00:56:33 +03:00
parent
83fca7d9ff
commit
4e5282e206
|
@ -142,7 +142,7 @@ export class SchemaModel {
|
||||||
this.displayType = this.items.displayType;
|
this.displayType = this.items.displayType;
|
||||||
this.displayFormat = this.items.format;
|
this.displayFormat = this.items.format;
|
||||||
this.typePrefix = this.items.typePrefix + 'Array of ';
|
this.typePrefix = this.items.typePrefix + 'Array of ';
|
||||||
this.title = this.title || this.items.title;
|
this.title = this.title || this.items.title;
|
||||||
this.isPrimitive = this.items.isPrimitive;
|
this.isPrimitive = this.items.isPrimitive;
|
||||||
if (this.example === undefined && this.items.example !== undefined) {
|
if (this.example === undefined && this.items.example !== undefined) {
|
||||||
this.example = [this.items.example];
|
this.example = [this.items.example];
|
||||||
|
@ -232,7 +232,7 @@ function buildFields(
|
||||||
required,
|
required,
|
||||||
schema: {
|
schema: {
|
||||||
...field,
|
...field,
|
||||||
default: field.default || defaults[fieldName],
|
default: field.default === undefined ? defaults[fieldName] : field.default,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
$ref + '/properties/' + fieldName,
|
$ref + '/properties/' + fieldName,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user