openapi-codegen icon indicating copy to clipboard operation
openapi-codegen copied to clipboard

Possible to auto-populate examples object?

Open Asheq opened this issue 8 years ago • 2 comments

In the js files in the impl folder the examples objects are all empty.

Is there a way to auto-populate the examples the same way swagger-codegen does?

Asheq avatar Dec 07 '17 00:12 Asheq

Should be possible to generate examples where not present in the source definition, using openapi-sampler. Thanks for the suggestion!

MikeRalphson avatar Dec 07 '17 11:12 MikeRalphson

Version 1.4.0 has a step in this direction. It will need some further work for non-JSON content-types.

MikeRalphson avatar Dec 07 '17 12:12 MikeRalphson