Skip to content

Commit

Permalink
splitting ressultsets response by oneOf granularity
Browse files Browse the repository at this point in the history
  • Loading branch information
costero-e committed Jun 26, 2024
1 parent 3f9edbb commit 5335e76
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 79 deletions.
16 changes: 14 additions & 2 deletions framework/json/responses/beaconResultsetsResponse.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,20 @@
"description": "Information about the response that could be relevant for the Beacon client in order to interpret the results."
},
"response": {
"$ref": "./sections/beaconResultsets.json",
"description": "Response for queries that recovers any result."
"oneOf": [
{
"$ref": "./sections/beaconResultsets.json",
"description": "Response for queries that recovers any result."
},
{
"$ref": "./sections/beaconCountResultsets.json",
"description": "Response for queries that recovers any result."
},
{
"$ref": "./sections/beaconBooleanResultsets.json",
"description": "Response for queries that recovers any result."
}
]
},
"responseSummary": {
"$ref": "./sections/beaconSummaryResponseSection.json",
Expand Down
12 changes: 1 addition & 11 deletions models/json/beacon-v2-default-model/analyses/endpoints.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,17 +57,7 @@
"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"
}
]
"$ref": "https://raw.githubusercontent.com/ga4gh-beacon/beacon-v2/main/framework/json/responses/beaconResultsetsResponse.json"
}
}
},
Expand Down
12 changes: 1 addition & 11 deletions models/json/beacon-v2-default-model/biosamples/endpoints.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,17 +61,7 @@
"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"
}
]
"$ref": "https://raw.githubusercontent.com/ga4gh-beacon/beacon-v2/main/framework/json/responses/beaconResultsetsResponse.json"
}
}
},
Expand Down
12 changes: 1 addition & 11 deletions models/json/beacon-v2-default-model/cohorts/endpoints.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,17 +74,7 @@
"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"
}
]
"$ref": "https://raw.githubusercontent.com/ga4gh-beacon/beacon-v2/main/framework/json/responses/beaconResultsetsResponse.json"
}
}
},
Expand Down
12 changes: 1 addition & 11 deletions models/json/beacon-v2-default-model/datasets/endpoints.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,17 +72,7 @@
"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"
}
]
"$ref": "https://raw.githubusercontent.com/ga4gh-beacon/beacon-v2/main/framework/json/responses/beaconResultsetsResponse.json"
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,17 +159,7 @@
"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"
}
]
"$ref": "https://raw.githubusercontent.com/ga4gh-beacon/beacon-v2/main/framework/json/responses/beaconResultsetsResponse.json"
}
}
},
Expand Down
12 changes: 1 addition & 11 deletions models/json/beacon-v2-default-model/individuals/endpoints.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,17 +57,7 @@
"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"
}
]
"$ref": "https://raw.githubusercontent.com/ga4gh-beacon/beacon-v2/main/framework/json/responses/beaconResultsetsResponse.json"
}
}
},
Expand Down
12 changes: 1 addition & 11 deletions models/json/beacon-v2-default-model/runs/endpoints.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,17 +73,7 @@
"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"
}
]
"$ref": "https://raw.githubusercontent.com/ga4gh-beacon/beacon-v2/main/framework/json/responses/beaconResultsetsResponse.json"
}
}
},
Expand Down

0 comments on commit 5335e76

Please sign in to comment.