diff --git a/Prototype/server/src/routes.ts b/Prototype/server/src/routes.ts index d006624..9184477 100644 --- a/Prototype/server/src/routes.ts +++ b/Prototype/server/src/routes.ts @@ -35,6 +35,25 @@ const models: TsoaRoute.Models = { "additionalProperties": false, }, // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa + "EhrFile": { + "dataType": "refObject", + "properties": { + "pathname": {"dataType":"string","required":true}, + "fileName": {"dataType":"string","required":true}, + "fileSize": {"dataType":"double","required":true}, + "fileType": {"dataType":"string","required":true}, + "title": {"dataType":"string","required":true}, + "description": {"dataType":"string","required":true}, + "category": {"dataType":"array","array":{"dataType":"string"},"required":true}, + "keyword": {"dataType":"array","array":{"dataType":"string"},"required":true}, + "updatedAt": {"dataType":"union","subSchemas":[{"dataType":"string"},{"dataType":"datetime"}],"required":true}, + "updatedBy": {"dataType":"string","required":true}, + "createdAt": {"dataType":"union","subSchemas":[{"dataType":"string"},{"dataType":"datetime"}],"required":true}, + "createdBy": {"dataType":"string","required":true}, + }, + "additionalProperties": false, + }, + // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa }; const validationService = new ValidationService(models); diff --git a/Prototype/server/src/swagger.json b/Prototype/server/src/swagger.json index 38ee325..b1d98bc 100644 --- a/Prototype/server/src/swagger.json +++ b/Prototype/server/src/swagger.json @@ -45,6 +45,85 @@ ], "type": "object", "additionalProperties": false + }, + "EhrFile": { + "properties": { + "pathname": { + "type": "string" + }, + "fileName": { + "type": "string" + }, + "fileSize": { + "type": "number", + "format": "double" + }, + "fileType": { + "type": "string" + }, + "title": { + "type": "string" + }, + "description": { + "type": "string" + }, + "category": { + "items": { + "type": "string" + }, + "type": "array" + }, + "keyword": { + "items": { + "type": "string" + }, + "type": "array" + }, + "updatedAt": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "string", + "format": "date-time" + } + ] + }, + "updatedBy": { + "type": "string" + }, + "createdAt": { + "anyOf": [ + { + "type": "string" + }, + { + "type": "string", + "format": "date-time" + } + ] + }, + "createdBy": { + "type": "string" + } + }, + "required": [ + "pathname", + "fileName", + "fileSize", + "fileType", + "title", + "description", + "category", + "keyword", + "updatedAt", + "updatedBy", + "createdAt", + "createdBy" + ], + "type": "object", + "additionalProperties": false } }, "securitySchemes": { @@ -462,82 +541,7 @@ "application/json": { "schema": { "items": { - "properties": { - "createdBy": { - "type": "string" - }, - "createdAt": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "string", - "format": "date-time" - } - ] - }, - "updatedBy": { - "type": "string" - }, - "updatedAt": { - "anyOf": [ - { - "type": "string" - }, - { - "type": "string", - "format": "date-time" - } - ] - }, - "keyword": { - "items": { - "type": "string" - }, - "type": "array" - }, - "category": { - "items": { - "type": "string" - }, - "type": "array" - }, - "description": { - "type": "string" - }, - "title": { - "type": "string" - }, - "fileType": { - "type": "string" - }, - "fileSize": { - "type": "number", - "format": "double" - }, - "fileName": { - "type": "string" - }, - "pathname": { - "type": "string" - } - }, - "required": [ - "createdBy", - "createdAt", - "updatedBy", - "updatedAt", - "keyword", - "category", - "description", - "title", - "fileType", - "fileSize", - "fileName", - "pathname" - ], - "type": "object" + "$ref": "#/components/schemas/EhrFile" }, "type": "array" }