This PR adds support for simple string examples on string properties.
This is currently possible via @WithExample, but that approach requires creating an ExampleProvider for each property that returns the example string.
Sample code:
@Response("A Response for header param example")
data class NameGreetingResponse(
@StringExample("Hello John") val str: String
)
This PR adds support for simple string examples on string properties. This is currently possible via
@WithExample
, but that approach requires creating anExampleProvider
for each property that returns the example string.Sample code:
Generated JSON:
Swagger UI: