oatpp-swagger icon indicating copy to clipboard operation
oatpp-swagger copied to clipboard

Support example values on DTO level

Open PetFeld-ed opened this issue 3 years ago • 0 comments

Hello.

In the discussion of https://github.com/oatpp/oatpp-swagger/pull/36 is described how to document example values for endpoint responses or inputs.

The consequence of this approach is that when reusing the same DTO in different endpoints (or in request and response) you must copy/paste the examples for these DTOs. It would add convenience if it was possible to add example values to the DTO_FIELD_INFO. Those information could then be reused by the ENDPOINT_INFO automatically.

Kind regards.

PetFeld-ed avatar Jan 19 '22 06:01 PetFeld-ed