Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resolve missing schema files for part 2 (closes #81) #95

Merged
merged 1 commit into from
Dec 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions api/part2/openapi/examples/events/systemEvent.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"id": "e5ce3b97-0fe2-4f92-a631-4bba0bd82fb1",
"label": "Deployment",
"definition": "https://vocab.nerc.ac.uk/collection/W03/current/W030002/",
"time": "2015-10-12T12:02:00.000Z",
"documentation": [
{
"name": "log",
"link": {
"href": "http://trios.de/lisa3075_installation.log"
}
}
],
"links": [
{
"href": "https://data.example.com/link/to/resource",
"type": "application/json",
"title": "Resource Name"
}
]
}
10 changes: 10 additions & 0 deletions api/part2/openapi/parameters/controlStreamIdList.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

name: controlStream
description: |-
List of control stream local IDs or unique IDs (URI).
Only resources that are associated to a control stream that has one of the provided identifiers are selected.
in: query
required: false
schema:
$ref: ../../../part1/openapi/parameters/idListSchema.yaml
explode: false
10 changes: 10 additions & 0 deletions api/part2/openapi/parameters/dataStreamIdList.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

name: dataStream
description: |-
List of data stream local IDs or unique IDs (URI).
Only resources that are associated to a data stream that has one of the provided identifiers are selected.
in: query
required: false
schema:
$ref: ../../../part1/openapi/parameters/idListSchema.yaml
explode: false
2 changes: 1 addition & 1 deletion api/part2/openapi/paths/commands.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ get:
- $ref: ../parameters/executionTime.yaml
- $ref: ../parameters/statusCodeList.yaml
- $ref: ../parameters/senderList.yaml
- $ref: ../../../part1/openapi/parameters/controlStreamIdList.yaml
- $ref: ../parameters/controlStreamIdList.yaml
- $ref: ../../../part1/openapi/parameters/systemIdList.yaml
- $ref: ../../../part1/openapi/parameters/foiIdList.yaml
- $ref: ../../../part1/openapi/parameters/controlPropIdList.yaml
Expand Down
2 changes: 1 addition & 1 deletion api/part2/openapi/paths/observations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ get:
- $ref: ../../../part1/openapi/parameters/idList.yaml
- $ref: ../parameters/phenomenonTime.yaml
- $ref: ../parameters/resultTime.yaml
- $ref: ../../../part1/openapi/parameters/dataStreamIdList.yaml
- $ref: ../parameters/dataStreamIdList.yaml
- $ref: ../../../part1/openapi/parameters/systemIdList.yaml
- $ref: ../../../part1/openapi/parameters/foiIdList.yaml
- $ref: ../../../part1/openapi/parameters/obsPropIdList.yaml
Expand Down
2 changes: 1 addition & 1 deletion api/part2/openapi/paths/systemEventById.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
parameters:
- $ref: ../parameters/systemId.yaml
- $ref: ../../../part1/openapi/parameters/systemId.yaml
- $ref: ../parameters/eventId.yaml

get:
Expand Down
2 changes: 1 addition & 1 deletion api/part2/openapi/responses/systemEvent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ content:
simple:
summary: Scalar Observation (Measure)
value:
$ref: ../examples/events/datastream-added.json
$ref: ../examples/events/systemEvent.json