api2swagger icon indicating copy to clipboard operation
api2swagger copied to clipboard

Separate complex objects out into a definitions section

Open bpkennedy opened this issue 9 years ago • 0 comments

Hi! I just tried using your generator for some Swagger doc generation (super glad to find you started this! :smile: ). Although the generated document passes validation in the Swagger Editor (I tested with http://httpbin.org/get and picked defaults), it also does not quite adhere to their spec.

Specifically, the Swagger 2.0 specification requires those complex objects to be separated out into a definitions section, and then referenced in the request/response section.

Can I request that you enhance the generator to support this?

bpkennedy avatar Jan 20 '16 17:01 bpkennedy