Skip to content

Commit

Permalink
updated swagger
Browse files Browse the repository at this point in the history
  • Loading branch information
Habiba Zaman committed Mar 19, 2024
1 parent 030bffa commit 2de1425
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 17 deletions.
1 change: 1 addition & 0 deletions src/build/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,7 @@ const models: TsoaRoute.Models = {
"isActive": {"dataType":"boolean","required":true},
"deactivationReason": {"dataType":"string","required":true},
"updatedAt": {"dataType":"union","subSchemas":[{"dataType":"string"},{"dataType":"enum","enums":[null]}],"required":true},
"updatedBy": {"dataType":"union","subSchemas":[{"dataType":"string"},{"dataType":"enum","enums":[null]}],"required":true},
},
"additionalProperties": false,
},
Expand Down
23 changes: 7 additions & 16 deletions src/build/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -1171,6 +1171,10 @@
"updatedAt": {
"type": "string",
"nullable": true
},
"updatedBy": {
"type": "string",
"nullable": true
}
},
"required": [
Expand All @@ -1185,24 +1189,11 @@
"lastName",
"isActive",
"deactivationReason",
"updatedAt"
"updatedAt",
"updatedBy"
],
"type": "object",
"additionalProperties": false,
"example": {
"userId": "82dc08e5-cbca-40c2-9d35-a4d1407d5f8d",
"userGuid": "A84D1AB221334298956C47A7B623E983",
"identityType": "idir",
"role": "Admin",
"organization": "Bc Service",
"email": "abc@gov.ca",
"userName": "johndoe",
"givenName": "John",
"lastName": "Doe",
"isActive": true,
"deactivationReason": "To get access to site",
"updatedAt": "2023-08-25T15:12:59.764Z"
}
"additionalProperties": false
},
"noActiveUserFound": {
"description": "No active user found",
Expand Down
4 changes: 3 additions & 1 deletion src/helpers/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,8 @@ export interface noActiveUserFound {
"lastName": "Doe",
"isActive": true,
"deactivationReason": "To get access to site",
"updatedAt": "2023-08-25T15:12:59.764Z"
"updatedAt": "2023-08-25T15:12:59.764Z",
"updatedBy": "John Doe",
}
*/
export interface userList {
Expand All @@ -723,6 +724,7 @@ export interface userList {
isActive: boolean;
deactivationReason: string;
updatedAt: string | null;
updatedBy: string | null;
}

/**
Expand Down

0 comments on commit 2de1425

Please sign in to comment.