webtau
webtau copied to clipboard
Swagger - error when asserting on fields not in schema
If one is asserting that a field is null and makes a typo in the field name then the test will always pass even if the field comes back non-null.
We should validate that the assertion is being made against a field which is actually part of the schema. We will also need to provide a way to turn off this behaviour should someone really want to assert something that does not exist in the schema. e.g.
http.get('/foo') {
suppressUnknownFieldErrors {
somethingNotInSchema.should == 'foo'
}
}
Related to #637 but we probably cannot handle this generically in HTTP because there may not be a schema.
do you still need this one?
I don't need it as such but I do think it would be a useful addition to webtau.
I recall you had some implementation around it, is it still somewhere there?
I do not recall that :)
closing as not active