Skip to content

Commit

Permalink
feat: add support array in field type
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexVarchuk committed May 18, 2021
1 parent 4b072be commit 2f85d42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/models/Schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export class SchemaModel {
this.externalDocs = schema.externalDocs;

this.constraints = humanizeConstraints(schema);
this.displayType = this.type;
this.displayType = Array.isArray(this.type) ? this.type.join(' or ') : this.type;
this.displayFormat = this.format;
this.isPrimitive = isPrimitiveType(schema, this.type);
this.default = schema.default;
Expand Down

0 comments on commit 2f85d42

Please sign in to comment.