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

image_definition: simplify jsonschema enum declarations #249

Closed
wants to merge 1 commit into from

Conversation

xypron
Copy link

@xypron xypron commented Sep 27, 2024

Instead of

jsonschema="enum=val1,enum=val2"

use

jsonschema="enum=val1,val2"

The second format is more concise and better matches that enum is an array in JSON Schema.

github.com/xeipuuv/gojsonschema supports both.

Instead of

    jsonschema="enum=val1,enum=val2"

use

    jsonschema="enum=val1,val2"

The second format is more concise and better matches that
enum is an array in JSON Schema.

github.com/xeipuuv/gojsonschema supports both.

Signed-off-by: Heinrich Schuchardt <[email protected]>
@xypron
Copy link
Author

xypron commented Sep 27, 2024

github.com/invopop/jsonschema seems not to like the changed enum format. Closing the PR.

@xypron xypron closed this Sep 27, 2024
@xypron
Copy link
Author

xypron commented Sep 27, 2024

Following up in invopop/jsonschema#153.

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