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

[Part 2] Specification is referencing non-existent schemata #81

Closed
SpeckiJ opened this issue Oct 31, 2024 · 1 comment · Fixed by #95
Closed

[Part 2] Specification is referencing non-existent schemata #81

SpeckiJ opened this issue Oct 31, 2024 · 1 comment · Fixed by #95
Assignees
Labels
ready Was discussed during a telecon and a decision was made

Comments

@SpeckiJ
Copy link
Collaborator

SpeckiJ commented Oct 31, 2024

When bundling the OpenAPI Schema Part 2 using redocly several issues popped up, mostly relating to missing (probably renamed?) schemata:

specifically we reference but not provide the schemas/files:

  • part1/openapi/parameters/dataStreamIdList.yaml
  • part1/openapi/parameters/controlStreamIdList.yaml'
  • part2/openapi/parameters/systemId.yaml
  • part2/openapi/examples/events/datastream-added.json

Full log:

[1] api/part2/openapi/paths/observations.yaml:11:7 at #/get/parameters/3

Can't resolve $ref: ENOENT: no such file or directory '/github/workspace/api/part1/openapi/parameters/dataStreamIdList.yaml'

 9 | - $ref: ../parameters/phenomenonTime.yaml
10 | - $ref: ../parameters/resultTime.yaml
11 | - $ref: ../../../part1/openapi/parameters/dataStreamIdList.yaml
12 | - $ref: ../../../part1/openapi/parameters/systemIdList.yaml
13 | - $ref: ../../../part1/openapi/parameters/foiIdList.yaml

Error was generated by the bundler rule.


[2] api/part2/openapi/paths/commands.yaml:13:7 at #/get/parameters/5

Can't resolve $ref: ENOENT: no such file or directory '/github/workspace/api/part1/openapi/parameters/controlStreamIdList.yaml'

11 | - $ref: ../parameters/statusCodeList.yaml
12 | - $ref: ../parameters/senderList.yaml
13 | - $ref: ../../../part1/openapi/parameters/controlStreamIdList.yaml
14 | - $ref: ../../../part1/openapi/parameters/systemIdList.yaml
15 | - $ref: ../../../part1/openapi/parameters/foiIdList.yaml

Error was generated by the bundler rule.


[3] api/part2/openapi/paths/systemEventById.yaml:2:5 at #/parameters/0

Can't resolve $ref: ENOENT: no such file or directory '/github/workspace/api/part2/openapi/parameters/systemId.yaml'

1 | parameters:
2 |   - $ref: ../parameters/systemId.yaml
3 |   - $ref: ../parameters/eventId.yaml
4 |

Error was generated by the bundler rule.


[4] api/part2/openapi/responses/systemEvent.yaml:14:11 at #/content/application~1sml+json/examples/simple/value

Can't resolve $ref: ENOENT: no such file or directory '/github/workspace/api/part2/openapi/examples/events/datastream-added.json'

12 | summary: Scalar Observation (Measure)
13 | value:
14 |   $ref: ../examples/events/datastream-added.json

Error was generated by the bundler rule.
SpeckiJ added a commit to 52North/ogcapi-connected-systems that referenced this issue Oct 31, 2024
@autermann autermann self-assigned this Dec 12, 2024
@autermann autermann linked a pull request Dec 12, 2024 that will close this issue
@autermann
Copy link
Member

@SpeckiJ could you check if #95 resolves these issues?

@autermann autermann added the ready Was discussed during a telecon and a decision was made label Dec 12, 2024
autermann added a commit to autermann/ogcapi-connected-systems that referenced this issue Jan 23, 2025
* master:
  Specify behavior when deleting system with cascade=true (fixes opengeospatial#61) (opengeospatial#90)
  Allow null for auto-generated DataStream properties (fixes opengeospatial#65) (opengeospatial#93)
  Fix data stream elementType schema (fixes opengeospatial#98) (opengeospatial#99)
  Move specialized sampling features to part 4 (resolves opengeospatial#82) (opengeospatial#96)
  Add missing schema files for part 2 (closes opengeospatial#81) (opengeospatial#95)
  Allow both uom/href and uom/code (closes opengeospatial#74) (opengeospatial#94)
  Remove transactional operators from non-canonical endpoint, fixes opengeospatial#66. (opengeospatial#89)
  Add example of image observation using the data URI scheme (resolves opengeospatial#83) (opengeospatial#97)
  Remove table column definitions (fixes opengeospatial#75) (opengeospatial#86)
  Fix example B.2.1, closes opengeospatial#80 (opengeospatial#85)
  Update clause_9_requirements_class_subsystems.adoc
  Convert required to array
  add $schema
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready Was discussed during a telecon and a decision was made
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants