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

Update ajv usage with latest cli version #397

Open
vdice opened this issue Dec 17, 2020 · 1 comment
Open

Update ajv usage with latest cli version #397

vdice opened this issue Dec 17, 2020 · 1 comment

Comments

@vdice
Copy link
Member

vdice commented Dec 17, 2020

The latest ajv cli that we use for json validation introduces some new flags/config that we'll need to update to get working again.

Sample output:

$ make validate
...
Testing json 'examples/101.01-bundle.json' against schema 'schema/bundle.schema.json'
strict mode: use allowUnionTypes to allow union type keyword at "https://cnab.io/v1/definitions.schema.json#" (strictTypes)
schema schema/bundle.schema.json is invalid
error: unknown format "uri-reference" ignored in schema at path "#/properties/%24id"
make: *** [validate] Error 1

I've played around with adding --allowUnionTypes which seems to work as intended, but I haven't been able to figure out the actual error around the unknown format "uri-reference" issue...

@carolynvs
Copy link
Contributor

Are there any features in the newer version that we would like to use?

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

2 participants