You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Had a long debug session with Derek because JSON schema checker doesn't provide sufficient information on a failure. Need to find a better way to show the error information than using "best_match()".
Here's the current error message:
JSON Schema Validation Error for certificate_model/MC200-64.yaml:
'certificate_model/MC200-32.yaml#' is not of type 'array'
Here's the code:
write_yaml(resolved_path, resolved_obj)
if do_checks and ("$schema" in resolved_obj):
schema = _get_schema(resolved_obj["$schema"])
try:
schema.validate(instance=resolved_obj)
except ValidationError as e:
print(f"JSON Schema Validation Error for {rel_path}:")
**print(best_match(schema.iter_errors(resolved_obj)).message)**
exit(1)
The text was updated successfully, but these errors were encountered:
Had a long debug session with Derek because JSON schema checker doesn't provide sufficient information on a failure. Need to find a better way to show the error information than using "best_match()".
Here's the current error message:
JSON Schema Validation Error for certificate_model/MC200-64.yaml:
'certificate_model/MC200-32.yaml#' is not of type 'array'
Here's the code:
The text was updated successfully, but these errors were encountered: