Skip to content

Commit

Permalink
have ajv return all errors
Browse files Browse the repository at this point in the history
  • Loading branch information
GrantBirki committed Aug 13, 2023
1 parent 0517484 commit 80aeebb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/functions/json-validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {parse} from 'yaml'
// :returns: the compiled schema
async function schema(jsonSchema) {
// setup the ajv instance
const ajv = new Ajv() // options can be passed, e.g. {allErrors: true}
const ajv = new Ajv({allErrors: true}) // options can be passed, e.g. {allErrors: true}

// use ajv-formats if enabled
if (core.getBooleanInput('use_ajv_formats')) {
Expand Down

0 comments on commit 80aeebb

Please sign in to comment.