Skip to content

Commit

Permalink
Merge pull request #152 from datsirul/fix-135
Browse files Browse the repository at this point in the history
Invalid Syntax in `beaconErrorResponse.yaml` #135
  • Loading branch information
costero-e authored Dec 12, 2024
2 parents 4636f61 + f8f455e commit 5c693b0
Show file tree
Hide file tree
Showing 18 changed files with 737 additions and 134 deletions.
48 changes: 42 additions & 6 deletions framework/json/endpoints.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,13 @@
"$ref": "#/components/responses/infoOKResponse"
},
"default": {
"$ref": "./responses/beaconErrorResponse.json",
"content": {
"application/json": {
"schema": {
"$ref": "./responses/beaconErrorResponse.json"
}
}
},
"description": "An unsuccessful operation."
}
},
Expand Down Expand Up @@ -94,7 +100,13 @@
"description": "Successful operation."
},
"default": {
"$ref": "./responses/beaconErrorResponse.json",
"content": {
"application/json": {
"schema": {
"$ref": "./responses/beaconErrorResponse.json"
}
}
},
"description": "An unsuccessful operation."
}
},
Expand All @@ -121,7 +133,13 @@
"description": "Successful operation."
},
"default": {
"$ref": "./responses/beaconErrorResponse.json",
"content": {
"application/json": {
"schema": {
"$ref": "./responses/beaconErrorResponse.json"
}
}
},
"description": "An unsuccessful operation."
}
},
Expand All @@ -139,7 +157,13 @@
"$ref": "./responses/beaconFilteringTermsResponse.json"
},
"default": {
"$ref": "./responses/beaconErrorResponse.json",
"content": {
"application/json": {
"schema": {
"$ref": "./responses/beaconErrorResponse.json"
}
}
},
"description": "An unsuccessful operation."
}
},
Expand All @@ -165,7 +189,13 @@
"$ref": "#/components/responses/infoOKResponse"
},
"default": {
"$ref": "./responses/beaconErrorResponse.json",
"content": {
"application/json": {
"schema": {
"$ref": "./responses/beaconErrorResponse.json"
}
}
},
"description": "An unsuccessful operation."
}
},
Expand Down Expand Up @@ -197,7 +227,13 @@
"description": "Successful operation."
},
"default": {
"$ref": "./responses/beaconErrorResponse.json",
"content": {
"application/json": {
"schema": {
"$ref": "./responses/beaconErrorResponse.json"
}
}
},
"description": "An unsuccessful operation."
}
},
Expand Down
30 changes: 24 additions & 6 deletions framework/src/endpoints.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ paths:
$ref: '#/components/responses/infoOKResponse'
default:
description: An unsuccessful operation.
$ref: ./responses/beaconErrorResponse.yaml
content:
application/json:
schema:
$ref: ./responses/beaconErrorResponse.yaml
/info:
parameters:
- $ref: '#/components/parameters/requestedSchema'
Expand All @@ -38,7 +41,10 @@ paths:
$ref: '#/components/responses/infoOKResponse'
default:
description: An unsuccessful operation.
$ref: ./responses/beaconErrorResponse.yaml
content:
application/json:
schema:
$ref: ./responses/beaconErrorResponse.yaml
/service-info:
get:
description: Get information about the beacon using GA4GH ServiceInfo format
Expand Down Expand Up @@ -68,7 +74,10 @@ paths:
$ref: ./responses/beaconConfigurationResponse.yaml
default:
description: An unsuccessful operation.
$ref: ./responses/beaconErrorResponse.yaml
content:
application/json:
schema:
$ref: ./responses/beaconErrorResponse.yaml
/map:
get:
description: TBD
Expand All @@ -86,7 +95,10 @@ paths:
$ref: ./responses/beaconMapResponse.yaml
default:
description: An unsuccessful operation.
$ref: ./responses/beaconErrorResponse.yaml
content:
application/json:
schema:
$ref: ./responses/beaconErrorResponse.yaml
/entry_types:
get:
description: TBD
Expand All @@ -104,7 +116,10 @@ paths:
$ref: ./responses/beaconEntryTypesResponse.yaml
default:
description: An unsuccessful operation.
$ref: ./responses/beaconErrorResponse.yaml
content:
application/json:
schema:
$ref: ./responses/beaconErrorResponse.yaml
/filtering_terms:
parameters:
- $ref: '#/components/parameters/skip'
Expand All @@ -119,7 +134,10 @@ paths:
$ref: ./responses/beaconFilteringTermsResponse.yaml
default:
description: An unsuccessful operation.
$ref: ./responses/beaconErrorResponse.yaml
content:
application/json:
schema:
$ref: ./responses/beaconErrorResponse.yaml
components:
responses:
infoOKResponse:
Expand Down
40 changes: 35 additions & 5 deletions models/json/beacon-v2-default-model/analyses/endpoints.json
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,13 @@
"description": "Successful operation"
},
"default": {
"$ref": "https://raw.githubusercontent.com/ga4gh-beacon/beacon-v2/main/framework/json/responses/beaconErrorResponse.json",
"content": {
"application/json": {
"schema": {
"$ref": "https://raw.githubusercontent.com/ga4gh-beacon/beacon-v2/main/framework/json/responses/beaconErrorResponse.json"
}
}
},
"description": "An unsuccessful operation"
}
},
Expand All @@ -165,7 +171,13 @@
"$ref": "#/components/responses/ResultsOKResponse"
},
"default": {
"$ref": "https://raw.githubusercontent.com/ga4gh-beacon/beacon-v2/main/framework/json/responses/beaconErrorResponse.json",
"content": {
"application/json": {
"schema": {
"$ref": "https://raw.githubusercontent.com/ga4gh-beacon/beacon-v2/main/framework/json/responses/beaconErrorResponse.json"
}
}
},
"description": "An unsuccessful operation"
}
},
Expand Down Expand Up @@ -196,7 +208,13 @@
"$ref": "#/components/responses/ResultsOKResponse"
},
"default": {
"$ref": "https://raw.githubusercontent.com/ga4gh-beacon/beacon-v2/main/framework/json/responses/beaconErrorResponse.json",
"content": {
"application/json": {
"schema": {
"$ref": "https://raw.githubusercontent.com/ga4gh-beacon/beacon-v2/main/framework/json/responses/beaconErrorResponse.json"
}
}
},
"description": "An unsuccessful operation"
}
},
Expand Down Expand Up @@ -225,7 +243,13 @@
"$ref": "#/components/responses/ResultsOKResponse"
},
"default": {
"$ref": "https://raw.githubusercontent.com/ga4gh-beacon/beacon-v2/main/framework/json/responses/beaconErrorResponse.json",
"content": {
"application/json": {
"schema": {
"$ref": "https://raw.githubusercontent.com/ga4gh-beacon/beacon-v2/main/framework/json/responses/beaconErrorResponse.json"
}
}
},
"description": "An unsuccessful operation"
}
},
Expand Down Expand Up @@ -256,7 +280,13 @@
"$ref": "#/components/responses/ResultsOKResponse"
},
"default": {
"$ref": "https://raw.githubusercontent.com/ga4gh-beacon/beacon-v2/main/framework/json/responses/beaconErrorResponse.json",
"content": {
"application/json": {
"schema": {
"$ref": "https://raw.githubusercontent.com/ga4gh-beacon/beacon-v2/main/framework/json/responses/beaconErrorResponse.json"
}
}
},
"description": "An unsuccessful operation"
}
},
Expand Down
72 changes: 63 additions & 9 deletions models/json/beacon-v2-default-model/biosamples/endpoints.json
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,13 @@
"$ref": "#/components/responses/ResultsOKResponse"
},
"default": {
"$ref": "https://raw.githubusercontent.com/ga4gh-beacon/beacon-v2/main/framework/json/responses/beaconErrorResponse.json",
"content": {
"application/json": {
"schema": {
"$ref": "https://raw.githubusercontent.com/ga4gh-beacon/beacon-v2/main/framework/json/responses/beaconErrorResponse.json"
}
}
},
"description": "An unsuccessful operation"
}
},
Expand All @@ -162,7 +168,13 @@
"$ref": "#/components/responses/ResultsOKResponse"
},
"default": {
"$ref": "https://raw.githubusercontent.com/ga4gh-beacon/beacon-v2/main/framework/json/responses/beaconErrorResponse.json",
"content": {
"application/json": {
"schema": {
"$ref": "https://raw.githubusercontent.com/ga4gh-beacon/beacon-v2/main/framework/json/responses/beaconErrorResponse.json"
}
}
},
"description": "An unsuccessful operation"
}
},
Expand Down Expand Up @@ -193,7 +205,13 @@
"$ref": "#/components/responses/ResultsOKResponse"
},
"default": {
"$ref": "https://raw.githubusercontent.com/ga4gh-beacon/beacon-v2/main/framework/json/responses/beaconErrorResponse.json",
"content": {
"application/json": {
"schema": {
"$ref": "https://raw.githubusercontent.com/ga4gh-beacon/beacon-v2/main/framework/json/responses/beaconErrorResponse.json"
}
}
},
"description": "An unsuccessful operation"
}
},
Expand Down Expand Up @@ -222,7 +240,13 @@
"$ref": "#/components/responses/ResultsOKResponse"
},
"default": {
"$ref": "https://raw.githubusercontent.com/ga4gh-beacon/beacon-v2/main/framework/json/responses/beaconErrorResponse.json",
"content": {
"application/json": {
"schema": {
"$ref": "https://raw.githubusercontent.com/ga4gh-beacon/beacon-v2/main/framework/json/responses/beaconErrorResponse.json"
}
}
},
"description": "An unsuccessful operation"
}
},
Expand Down Expand Up @@ -253,7 +277,13 @@
"$ref": "#/components/responses/ResultsOKResponse"
},
"default": {
"$ref": "https://raw.githubusercontent.com/ga4gh-beacon/beacon-v2/main/framework/json/responses/beaconErrorResponse.json",
"content": {
"application/json": {
"schema": {
"$ref": "https://raw.githubusercontent.com/ga4gh-beacon/beacon-v2/main/framework/json/responses/beaconErrorResponse.json"
}
}
},
"description": "An unsuccessful operation"
}
},
Expand Down Expand Up @@ -282,7 +312,13 @@
"$ref": "#/components/responses/ResultsOKResponse"
},
"default": {
"$ref": "https://raw.githubusercontent.com/ga4gh-beacon/beacon-v2/main/framework/json/responses/beaconErrorResponse.json",
"content": {
"application/json": {
"schema": {
"$ref": "https://raw.githubusercontent.com/ga4gh-beacon/beacon-v2/main/framework/json/responses/beaconErrorResponse.json"
}
}
},
"description": "An unsuccessful operation"
}
},
Expand Down Expand Up @@ -313,7 +349,13 @@
"$ref": "#/components/responses/ResultsOKResponse"
},
"default": {
"$ref": "https://raw.githubusercontent.com/ga4gh-beacon/beacon-v2/main/framework/json/responses/beaconErrorResponse.json",
"content": {
"application/json": {
"schema": {
"$ref": "https://raw.githubusercontent.com/ga4gh-beacon/beacon-v2/main/framework/json/responses/beaconErrorResponse.json"
}
}
},
"description": "An unsuccessful operation"
}
},
Expand Down Expand Up @@ -349,7 +391,13 @@
"description": "Successful operation"
},
"default": {
"$ref": "https://raw.githubusercontent.com/ga4gh-beacon/beacon-v2/main/framework/json/responses/beaconErrorResponse.json",
"content": {
"application/json": {
"schema": {
"$ref": "https://raw.githubusercontent.com/ga4gh-beacon/beacon-v2/main/framework/json/responses/beaconErrorResponse.json"
}
}
},
"description": "An unsuccessful operation"
}
},
Expand Down Expand Up @@ -387,7 +435,13 @@
"description": "Successful operation"
},
"default": {
"$ref": "https://raw.githubusercontent.com/ga4gh-beacon/beacon-v2/main/framework/json/responses/beaconErrorResponse.json",
"content": {
"application/json": {
"schema": {
"$ref": "https://raw.githubusercontent.com/ga4gh-beacon/beacon-v2/main/framework/json/responses/beaconErrorResponse.json"
}
}
},
"description": "An unsuccessful operation"
}
},
Expand Down
Loading

0 comments on commit 5c693b0

Please sign in to comment.