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

JSON schema does not compile #4511

Closed
caarlos0 opened this issue Dec 31, 2023 Discussed in #4510 · 0 comments
Closed

JSON schema does not compile #4511

caarlos0 opened this issue Dec 31, 2023 Discussed in #4510 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@caarlos0
Copy link
Member

Discussed in https://github.com/orgs/goreleaser/discussions/4510

Originally posted by alephnull December 31, 2023
When attempting to use github.com/santhosh-tekuri/jsonschema/v5 to validate config files, I am unable to compile https://goreleaser.com/static/schema.json due to the errors:

panic: jsonschema: jsonschema file:///home/alok/work/tyk/src/gromit/gorel.json compilation failed: "/$defs/File/oneOf/1" and "/$defs/NixDependency/oneOf/1" in https://github.com/goreleaser/goreleaser/pkg/config/project have same canonical-uri
panic: jsonschema: jsonschema file:///home/alok/work/tyk/src/gromit/gorel.json compilation failed: "/$defs/File/oneOf/1" and "/$defs/Hooks/oneOf/1/items/oneOf/1" in https://github.com/goreleaser/goreleaser/pkg/config/project have same canonical-uri

This is my first attempt at using json schemas so I tried an online validator but they either do not support draft 2020-12 or fail to parse the schema. I'm trying to figure out where the problem is. I have used the library to validate against the Github Actions json schema but that is draft-07.

@caarlos0 caarlos0 added the bug Something isn't working label Dec 31, 2023
@caarlos0 caarlos0 added this to the v1.24.0 milestone Dec 31, 2023
@caarlos0 caarlos0 self-assigned this Dec 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant