github_packages: improve schema debugging.

This commit is contained in:
Mike McQuaid 2023-02-10 09:05:10 +00:00
parent b9b3bd2571
commit fe37be6c30
No known key found for this signature in database
GPG Key ID: 3338A31AFDB1D829

View File

@ -176,9 +176,9 @@ class GitHubPackages
puts
ofail "#{Formatter.url(schema_uri)} JSON schema validation failed!"
oh1 "Errors"
pp schema.validate(json).to_a
puts schema.validate(json).to_a.inspect
oh1 "JSON"
pp json
puts json.inspect
exit 1
end