Interface MediaType

    • Method Detail

      • isMediaTypeSupported

        static boolean isMediaTypeSupported​(String type)
      • getSchema

        JsonSchema getSchema()
        This method returns the schema defined in the media type.

        In OpenAPI 3.1 it is allowed to define an empty media type model. In this case the method returns null.
        Returns:
        the schema defined in the media type model, or null in case no media type model was defined.
      • getIdentifier

        String getIdentifier()
        Returns:
        the identifier like application/json