oatpp / oatpp-swagger

OpenApi 3.0.0 docs + Swagger UI for oatpp services
https://oatpp.io/
Apache License 2.0
90 stars 51 forks source link

More properties to DTO fields #42

Open yeefan opened 3 years ago

yeefan commented 3 years ago

It seems that as of version 1.2.5, DTO_FIELD_INFO only has "description" and "pattern". Is it possible to support additional properties for DTO fields such as the following?

Thanks!

lganzzzo commented 3 years ago

Hey @yeefan ,

The Required property is a good point. We should think about how to add it

ghost commented 2 years ago

Not to increase scope too much, but adding a minimum/maximum (with inclusive/exclusive boundary) for numerical values would also be useful. Some other properties at https://swagger.io/docs/specification/data-models/data-types/#range) may be good to consider.

Inujel commented 1 year ago

Adding the possibility to document minimum and maximum values would be really interesting.

The range is currently included in the OpenAPI json and is displayed by some tools. The default value does not look great: image

almejara commented 5 months ago

Adding the possibility to document minimum and maximum values would be really interesting.

The range is currently included in the OpenAPI json and is displayed by some tools. The default value does not look great: image

Hello. Finally it was done? If yes can I have an example.