Package io.openapiparser.model.v31
Class MediaType
- java.lang.Object
-
- io.openapiparser.Properties
-
- io.openapiparser.model.v31.MediaType
-
- All Implemented Interfaces:
Extensions
public class MediaType extends Properties implements Extensions
the Media Type object.See specification: 4.8.14 Media Type Object
-
-
Field Summary
-
Fields inherited from class io.openapiparser.Properties
bucket, context
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,Encoding>getEncoding()@Nullable java.lang.ObjectgetExample()java.util.Map<java.lang.String,Example>getExamples()java.util.Map<java.lang.String,java.lang.Object>getExtensions()map of all extension properties.@Nullable SchemagetSchema()-
Methods inherited from class io.openapiparser.Properties
getBooleanOrDefault, getBooleanOrFalse, getBooleanOrNull, getIntegerOrDefault, getIntegerOrNull, getMapObjectsOrEmpty, getMapObjectsOrEmpty, getMapSetStringsOrEmpty, getMapStringsOrEmpty, getNumberOrNull, getObjectOrNull, getObjectOrThrow, getObjectsOrEmpty, getRawValue, getRawValueOf, getRefObject, getRefObjectOrThrow, getStringOrNull, getStringOrThrow, getStringsOrEmpty, getStringsOrNull, getValueOf, hasProperty
-
-
-
-
Constructor Detail
-
MediaType
public MediaType(Context context, io.openapiprocessor.jsonschema.schema.Bucket bucket)
-
-
Method Detail
-
getSchema
public @Nullable Schema getSchema()
-
getExample
public @Nullable java.lang.Object getExample()
-
getExamples
public java.util.Map<java.lang.String,Example> getExamples()
-
getEncoding
public java.util.Map<java.lang.String,Encoding> getEncoding()
-
getExtensions
public java.util.Map<java.lang.String,java.lang.Object> getExtensions()
Description copied from interface:Extensionsmap of all extension properties.- Specified by:
getExtensionsin interfaceExtensions- Overrides:
getExtensionsin classProperties- Returns:
- map of extension properties
-
-