You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When upgrading from 1.2.28 to 1.2.31 I noticed the Example Payloads stopped being generated.
Here is psuedo code of an interface I've defined that documents an endpoint that works perfectly fine in 1.2.28 but fails in 1.2.31:
`@Tag(name = "Examples", description = "Endpoints supporting creating and managing Items")
public interface CreateItemSwaggerDefinition {
@operation(
description = "Creates a item")
@RequestBody(
description = "Details of the Item to be created",
required = true,
content = @content(
schema = @Schema(implementation = ViewModel.class),
mediaType = MediaType.APPLICATION_JSON_VALUE,
examples = {
@ExampleObject(
name = "An example request with the minimum required fields to create.",
value = Examples.MINIMUM,
summary = "Minimal request"),
@ExampleObject(
name = "An example request with all fields provided with example values.",
value = Examples.FULL,
summary = "Full request") }))
ResponseEntity create(ViewModel viewModel);
}
`
The text was updated successfully, but these errors were encountered:
When upgrading from 1.2.28 to 1.2.31 I noticed the Example Payloads stopped being generated.
Here is psuedo code of an interface I've defined that documents an endpoint that works perfectly fine in 1.2.28 but fails in 1.2.31:
`@Tag(name = "Examples", description = "Endpoints supporting creating and managing Items")
public interface CreateItemSwaggerDefinition {
@operation(
description = "Creates a item")
@RequestBody(
description = "Details of the Item to be created",
required = true,
content = @content(
schema = @Schema(implementation = ViewModel.class),
mediaType = MediaType.APPLICATION_JSON_VALUE,
examples = {
@ExampleObject(
name = "An example request with the minimum required fields to create.",
value = Examples.MINIMUM,
summary = "Minimal request"),
@ExampleObject(
name = "An example request with all fields provided with example values.",
value = Examples.FULL,
summary = "Full request") }))
ResponseEntity create(ViewModel viewModel);
}
`
The text was updated successfully, but these errors were encountered: