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

Install referenced schema in "npm:validate" task #96

Merged
merged 1 commit into from
Jan 31, 2024
Merged

Install referenced schema in "npm:validate" task #96

merged 1 commit into from
Jan 31, 2024

Commits on Jan 31, 2024

  1. Install referenced schema in "npm:validate" task

    The "npm:validate" task validates the repository's `package.json` npm manifest file against its JSON schema to catch any
    problems with its data format.
    
    In order to avoid duplication of content, JSON schemas may reference other schemas via the `$ref` keyword. The
    `package.json` schema was recently updated to share resources with the "base" configuration schema, which caused the
    validation to start failing:
    
    schema /tmp/package-json-schema-norSGPxlCR.json is invalid
    error: can't resolve reference https://json.schemastore.org/base.json#/definitions/license from id https://json.schemastore.org/package.json#
    task: Failed to run task "npm:validate": exit status 1
    
    The solution is to configure the task to download that schema as well and also to provide its path to the avj-cli
    validator via a `-r` flag.
    per1234 committed Jan 31, 2024
    Configuration menu
    Copy the full SHA
    0dd9ef8 View commit details
    Browse the repository at this point in the history