mirror of
https://github.com/Redocly/redoc.git
synced 2025-03-03 17:35:46 +03:00
parent
96fb7ce436
commit
12f79f081a
|
@ -139,6 +139,9 @@ export class SchemaModel {
|
||||||
this.displayType = this.items.displayType;
|
this.displayType = this.items.displayType;
|
||||||
this.typePrefix = this.items.typePrefix + 'Array of ';
|
this.typePrefix = this.items.typePrefix + 'Array of ';
|
||||||
this.isPrimitive = this.items.isPrimitive;
|
this.isPrimitive = this.items.isPrimitive;
|
||||||
|
if (this.example === undefined && this.items.example !== undefined) {
|
||||||
|
this.example = [this.items.example];
|
||||||
|
}
|
||||||
if (this.items.isPrimitive) {
|
if (this.items.isPrimitive) {
|
||||||
this.enum = this.items.enum;
|
this.enum = this.items.enum;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user