Interface MediaType
- All Superinterfaces:
OpenAPIObject
This interface represents the most important attributes of an OpenAPI Operation.
Operation V3.1
Operation V3.0
Operation V3.1
Operation V3.0
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionThis method returns the schema defined in the media type.static booleanisMediaTypeSupported(String type) Deprecated.static booleanisVendorSpecificJson(String type) Deprecated.TheMediaTypeRegistryreplaced the usage of this static method.Methods inherited from interface OpenAPIObject
getExtensions, getOpenAPIModel
-
Field Details
-
APPLICATION_JSON
-
APPLICATION_JSON_UTF8
-
MULTIPART_FORM_DATA
-
APPLICATION_HAL_JSON
-
APPLICATION_OCTET_STREAM
-
TEXT_PLAIN
-
TEXT_PLAIN_UTF8
-
SUPPORTED_MEDIA_TYPES
Deprecated.
-
-
Method Details
-
isMediaTypeSupported
Deprecated.TheMediaTypeRegistryreplaced the usage of this static method. -
isVendorSpecificJson
Deprecated.TheMediaTypeRegistryreplaced the usage of this static method. -
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
-
MediaTypeRegistryreplaced the usage of this static method.