Skip to content

Use project version of ajv-cli in npm:validate task #123

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

Merged
merged 1 commit into from
Mar 12, 2025

Conversation

per1234
Copy link
Contributor

@per1234 per1234 commented Mar 12, 2025

The ajv-cli command line tool is used for validating data files against their JSON schema.

In general, it is preferable, and for some schemas even mandatory, to use the modern versions of ajv-cli. However, support for the "Draft-04" schema specification schema specification was dropped in ajv-cli version 4.0.0. So when working with JSON schemas that specify that draft, it is necessary to use ajv-cli 3.3.0, the last compatible version.

Previously, the package.json schema specified the "Draft-04" specification. For this reason, the npm:validate task was configured to use [email protected].

The package.json schema has now been updated to use "Draft-07" (SchemaStore/schemastore@11e62f6). So the code for using [email protected] is removed from the task, and the standard project level version of ajv-cli will now be used by this task.

The ajv-cli command line tool is used for validating data files against their JSON schema.

In general, it is preferable, and for some schemas even mandatory, to use the modern versions of ajv-cli. However,
support for the "Draft-04" schema specification was dropped in ajv-cli version 4.0.0. So when working with JSON schemas
that specify that draft, it is necessary to use ajv-cli 3.3.0, the last compatible version.

Previously, the package.json schema specified the "Draft-04" specification. For this reason, the `npm:validate` task was
configured to use [email protected] in that specific task.

The package.json schema has now been updated to use "Draft-07". So the code for using [email protected] is removed from the
task, and the standard project level version of ajv-cli will now be used by this task.
@per1234 per1234 added type: enhancement Proposed improvement topic: infrastructure Related to project infrastructure labels Mar 12, 2025
@per1234 per1234 self-assigned this Mar 12, 2025
@per1234 per1234 merged commit b84856d into arduino:master Mar 12, 2025
24 checks passed
@per1234 per1234 deleted the npm-validate-task-ajv-version branch March 12, 2025 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: infrastructure Related to project infrastructure type: enhancement Proposed improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant