Open yeefan opened 3 years ago
Hey @yeefan ,
class MyDto {
...
DTO_FIELD(String, myField) = "default value"; // <---the default value will be documented
};
The Required property is a good point. We should think about how to add it
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.
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:
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:
Hello. Finally it was done? If yes can I have an example.
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!