Closed jasonsof closed 1 year ago
Was missing a required specification for the response properties 🤦
"Post": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"title": {
"type": "string"
}
},
"required": [
"id",
"title"
]
}
Hi!
I'm attempting to use this gem, not as a middleware, but to only to make use of the test assertions to validate an API implementation against an OAS.
I'm using a Rails app with Rspec and rack-test along with Committee but the assertions are passing even though response does not match schema
the test:
the actual response:
the schema:
The full example is here
You can see there is a typo in the actual response
idd:
instead ofid:
My expectation is that test will fail because of this but it passes :(Is there an issue with the assertions not checking object properties?