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

Update compose-spec.json: remove invalid fields from array #684

Merged
merged 2 commits into from
Sep 24, 2024

Conversation

AnaMManolache
Copy link
Contributor

The 'additionalProperties' and 'patternProperties' are being declared for an array type, which is invalid. They are also declared for the items of the array, so they can be removed. Their presence is causing issues converting this jsonschema to its cuelang representation.

Fixes compose-spec/compose-spec#534

Signed-off-by: Ana-Maria (A.) Manolache <ana-maria.manolache@ing.com>
@ndeloof ndeloof enabled auto-merge (rebase) September 24, 2024 08:23
Copy link
Collaborator

@ndeloof ndeloof left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

additionalProperties is indeed wrongly declared on watch type, while it should apply to the parent development element. Should not be removed but moved to parent type

Comment on lines -504 to -505
"additionalProperties": false,
"patternProperties": {"^x-": {}}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be moved to the development level as this section is missing the capability to add extension attributes x-

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added them back on development

…opment schema

Signed-off-by: Ana-Maria (A.) Manolache <ana-maria.manolache@ing.com>
Copy link
Contributor

@glours glours left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for your contribution 🙏

@glours glours merged commit 70e91bb into compose-spec:main Sep 24, 2024
8 checks 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.

Invalid fields declared for the 'development/watch' array
3 participants