Module org.eclipse.microprofile.openapi

# Package org.eclipse.microprofile.openapi.models.media

@Version("3.0") @ProviderType package org.eclipse.microprofile.openapi.models.media
A set of interfaces for programmable models to represent input and output data types and media types.

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")))))

Related Packages
Package
Description
org.eclipse.microprofile.openapi.models
A set of interfaces for programmable models and their helper classes, many derived from Swagger Core library.
Class
Description
Content
Content
Discriminator
Discriminator
Encoding
Encoding
Encoding.Style
MediaType
MediaType
Schema
The Schema Object allows the definition of input and output data types.
Schema.SchemaType
The values allowed for the `type` field.
XML
A metadata object that allows for more fine-tuned XML model definitions.