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 you define a Schema object you can supply an Xml object. But when you use the @Schema annotation there is no possibity to add an @Xml annotation.
I would like to do for example
@Schema(name="MyBookings", description="POJO that represents a set of bookings.",
xml = @Xml(name="Bookings", wrapped=true))
public class Bookings {
@Schema(required=true)
private Booking[] bookings;
}
@Schema(name="MyBooking", description="POJO that represents a booking.",
xml = @Xml(name="Booking"))
public class Booking {
@Schema(required = true, example = "32126319")
private String airMiles;
@Schema(required = true, example = "window")
private String seatPreference;
}
The only workaround to force an xml element in the schema is to make an overrride of filterSchema in an OASFilter
The text was updated successfully, but these errors were encountered:
We discussed this request in the 2023-01-30 group call and decided it would be a good addition to the next minor (3.2, if we do it) or major (4.0) release.
When you define a Schema object you can supply an Xml object. But when you use the
@Schema
annotation there is no possibity to add an@Xml
annotation.I would like to do for example
The only workaround to force an xml element in the schema is to make an overrride of filterSchema in an OASFilter
The text was updated successfully, but these errors were encountered: