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

Upgrade ajv to v7 #10

Open
SchoolGuy opened this issue Jul 7, 2023 · 2 comments
Open

Upgrade ajv to v7 #10

SchoolGuy opened this issue Jul 7, 2023 · 2 comments

Comments

@SchoolGuy
Copy link

You cannot use the 2019-09 or newer schemas due to ajv supporting them only in v7 or later.

See here for context: ajv-validator/ajv#1432

I can reproduce this in my CI here: cobbler/libcobblersignatures#65

@SchoolGuy
Copy link
Author

SchoolGuy commented Jul 7, 2023

Actually, I am even getting the following error also with other versions?

Schema snippet:

{
  "$schema": "https://json-schema.org/draft-07/schema",
  ...
}
...
✗ /github/workspace/docs/schema_v1.json
Error - no schema with key or ref "https://json-schema.org/draft-07/schema"
...

@SchoolGuy
Copy link
Author

Switching to

{
  "$schema": "http://json-schema.org/draft-07/schema",
  ...
}

fixed the issue for draft 7 of JSON Schema. Still an upgrade to v7 of ajv is in order IMHO.

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

No branches or pull requests

1 participant