The behaviour of methods inherited from java.lang.Object are undefined by the MicroProfile OpenAPI specification.
Example usage:
.responses(OASFactory.createObject(APIResponses.class)
.addApiResponse("200", OASFactory.createObject(APIResponse.class)
.description("Bookings retrieved")
.content(OASFactory.createObject(Content.class)
.addMediaType("applictaion/json", OASFactory.createObject(MediaType.class)
.schema(OASFactory.createObject(Schema.class)
.type(Schema.SchemaType.ARRAY)
.ref("#/components.schemas.Booking")))))
| Modifier and Type | Interface and Description |
|---|---|
| public interface | |
| public interface | Discriminator
Discriminator When request bodies or response payloads may be one of a number of different schemas, a discriminator object can be used to aid in serialization, deserialization, and validation. |
| public interface | Encoding
Encoding |
| public interface | MediaType
MediaType Each Media Type Object provides a schema and examples for the media type identified by its key. |
| public interface | Schema
The Schema Object allows the definition of input and output data types. |
| public interface | XML
A metadata object that allows for more fine-tuned XML model definitions. |