io.vertx.openapi.contract

## Interface MediaType

- All Superinterfaces:
    OpenAPIObject

      public interface MediaType
      extends OpenAPIObject

  This interface represents the most important attributes of an OpenAPI Operation.
  Operation V3.1
  Operation V3.0

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static String` | `APPLICATION_JSON`
    `static String` | `APPLICATION_JSON_UTF8`
    `static List<String>` | `SUPPORTED_MEDIA_TYPES`

  - ### Method Summary

    All Methods Static Methods Instance Methods Abstract Methods Default Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `getIdentifier()`
    `JsonSchema` | `getSchema()`
    `static boolean` | `isMediaTypeSupported(String type)`

    - ### Methods inherited from interface io.vertx.openapi.contract.OpenAPIObject

      `getExtensions, getOpenAPIModel`

- - ### Field Detail

    - #### APPLICATION_JSON

          static final String APPLICATION_JSON

    - #### APPLICATION_JSON_UTF8

          static final String APPLICATION_JSON_UTF8

    - #### SUPPORTED_MEDIA_TYPES

          static final List<String> SUPPORTED_MEDIA_TYPES

  - ### Method Detail

    - #### isMediaTypeSupported

          static boolean isMediaTypeSupported(String type)

    - #### getSchema

          JsonSchema getSchema()

      Returns:
        the schema defining the content of the request.

    - #### getIdentifier

          String getIdentifier()

      Returns:
        the identifier like application/json

Copyright © 2024 Eclipse. All rights reserved.