Forum Discussion

BUITP03's avatar
BUITP03
New Contributor
9 months ago

Validating inline-examples against inline-schemas

Hi there,

 

i'm making specs for the api's of our organization and in my swagger-definitions (openapi 3.0) i have defined the schema's for my message-bodies as well as some examples.

It would be nice Swaggerhub could check my examples against the given schemas and giving errors if a specific example is not valid.

Now i have to use XMLSpy to copy the json-schemas and examples into that tool to validate the examples against those schemas. Id would be a major step forward Swagger Editor doing this implicit for me (and others).