Package io.openapiparser.model.v31
Class Response
- java.lang.Object
-
- io.openapiparser.Properties
-
- io.openapiparser.model.v31.Response
-
- All Implemented Interfaces:
Extensions,Reference
public class Response extends Properties implements Reference, Extensions
the Response object.See specification: 4.8.16 Response 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,MediaType>getContent()java.lang.StringgetDescription()java.util.Map<java.lang.String,java.lang.Object>getExtensions()map of all extension properties.java.util.Map<java.lang.String,Header>getHeaders()java.util.Map<java.lang.String,Link>getLinks()java.lang.StringgetRef()$ref value.@Nullable java.lang.StringgetSummary()booleanisRef()check if this is a $ref object.-
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
-
Response
public Response(Context context, io.openapiprocessor.jsonschema.schema.Bucket bucket)
-
-
Method Detail
-
isRef
public boolean isRef()
check if this is a $ref object.
-
getRef
public java.lang.String getRef()
$ref value. Should be guarded byReference.isRef(). Throws ifReference.isRef()is false.
-
getSummary
public @Nullable java.lang.String getSummary()
- Specified by:
getSummaryin interfaceReference
-
getDescription
@Required public java.lang.String getDescription()
- Specified by:
getDescriptionin interfaceReference
-
getHeaders
public java.util.Map<java.lang.String,Header> getHeaders()
-
getContent
public java.util.Map<java.lang.String,MediaType> getContent()
-
getLinks
public java.util.Map<java.lang.String,Link> getLinks()
-
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
-
-