From 61ee5909180c59d2ecc6621a114d1146b05f17bc Mon Sep 17 00:00:00 2001 From: Adewusi Victor Date: Wed, 12 Oct 2022 15:03:19 +0100 Subject: [PATCH 1/2] feat(specs): add appropriate type to model instance type property --- specs/predict/responses/Models.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specs/predict/responses/Models.yml b/specs/predict/responses/Models.yml index 1d792b29a1..304fa8e9d2 100644 --- a/specs/predict/responses/Models.yml +++ b/specs/predict/responses/Models.yml @@ -9,7 +9,7 @@ modelInstance: type: string description: Name of model instance. type: - type: string + $ref: '../common/schemas/Params.yml#/modelsToRetrieve' description: Type of the model. sourceID: type: string From 064037b31eb37e5b69e3f69bb1bf3a2f21588c62 Mon Sep 17 00:00:00 2001 From: Adewusi Victor Date: Mon, 17 Oct 2022 13:04:24 +0100 Subject: [PATCH 2/2] feat(specs): add required status to model metrics response --- specs/predict/paths/models/getModelMetrics.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/specs/predict/paths/models/getModelMetrics.yml b/specs/predict/paths/models/getModelMetrics.yml index 8faadb8c65..52c335099b 100644 --- a/specs/predict/paths/models/getModelMetrics.yml +++ b/specs/predict/paths/models/getModelMetrics.yml @@ -23,6 +23,9 @@ get: type: array items: $ref: '../../responses/Models.yml#/modelMetrics' + required: + - modelID + - metrics '401': $ref: '../../responses/InvalidCredentials.yml' '404':