Package 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 SummaryFields Modifier and Type Field Description static StringAPPLICATION_HAL_JSONstatic StringAPPLICATION_JSONstatic StringAPPLICATION_JSON_UTF8static StringAPPLICATION_OCTET_STREAMstatic StringMULTIPART_FORM_DATAstatic List<String>SUPPORTED_MEDIA_TYPESstatic StringTEXT_PLAINstatic StringTEXT_PLAIN_UTF8
 - 
Method SummaryAll Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetIdentifier()JsonSchemagetSchema()This method returns the schema defined in the media type.static booleanisMediaTypeSupported(String type)static booleanisVendorSpecificJson(String type)- 
Methods inherited from interface io.vertx.openapi.contract.OpenAPIObjectgetExtensions, getOpenAPIModel
 
- 
 
- 
- 
- 
Field Detail- 
APPLICATION_JSONstatic final String APPLICATION_JSON - See Also:
- Constant Field Values
 
 - 
APPLICATION_JSON_UTF8static final String APPLICATION_JSON_UTF8 - See Also:
- Constant Field Values
 
 - 
MULTIPART_FORM_DATAstatic final String MULTIPART_FORM_DATA - See Also:
- Constant Field Values
 
 - 
APPLICATION_HAL_JSONstatic final String APPLICATION_HAL_JSON - See Also:
- Constant Field Values
 
 - 
APPLICATION_OCTET_STREAMstatic final String APPLICATION_OCTET_STREAM - See Also:
- Constant Field Values
 
 - 
TEXT_PLAINstatic final String TEXT_PLAIN - See Also:
- Constant Field Values
 
 - 
TEXT_PLAIN_UTF8static final String TEXT_PLAIN_UTF8 - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
isMediaTypeSupportedstatic boolean isMediaTypeSupported(String type) 
 - 
isVendorSpecificJsonstatic boolean isVendorSpecificJson(String type) 
 - 
getSchemaJsonSchema 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.
 
 - 
getIdentifierString getIdentifier() - Returns:
- the identifier like application/json
 
 
- 
 
-