Commit ce82d2ca authored by Lin Jen-Shin's avatar Lin Jen-Shin

Fix json schema definition

parent 16ff81b9
{ {
"allOf": [ "allOf": [
{ "$ref": "../issues.json" }, { "$ref": "../../../../../../fixtures/api/schemas/public_api/v4/issues.json" },
{ {
"properties": { "properties": {
"weight": { "type": ["integer", "null"] } "weight": { "type": ["integer", "null"] }
......
...@@ -13,7 +13,7 @@ RSpec::Matchers.define :match_response_schema do |schema, dir: '', **options| ...@@ -13,7 +13,7 @@ RSpec::Matchers.define :match_response_schema do |schema, dir: '', **options|
end end
failure_message do |response| failure_message do |response|
"didn't match the schema defined by #{schema_path(schema)}" \ "didn't match the schema defined by #{SchemaPath.expand(schema, dir)}" \
" The validation errors were:\n#{@errors.join("\n")}" " The validation errors were:\n#{@errors.join("\n")}"
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment