diff --git a/models/json/beacon-v2-default-model/datasets/endpoints.json b/models/json/beacon-v2-default-model/datasets/endpoints.json index 3fdc832a4..4a6688ad2 100644 --- a/models/json/beacon-v2-default-model/datasets/endpoints.json +++ b/models/json/beacon-v2-default-model/datasets/endpoints.json @@ -48,26 +48,6 @@ } }, "responses": { - "CollectionsResponse": { - "content": { - "application/json": { - "schema": { - "oneOf": [ - { - "$ref": "https://raw.githubusercontent.com/ga4gh-beacon/beacon-v2/main/framework/json/responses/beaconBooleanResponse.json" - }, - { - "$ref": "https://raw.githubusercontent.com/ga4gh-beacon/beacon-v2/main/framework/json/responses/beaconCountResponse.json" - }, - { - "$ref": "https://raw.githubusercontent.com/ga4gh-beacon/beacon-v2/main/framework/json/responses/beaconCollectionsResponse.json" - } - ] - } - } - }, - "description": "Successful collection list operation." - }, "ResultsOKResponse": { "content": { "application/json": { @@ -80,7 +60,7 @@ "$ref": "https://raw.githubusercontent.com/ga4gh-beacon/beacon-v2/main/framework/json/responses/beaconCountResponse.json" }, { - "$ref": "https://raw.githubusercontent.com/ga4gh-beacon/beacon-v2/main/framework/json/responses/beaconResultsetsResponse.json" + "$ref": "https://raw.githubusercontent.com/ga4gh-beacon/beacon-v2/main/framework/json/responses/beaconCollectionsResponse.json" } ] } @@ -124,7 +104,7 @@ ], "responses": { "200": { - "$ref": "#/components/responses/CollectionsResponse" + "$ref": "#/components/responses/ResultsOKResponse" }, "default": { "$ref": "https://raw.githubusercontent.com/ga4gh-beacon/beacon-v2/main/framework/json/responses/beaconErrorResponse.json" @@ -149,7 +129,7 @@ }, "responses": { "200": { - "$ref": "#/components/responses/CollectionsResponse" + "$ref": "#/components/responses/ResultsOKResponse" }, "default": { "$ref": "https://raw.githubusercontent.com/ga4gh-beacon/beacon-v2/main/framework/json/responses/beaconErrorResponse.json", diff --git a/models/src/beacon-v2-default-model/datasets/endpoints.yaml b/models/src/beacon-v2-default-model/datasets/endpoints.yaml index dc2c34d31..e3c86da0a 100644 --- a/models/src/beacon-v2-default-model/datasets/endpoints.yaml +++ b/models/src/beacon-v2-default-model/datasets/endpoints.yaml @@ -28,7 +28,7 @@ paths: - GET Endpoints responses: '200': - $ref: '#/components/responses/CollectionsResponse' + $ref: '#/components/responses/ResultsOKResponse' default: $ref: https://raw.githubusercontent.com/ga4gh-beacon/beacon-v2/main/framework/json/responses/beaconErrorResponse.json post: @@ -44,7 +44,7 @@ paths: required: true responses: '200': - $ref: '#/components/responses/CollectionsResponse' + $ref: '#/components/responses/ResultsOKResponse' default: description: An unsuccessful operation $ref: https://raw.githubusercontent.com/ga4gh-beacon/beacon-v2/main/framework/json/responses/beaconErrorResponse.json @@ -240,15 +240,6 @@ components: responses: ResultsOKResponse: description: Successful operation. - content: - application/json: - schema: - oneOf: - - $ref: https://raw.githubusercontent.com/ga4gh-beacon/beacon-v2/main/framework/json/responses/beaconBooleanResponse.json - - $ref: https://raw.githubusercontent.com/ga4gh-beacon/beacon-v2/main/framework/json/responses/beaconCountResponse.json - - $ref: https://raw.githubusercontent.com/ga4gh-beacon/beacon-v2/main/framework/json/responses/beaconResultsetsResponse.json - CollectionsResponse: - description: Successful collection list operation. content: application/json: schema: