Skip to content

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

Merged
glours merged 2 commits intocompose-spec:mainfrom
AnaMManolache:main
Sep 24, 2024
Merged

Update compose-spec.json: remove invalid fields from array#684
glours merged 2 commits intocompose-spec:mainfrom
AnaMManolache:main

Conversation

@AnaMManolache
Copy link
Copy Markdown
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
@glours glours disabled auto-merge September 24, 2024 08:24
Copy link
Copy Markdown
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
Copy Markdown
Collaborator

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
Copy Markdown
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
Copy Markdown
Collaborator

@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
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