vacuum icon indicating copy to clipboard operation
vacuum copied to clipboard

Example is not validated against the schema

Open LasneF opened this issue 1 year ago • 0 comments

vacuum is not able to detect that the sample provided does not respect the schema ( given the schema is not perfect)

here the issue is that the oneOf is wrong , as not discriminant enought

when leveraging a json schema validator the sample is set as invalid I would expect that vacuum validate each sample toward the schema (at object or endpoint level)

given this API specification sample.json

i would expect that the example is validated against the schema , and so here that there would be a warning , or even an error mentionning that the sample is wrong , please correct sample our double check your schema defintiion

LasneF avatar Jul 09 '24 12:07 LasneF