Skip to content

Commit

Permalink
feat(): added options pattern properties
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony133 committed Feb 9, 2021
1 parent 05eb204 commit 1f84624
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/interfaces/open-api-spec.interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ export interface SchemaObject {
items?: SchemaObject | ReferenceObject;
properties?: Record<string, SchemaObject | ReferenceObject>;
additionalProperties?: SchemaObject | ReferenceObject | boolean;
patternProperties?: SchemaObject | ReferenceObject | any;
description?: string;
format?: string;
default?: any;
Expand Down
3 changes: 2 additions & 1 deletion lib/services/swagger-types-mapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ export class SwaggerTypesMapper {

private getSchemaOptionsKeys(): Array<keyof SchemaObject> {
return [
'patternProperties',
'additionalProperties',
'minimum',
'maximum',
Expand All @@ -150,7 +151,7 @@ export class SwaggerTypesMapper {
'title',
'format',
'pattern',
'default'
'default',
];
}
}

0 comments on commit 1f84624

Please sign in to comment.