vmware / vmware-openapi-generator

VMware-openapi-generator tool generates open-api documents from vapi metamodel format.
Other
23 stars 19 forks source link

Add produces and consumes at root #48

Closed jrgarcia closed 5 years ago

jrgarcia commented 5 years ago

We don't specify what we produce at all ('application/json') or what we consume at a root level. This allows us to have this specified for our entire API.

I came across this when testing an OpenAPI mock server that takes an OpenAPI spec and starts a mock server. When using it, it would never correctly return anything because it didn't know what to produce. With this commit, it will now return mock responses.