Skip to content

Commit

Permalink
debug: valid
Browse files Browse the repository at this point in the history
Signed-off-by: Tokesh <[email protected]>
  • Loading branch information
Tokesh committed Jan 18, 2025
1 parent 2c3c787 commit 04e55a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/src/_utils/JsonSchemaValidator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export default class JsonSchemaValidator {

#validate(validate_func: ValidateFunction, data: any, is_schema: boolean = false): string | undefined {
const valid = validate_func(data) as boolean
console.log(validate_func.errors, validate_func.evaluated, validate_func.schema, validate_func.schemaEnv, validate_func.source);
console.log("valid", valid);
const errors = is_schema ? this.ajv.errors : validate_func.errors
console.log("errors", errors);
return valid ? undefined : this.errors_parser.parse(errors)
Expand Down

0 comments on commit 04e55a7

Please sign in to comment.