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

schema: remove unrecognized keywords #733

Merged
merged 2 commits into from
Feb 10, 2025
Merged

Conversation

ndeloof
Copy link
Collaborator

@ndeloof ndeloof commented Feb 10, 2025

applied compose-spec/compose-spec#566 + some fixes by 25fe179

I noticed in passing that some of the entries inside the JSON Schema did
not do anything:
- under 2019-09 `id` does not mean anything (as of draft-06, it's
[spelled `$id`](https://json-schema.org/draft-06/json-schema-release-notes)), and
there's no need to define explicit IDs for internal references.
- there is no recongized "expose" format
- the `constraints` definition is never referenced and has no constraints
(`service` is not a valid keyword).

I've chosen a top level `$id` URI that works, but this is arbitrary and
could be replaced by something less github-specific: although not a
requirement, it's nice if this is a working URL.

I've also added a newline at the end of the file because that's
reasonably standard.

This new schema should be functionally identical to the original.

Signed-off-by: Roger Peppe <[email protected]>
Signed-off-by: Nicolas De Loof <[email protected]>
@ndeloof ndeloof merged commit 4590cd1 into compose-spec:main Feb 10, 2025
8 checks passed
@ndeloof ndeloof deleted the main branch February 10, 2025 12:35
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.

1 participant