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

fix schema recursive references #371

Merged
merged 5 commits into from
Mar 4, 2024

Conversation

fmigneault
Copy link
Contributor

@fmigneault fmigneault commented Oct 24, 2023

Fixes #370

When using $schema: "https://schemas.opengis.net/ogcapi/processes/part1/1.0/openapi/schemas/process.yaml" at the top of the EchoProcess definition in my IDE, each schema under each I/O are flagged as "missing required $ref". This seem to be caused be the duplicate nested oneOf both including reference.yml in each brahch.

With this fix, using temporarily $schema: "https://raw.githubusercontent.com/crim-ca/ogcapi-processes/fix-schema-recursive/openapi/schemas/processes-core/process.yaml", schema is properly resolved, and all I/O schema are considered valid for EchoProcess.

@fmigneault
Copy link
Contributor Author

@pvretano @jerstlouis
I would like to have your reviews regarding this, and potentially merging to fix JSON validators raising warnings/failure to resolve schemas.

@fmigneault
Copy link
Contributor Author

@bpross-52n can this be considered before the next submission to OAB?

@pvretano
Copy link
Contributor

pvretano commented Mar 4, 2024

I think this Closes #368 too.

@bpross-52n bpross-52n merged commit 3eb6764 into opengeospatial:master Mar 4, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

I/O schema definition uses conflicting reference
3 participants