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 - fixes definition/development properties #439

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

stevendaniels
Copy link

Fixes definition/development properties:

Several properties for watch were left outside of items, which was causing errors when trying to import the spec to cue.

I was trying to import the spec into cue using the folowing commands:

curl -sL https://raw.githubusercontent.com/compose-spec/compose-spec/master/schema/compose-spec.json > compose-spec.json && \
cue import -f --outfile - -l '#ComposeSpec:' --package 'compose' compose-spec.json   

Which caused the following error:

constraint not allowed because type object is excluded:
    ./compose-spec.json:464:11

Moving the orphaned attributes into "items" fixed the issue for me.

Which issue(s) this PR fixes:

Fixes #

Several properties for watch were left outside of `items`, which was causing errors when trying to import the spec to cue.
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.

None yet

1 participant