You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need to add additional attributes (AJV keywords) from PropertyDefinition so they will be written to openapi.json and we can use it as validation. Currently, only type, description, items (for arrays), and $ref are written (and a hard-coded format: 'date-time' for Date instances).
Current Behavior
@model()exportclassEmployeeextendsEntity{
@property({type: 'string',required: true,format: 'email',// this won't be written to openapi.json})email: string;
@property({type: 'string',required: true,pattern: '(staff|manager|director)',// this also won't be written to openapi spec})type: string;}
Expected Behavior
Other AJV keywords is written to openapi spec
The text was updated successfully, but these errors were encountered:
Description
We need to add additional attributes (AJV keywords) from
PropertyDefinition
so they will be written toopenapi.json
and we can use it as validation. Currently, onlytype
,description
,items
(for arrays), and$ref
are written (and a hard-codedformat: 'date-time'
forDate
instances).Current Behavior
Expected Behavior
Other AJV keywords is written to openapi spec
The text was updated successfully, but these errors were encountered: