Package io.swagger.v3.oas.models.media
Class Schema<T>
- java.lang.Object
-
- io.swagger.v3.oas.models.media.Schema<T>
-
- Direct Known Subclasses:
ArbitrarySchema,ArraySchema,BinarySchema,BooleanSchema,ByteArraySchema,ComposedSchema,DateSchema,DateTimeSchema,EmailSchema,FileSchema,IntegerSchema,JsonSchema,MapSchema,NumberSchema,ObjectSchema,PasswordSchema,StringSchema,UUIDSchema
public class Schema<T> extends Object
Schema- See Also:
- "https://github.com/OAI/OpenAPI-Specification/blob/3.0.4/versions/3.0.4.md#schema-object", "https://github.com/OAI/OpenAPI-Specification/blob/3.1.1/versions/3.1.1.md#schema-object"
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSchema.BynaryStringConversionstatic classSchema.SchemaResolution
-
Field Summary
Fields Modifier and Type Field Description protected T_constprotected T_defaultprotected List<T>_enumstatic StringAPPLY_SCHEMA_RESOLUTION_PROPERTYstatic StringBINARY_STRING_CONVERSION_PROPERTYstatic StringBIND_TYPE_AND_TYPESprotected Texamplestatic StringEXPLICIT_OBJECT_SCHEMA_PROPERTYprotected Map<String,Object>jsonSchemaprotected ObjectjsonSchemaImplstatic StringSCHEMA_RESOLUTION_PROPERTYstatic StringUSE_ARBITRARY_SCHEMA_PROPERTY
-
Constructor Summary
Constructors Modifier Constructor Description Schema()Schema(SpecVersion specVersion)protectedSchema(String type, String format)protectedSchema(String type, String format, SpecVersion specVersion)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Schema_const(Object _const)Schema_default(T _default)Schema_else(Schema _else)Schema_enum(List<T> _enum)Schema_if(Schema _if)Schema$anchor(String $anchor)Schema$comment(String $comment)Schema$dynamicAnchor(String $dynamicAnchor)Schema$id(String $id)Schema$ref(String $ref)Schema$schema(String $schema)Schema$vocabulary(String $vocabulary)SchemaaddAllOfItem(Schema allOfItem)SchemaaddAnyOfItem(Schema anyOfItem)voidaddEnumItemObject(T _enumItem)voidaddExample(T example)voidaddExtension(String name, Object value)SchemaadditionalItems(Schema additionalItems)SchemaadditionalProperties(Object additionalProperties)SchemaaddOneOfItem(Schema oneOfItem)SchemaaddPatternProperty(String key, Schema patternPropertiesItem)SchemaaddPrefixItem(Schema prefixItem)SchemaaddProperties(String key, Schema property)Deprecated.SchemaaddProperty(String key, Schema property)SchemaaddRequiredItem(String requiredItem)booleanaddType(String type)SchemaallOf(List<Schema> allOf)SchemaanyOf(List<Schema> anyOf)SchemabooleanSchemaValue(Boolean booleanSchemaValue)protected Tcast(Object value)Schemacontains(Schema contains)SchemacontentEncoding(String contentEncoding)SchemacontentMediaType(String contentMediaType)SchemacontentSchema(Schema contentSchema)SchemadependentRequired(Map<String,List<String>> dependentRequired)SchemadependentSchemas(Map<String,Schema> dependentSchemas)Schemadeprecated(Boolean deprecated)Schemadescription(String description)Schemadiscriminator(Discriminator discriminator)booleanequals(Object o)Schemaexample(Object example)Schema<T>examples(List<T> examples)SchemaexampleSetFlag(boolean exampleSetFlag)SchemaexclusiveMaximum(Boolean exclusiveMaximum)SchemaexclusiveMaximumValue(BigDecimal exclusiveMaximumValue)SchemaexclusiveMinimum(Boolean exclusiveMinimum)SchemaexclusiveMinimumValue(BigDecimal exclusiveMinimumValue)Schemaextensions(Map<String,Object> extensions)SchemaexternalDocs(ExternalDocumentation externalDocs)Schemaformat(String format)Stringget$anchor()Stringget$comment()Stringget$dynamicAnchor()Stringget$id()Stringget$ref()returns the $ref property from a Schema instance.Stringget$schema()Stringget$vocabulary()SchemagetAdditionalItems()ObjectgetAdditionalProperties()returns the additionalProperties property from a Schema instance.List<Schema>getAllOf()returns the allOf property from a ComposedSchema instance.List<Schema>getAnyOf()returns the anyOf property from a ComposedSchema instance.BooleangetBooleanSchemaValue()TgetConst()SchemagetContains()StringgetContentEncoding()StringgetContentMediaType()SchemagetContentSchema()TgetDefault()returns the _default property from a Schema instance.Map<String,List<String>>getDependentRequired()Map<String,Schema>getDependentSchemas()BooleangetDeprecated()returns the deprecated property from a Schema instance.StringgetDescription()returns the description property from a Schema instance.DiscriminatorgetDiscriminator()returns the discriminator property from a AllOfSchema instance.SchemagetElse()List<T>getEnum()ObjectgetExample()returns the example property from a Schema instance.List<T>getExamples()booleangetExampleSetFlag()returns true if example setter has been invoked Used to flag explicit setting to null of example (vs missing field) while deserializing from json/yaml stringBooleangetExclusiveMaximum()returns the exclusiveMaximum property from a Schema instance for OpenAPI 3.0.xBigDecimalgetExclusiveMaximumValue()returns the exclusiveMaximumValue property from a Schema instance for OpenAPI 3.1.xBooleangetExclusiveMinimum()returns the exclusiveMinimum property from a Schema instance for OpenAPI 3.0.xBigDecimalgetExclusiveMinimumValue()returns the exclusiveMinimumValue property from a Schema instance for OpenAPI 3.1.xMap<String,Object>getExtensions()ExternalDocumentationgetExternalDocs()returns the externalDocs property from a Schema instance.StringgetFormat()returns the format property from a Schema instance.SchemagetIf()Schema<?>getItems()returns the items property from a ArraySchema instance.Map<String,Object>getJsonSchema()ObjectgetJsonSchemaImpl()IntegergetMaxContains()BigDecimalgetMaximum()returns the maximum property from a Schema instance.IntegergetMaxItems()returns the maxItems property from a Schema instance.IntegergetMaxLength()returns the maxLength property from a Schema instance.IntegergetMaxProperties()returns the maxProperties property from a Schema instance.IntegergetMinContains()BigDecimalgetMinimum()returns the minimum property from a Schema instance.IntegergetMinItems()returns the minItems property from a Schema instance.IntegergetMinLength()returns the minLength property from a Schema instance.IntegergetMinProperties()returns the minProperties property from a Schema instance.BigDecimalgetMultipleOf()returns the multipleOf property from a Schema instance.StringgetName()returns the name property from a Schema instance.SchemagetNot()returns the not property from a Schema instance.BooleangetNullable()returns the nullable property from a Schema instance.List<Schema>getOneOf()returns the oneOf property from a ComposedSchema instance.StringgetPattern()returns the pattern property from a Schema instance.Map<String,Schema>getPatternProperties()returns the patternProperties property from a Schema instance.List<Schema>getPrefixItems()Map<String,Schema>getProperties()returns the properties property from a Schema instance.SchemagetPropertyNames()BooleangetReadOnly()returns the readOnly property from a Schema instance.List<String>getRequired()returns the required property from a Schema instance.SpecVersiongetSpecVersion()SchemagetThen()StringgetTitle()returns the title property from a Schema instance.StringgetType()returns the type property from a Schema instance.Set<String>getTypes()SchemagetUnevaluatedItems()SchemagetUnevaluatedProperties()BooleangetUniqueItems()returns the uniqueItems property from a Schema instance.BooleangetWriteOnly()returns the writeOnly property from a Schema instance.XMLgetXml()returns the xml property from a Schema instance.inthashCode()Schemaitems(Schema<?> items)SchemajsonSchema(Map<String,Object> jsonSchema)SchemajsonSchemaImpl(Object jsonSchemaImpl)SchemamaxContains(Integer maxContains)Schemamaximum(BigDecimal maximum)SchemamaxItems(Integer maxItems)SchemamaxLength(Integer maxLength)SchemamaxProperties(Integer maxProperties)SchemaminContains(Integer minContains)Schemaminimum(BigDecimal minimum)SchemaminItems(Integer minItems)SchemaminLength(Integer minLength)SchemaminProperties(Integer minProperties)SchemamultipleOf(BigDecimal multipleOf)Schemaname(String name)Schemanot(Schema not)Schemanullable(Boolean nullable)SchemaoneOf(List<Schema> oneOf)Schemapattern(String pattern)SchemapatternProperties(Map<String,Schema> patternProperties)SchemaprefixItems(List<Schema> prefixItems)Schemaproperties(Map<String,Schema> properties)SchemapropertyNames(Schema propertyNames)Schemaraw$ref(String $ref)SchemareadOnly(Boolean readOnly)Schemarequired(List<String> required)voidset$anchor(String $anchor)voidset$comment(String $comment)voidset$dynamicAnchor(String $dynamicAnchor)voidset$id(String $id)voidset$ref(String $ref)voidset$schema(String $schema)voidset$vocabulary(String $vocabulary)voidsetAdditionalItems(Schema additionalItems)voidsetAdditionalProperties(Object additionalProperties)voidsetAllOf(List<Schema> allOf)voidsetAnyOf(List<Schema> anyOf)voidsetBooleanSchemaValue(Boolean booleanSchemaValue)voidsetConst(Object _const)voidsetContains(Schema contains)voidsetContentEncoding(String contentEncoding)voidsetContentMediaType(String contentMediaType)voidsetContentSchema(Schema contentSchema)voidsetDefault(Object _default)voidsetDependentRequired(Map<String,List<String>> dependentRequired)voidsetDependentSchemas(Map<String,Schema> dependentSchemas)voidsetDeprecated(Boolean deprecated)voidsetDescription(String description)voidsetDiscriminator(Discriminator discriminator)voidsetElse(Schema _else)voidsetEnum(List<T> _enum)voidsetExample(Object example)voidsetExamples(List<T> examples)voidsetExampleSetFlag(boolean exampleSetFlag)voidsetExclusiveMaximum(Boolean exclusiveMaximum)voidsetExclusiveMaximumValue(BigDecimal exclusiveMaximumValue)voidsetExclusiveMinimum(Boolean exclusiveMinimum)voidsetExclusiveMinimumValue(BigDecimal exclusiveMinimumValue)voidsetExtensions(Map<String,Object> extensions)voidsetExternalDocs(ExternalDocumentation externalDocs)voidsetFormat(String format)voidsetIf(Schema _if)voidsetItems(Schema<?> items)voidsetJsonSchema(Map<String,Object> jsonSchema)voidsetJsonSchemaImpl(Object jsonSchemaImpl)voidsetMaxContains(Integer maxContains)voidsetMaximum(BigDecimal maximum)voidsetMaxItems(Integer maxItems)voidsetMaxLength(Integer maxLength)voidsetMaxProperties(Integer maxProperties)voidsetMinContains(Integer minContains)voidsetMinimum(BigDecimal minimum)voidsetMinItems(Integer minItems)voidsetMinLength(Integer minLength)voidsetMinProperties(Integer minProperties)voidsetMultipleOf(BigDecimal multipleOf)voidsetName(String name)voidsetNot(Schema not)voidsetNullable(Boolean nullable)voidsetOneOf(List<Schema> oneOf)voidsetPattern(String pattern)voidsetPatternProperties(Map<String,Schema> patternProperties)voidsetPrefixItems(List<Schema> prefixItems)voidsetProperties(Map<String,Schema> properties)voidsetPropertyNames(Schema propertyNames)voidsetReadOnly(Boolean readOnly)voidsetRequired(List<String> required)voidsetSpecVersion(SpecVersion specVersion)voidsetThen(Schema then)voidsetTitle(String title)voidsetType(String type)voidsetTypes(Set<String> types)voidsetUnevaluatedItems(Schema unevaluatedItems)voidsetUnevaluatedProperties(Schema unevaluatedProperties)voidsetUniqueItems(Boolean uniqueItems)voidsetWriteOnly(Boolean writeOnly)voidsetXml(XML xml)SchemaspecVersion(SpecVersion specVersion)Schemathen(Schema then)Schematitle(String title)protected StringtoIndentedString(Object o)Convert the given object to string with each line indented by 4 spaces (except the first line).StringtoString()Schematype(String type)Schematypes(Set<String> types)SchematypesItem(String type)SchemaunevaluatedItems(Schema unevaluatedItems)SchemaunevaluatedProperties(Schema unevaluatedProperties)SchemauniqueItems(Boolean uniqueItems)SchemawriteOnly(Boolean writeOnly)Schemaxml(XML xml)
-
-
-
Field Detail
-
BIND_TYPE_AND_TYPES
public static final String BIND_TYPE_AND_TYPES
- See Also:
- Constant Field Values
-
BINARY_STRING_CONVERSION_PROPERTY
public static final String BINARY_STRING_CONVERSION_PROPERTY
- See Also:
- Constant Field Values
-
SCHEMA_RESOLUTION_PROPERTY
public static final String SCHEMA_RESOLUTION_PROPERTY
- See Also:
- Constant Field Values
-
APPLY_SCHEMA_RESOLUTION_PROPERTY
public static final String APPLY_SCHEMA_RESOLUTION_PROPERTY
- See Also:
- Constant Field Values
-
EXPLICIT_OBJECT_SCHEMA_PROPERTY
public static final String EXPLICIT_OBJECT_SCHEMA_PROPERTY
- See Also:
- Constant Field Values
-
USE_ARBITRARY_SCHEMA_PROPERTY
public static final String USE_ARBITRARY_SCHEMA_PROPERTY
- See Also:
- Constant Field Values
-
_default
protected T _default
-
example
protected T example
-
_const
protected T _const
-
jsonSchemaImpl
protected transient Object jsonSchemaImpl
- Since:
- 2.2.0 (OpenAPI 3.1.0)
-
-
Constructor Detail
-
Schema
public Schema()
-
Schema
public Schema(SpecVersion specVersion)
-
Schema
protected Schema(String type, String format, SpecVersion specVersion)
-
-
Method Detail
-
getSpecVersion
public SpecVersion getSpecVersion()
-
setSpecVersion
public void setSpecVersion(SpecVersion specVersion)
-
specVersion
public Schema specVersion(SpecVersion specVersion)
-
getContains
public Schema getContains()
- Since:
- 2.2.0 (OpenAPI 3.1.0)
-
setContains
public void setContains(Schema contains)
- Since:
- 2.2.0 (OpenAPI 3.1.0)
-
get$id
public String get$id()
- Since:
- 2.2.0 (OpenAPI 3.1.0)
-
set$id
public void set$id(String $id)
- Since:
- 2.2.0 (OpenAPI 3.1.0)
-
get$schema
public String get$schema()
- Since:
- 2.2.0 (OpenAPI 3.1.0)
-
set$schema
public void set$schema(String $schema)
- Since:
- 2.2.0 (OpenAPI 3.1.0)
-
get$anchor
public String get$anchor()
- Since:
- 2.2.0 (OpenAPI 3.1.0)
-
set$anchor
public void set$anchor(String $anchor)
- Since:
- 2.2.0 (OpenAPI 3.1.0)
-
getExclusiveMaximumValue
public BigDecimal getExclusiveMaximumValue()
returns the exclusiveMaximumValue property from a Schema instance for OpenAPI 3.1.x- Returns:
- BigDecimal exclusiveMaximumValue
- Since:
- 2.2.0 (OpenAPI 3.1.0)
-
setExclusiveMaximumValue
public void setExclusiveMaximumValue(BigDecimal exclusiveMaximumValue)
- Since:
- 2.2.0 (OpenAPI 3.1.0)
-
exclusiveMaximumValue
public Schema exclusiveMaximumValue(BigDecimal exclusiveMaximumValue)
- Since:
- 2.2.0 (OpenAPI 3.1.0)
-
getExclusiveMinimumValue
public BigDecimal getExclusiveMinimumValue()
returns the exclusiveMinimumValue property from a Schema instance for OpenAPI 3.1.x- Returns:
- BigDecimal exclusiveMinimumValue
- Since:
- 2.2.0 (OpenAPI 3.1.0)
-
setExclusiveMinimumValue
public void setExclusiveMinimumValue(BigDecimal exclusiveMinimumValue)
- Since:
- 2.2.0 (OpenAPI 3.1.0)
-
exclusiveMinimumValue
public Schema exclusiveMinimumValue(BigDecimal exclusiveMinimumValue)
- Since:
- 2.2.0 (OpenAPI 3.1.0)
-
getPatternProperties
public Map<String,Schema> getPatternProperties()
returns the patternProperties property from a Schema instance.- Returns:
- Map<String, Schema> patternProperties
- Since:
- 2.2.0 (OpenAPI 3.1.0)
-
setPatternProperties
public void setPatternProperties(Map<String,Schema> patternProperties)
- Since:
- 2.2.0 (OpenAPI 3.1.0)
-
patternProperties
public Schema patternProperties(Map<String,Schema> patternProperties)
- Since:
- 2.2.0 (OpenAPI 3.1.0)
-
addPatternProperty
public Schema addPatternProperty(String key, Schema patternPropertiesItem)
- Since:
- 2.2.0 (OpenAPI 3.1.0)
-
addType
public boolean addType(String type)
- Since:
- 2.2.0 (OpenAPI 3.1.0)
-
get$vocabulary
public String get$vocabulary()
- Since:
- 2.2.8 (OpenAPI 3.1.0)
-
set$vocabulary
public void set$vocabulary(String $vocabulary)
- Since:
- 2.2.8 (OpenAPI 3.1.0)
-
get$dynamicAnchor
public String get$dynamicAnchor()
- Since:
- 2.2.8 (OpenAPI 3.1.0)
-
set$dynamicAnchor
public void set$dynamicAnchor(String $dynamicAnchor)
- Since:
- 2.2.8 (OpenAPI 3.1.0)
-
setJsonSchema
public void setJsonSchema(Map<String,Object> jsonSchema)
- Since:
- 2.2.0 (OpenAPI 3.1.0)
-
getJsonSchemaImpl
public Object getJsonSchemaImpl()
- Since:
- 2.2.0 (OpenAPI 3.1.0)
-
setJsonSchemaImpl
public void setJsonSchemaImpl(Object jsonSchemaImpl)
- Since:
- 2.2.0 (OpenAPI 3.1.0)
-
getAllOf
public List<Schema> getAllOf()
returns the allOf property from a ComposedSchema instance.- Returns:
- List<Schema> allOf
-
getAnyOf
public List<Schema> getAnyOf()
returns the anyOf property from a ComposedSchema instance.- Returns:
- List<Schema> anyOf
-
getOneOf
public List<Schema> getOneOf()
returns the oneOf property from a ComposedSchema instance.- Returns:
- List<Schema> oneOf
-
getItems
public Schema<?> getItems()
returns the items property from a ArraySchema instance.- Returns:
- Schema items
-
setItems
public void setItems(Schema<?> items)
-
getName
public String getName()
returns the name property from a Schema instance. Ignored in serialization.- Returns:
- String name
-
setName
public void setName(String name)
-
getDiscriminator
public Discriminator getDiscriminator()
returns the discriminator property from a AllOfSchema instance.- Returns:
- Discriminator discriminator
-
setDiscriminator
public void setDiscriminator(Discriminator discriminator)
-
discriminator
public Schema discriminator(Discriminator discriminator)
-
getTitle
public String getTitle()
returns the title property from a Schema instance.- Returns:
- String title
-
setTitle
public void setTitle(String title)
-
getDefault
public T getDefault()
returns the _default property from a Schema instance.- Returns:
- String _default
-
setDefault
public void setDefault(Object _default)
-
addEnumItemObject
public void addEnumItemObject(T _enumItem)
-
getMultipleOf
public BigDecimal getMultipleOf()
returns the multipleOf property from a Schema instance.minimum: 0
- Returns:
- BigDecimal multipleOf
-
setMultipleOf
public void setMultipleOf(BigDecimal multipleOf)
-
multipleOf
public Schema multipleOf(BigDecimal multipleOf)
-
getMaximum
public BigDecimal getMaximum()
returns the maximum property from a Schema instance.- Returns:
- BigDecimal maximum
-
setMaximum
public void setMaximum(BigDecimal maximum)
-
maximum
public Schema maximum(BigDecimal maximum)
-
getExclusiveMaximum
public Boolean getExclusiveMaximum()
returns the exclusiveMaximum property from a Schema instance for OpenAPI 3.0.x- Returns:
- Boolean exclusiveMaximum
-
setExclusiveMaximum
public void setExclusiveMaximum(Boolean exclusiveMaximum)
-
getMinimum
public BigDecimal getMinimum()
returns the minimum property from a Schema instance.- Returns:
- BigDecimal minimum
-
setMinimum
public void setMinimum(BigDecimal minimum)
-
minimum
public Schema minimum(BigDecimal minimum)
-
getExclusiveMinimum
public Boolean getExclusiveMinimum()
returns the exclusiveMinimum property from a Schema instance for OpenAPI 3.0.x- Returns:
- Boolean exclusiveMinimum
-
setExclusiveMinimum
public void setExclusiveMinimum(Boolean exclusiveMinimum)
-
getMaxLength
public Integer getMaxLength()
returns the maxLength property from a Schema instance.minimum: 0
- Returns:
- Integer maxLength
-
setMaxLength
public void setMaxLength(Integer maxLength)
-
getMinLength
public Integer getMinLength()
returns the minLength property from a Schema instance.minimum: 0
- Returns:
- Integer minLength
-
setMinLength
public void setMinLength(Integer minLength)
-
getPattern
public String getPattern()
returns the pattern property from a Schema instance.- Returns:
- String pattern
-
setPattern
public void setPattern(String pattern)
-
getMaxItems
public Integer getMaxItems()
returns the maxItems property from a Schema instance.minimum: 0
- Returns:
- Integer maxItems
-
setMaxItems
public void setMaxItems(Integer maxItems)
-
getMinItems
public Integer getMinItems()
returns the minItems property from a Schema instance.minimum: 0
- Returns:
- Integer minItems
-
setMinItems
public void setMinItems(Integer minItems)
-
getUniqueItems
public Boolean getUniqueItems()
returns the uniqueItems property from a Schema instance.- Returns:
- Boolean uniqueItems
-
setUniqueItems
public void setUniqueItems(Boolean uniqueItems)
-
getMaxProperties
public Integer getMaxProperties()
returns the maxProperties property from a Schema instance.minimum: 0
- Returns:
- Integer maxProperties
-
setMaxProperties
public void setMaxProperties(Integer maxProperties)
-
getMinProperties
public Integer getMinProperties()
returns the minProperties property from a Schema instance.minimum: 0
- Returns:
- Integer minProperties
-
setMinProperties
public void setMinProperties(Integer minProperties)
-
getRequired
public List<String> getRequired()
returns the required property from a Schema instance.- Returns:
- List<String> required
-
getType
public String getType()
returns the type property from a Schema instance.- Returns:
- String type
-
setType
public void setType(String type)
-
getNot
public Schema getNot()
returns the not property from a Schema instance.- Returns:
- Schema not
-
setNot
public void setNot(Schema not)
-
getProperties
public Map<String,Schema> getProperties()
returns the properties property from a Schema instance.- Returns:
- Map<String, Schema> properties
-
addProperties
@Deprecated public Schema addProperties(String key, Schema property)
Deprecated.
-
getAdditionalProperties
public Object getAdditionalProperties()
returns the additionalProperties property from a Schema instance. Can be either a Boolean or a Schema- Returns:
- Object additionalProperties
-
setAdditionalProperties
public void setAdditionalProperties(Object additionalProperties)
-
getDescription
public String getDescription()
returns the description property from a Schema instance.- Returns:
- String description
-
setDescription
public void setDescription(String description)
-
getFormat
public String getFormat()
returns the format property from a Schema instance.- Returns:
- String format
-
setFormat
public void setFormat(String format)
-
get$ref
public String get$ref()
returns the $ref property from a Schema instance.- Returns:
- String $ref
-
set$ref
public void set$ref(String $ref)
-
getNullable
public Boolean getNullable()
returns the nullable property from a Schema instance.- Returns:
- Boolean nullable
-
setNullable
public void setNullable(Boolean nullable)
-
getReadOnly
public Boolean getReadOnly()
returns the readOnly property from a Schema instance.- Returns:
- Boolean readOnly
-
setReadOnly
public void setReadOnly(Boolean readOnly)
-
getWriteOnly
public Boolean getWriteOnly()
returns the writeOnly property from a Schema instance.- Returns:
- Boolean writeOnly
-
setWriteOnly
public void setWriteOnly(Boolean writeOnly)
-
getExample
public Object getExample()
returns the example property from a Schema instance.- Returns:
- String example
-
setExample
public void setExample(Object example)
-
getExternalDocs
public ExternalDocumentation getExternalDocs()
returns the externalDocs property from a Schema instance.- Returns:
- ExternalDocumentation externalDocs
-
setExternalDocs
public void setExternalDocs(ExternalDocumentation externalDocs)
-
externalDocs
public Schema externalDocs(ExternalDocumentation externalDocs)
-
getDeprecated
public Boolean getDeprecated()
returns the deprecated property from a Schema instance.- Returns:
- Boolean deprecated
-
setDeprecated
public void setDeprecated(Boolean deprecated)
-
getXml
public XML getXml()
returns the xml property from a Schema instance.- Returns:
- XML xml
-
setXml
public void setXml(XML xml)
-
getExampleSetFlag
public boolean getExampleSetFlag()
returns true if example setter has been invoked Used to flag explicit setting to null of example (vs missing field) while deserializing from json/yaml string- Returns:
- boolean exampleSetFlag
-
setExampleSetFlag
public void setExampleSetFlag(boolean exampleSetFlag)
-
getContentEncoding
public String getContentEncoding()
- Since:
- 2.2.0 (OpenAPI 3.1.0)
-
setContentEncoding
public void setContentEncoding(String contentEncoding)
- Since:
- 2.2.0 (OpenAPI 3.1.0)
-
getContentMediaType
public String getContentMediaType()
- Since:
- 2.2.0 (OpenAPI 3.1.0)
-
setContentMediaType
public void setContentMediaType(String contentMediaType)
- Since:
- 2.2.0 (OpenAPI 3.1.0)
-
contentMediaType
public Schema contentMediaType(String contentMediaType)
- Since:
- 2.2.0 (OpenAPI 3.1.0)
-
getContentSchema
public Schema getContentSchema()
- Since:
- 2.2.0 (OpenAPI 3.1.0)
-
setContentSchema
public void setContentSchema(Schema contentSchema)
- Since:
- 2.2.0 (OpenAPI 3.1.0)
-
getPropertyNames
public Schema getPropertyNames()
- Since:
- 2.2.0 (OpenAPI 3.1.0)
-
setPropertyNames
public void setPropertyNames(Schema propertyNames)
- Since:
- 2.2.0 (OpenAPI 3.1.0)
-
getUnevaluatedProperties
public Schema getUnevaluatedProperties()
- Since:
- 2.2.0 (OpenAPI 3.1.0)
-
setUnevaluatedProperties
public void setUnevaluatedProperties(Schema unevaluatedProperties)
- Since:
- 2.2.0 (OpenAPI 3.1.0)
-
unevaluatedProperties
public Schema unevaluatedProperties(Schema unevaluatedProperties)
- Since:
- 2.2.0 (OpenAPI 3.1.0)
-
getMaxContains
public Integer getMaxContains()
- Since:
- 2.2.0 (OpenAPI 3.1.0)
-
setMaxContains
public void setMaxContains(Integer maxContains)
- Since:
- 2.2.0 (OpenAPI 3.1.0)
-
getMinContains
public Integer getMinContains()
- Since:
- 2.2.0 (OpenAPI 3.1.0)
-
setMinContains
public void setMinContains(Integer minContains)
- Since:
- 2.2.0 (OpenAPI 3.1.0)
-
getAdditionalItems
public Schema getAdditionalItems()
- Since:
- 2.2.0 (OpenAPI 3.1.0)
-
setAdditionalItems
public void setAdditionalItems(Schema additionalItems)
- Since:
- 2.2.0 (OpenAPI 3.1.0)
-
getUnevaluatedItems
public Schema getUnevaluatedItems()
- Since:
- 2.2.0 (OpenAPI 3.1.0)
-
setUnevaluatedItems
public void setUnevaluatedItems(Schema unevaluatedItems)
- Since:
- 2.2.0 (OpenAPI 3.1.0)
-
unevaluatedItems
public Schema unevaluatedItems(Schema unevaluatedItems)
- Since:
- 2.2.0 (OpenAPI 3.1.0)
-
getIf
public Schema getIf()
- Since:
- 2.2.0 (OpenAPI 3.1.0)
-
setIf
public void setIf(Schema _if)
- Since:
- 2.2.0 (OpenAPI 3.1.0)
-
getElse
public Schema getElse()
- Since:
- 2.2.0 (OpenAPI 3.1.0)
-
setElse
public void setElse(Schema _else)
- Since:
- 2.2.0 (OpenAPI 3.1.0)
-
getThen
public Schema getThen()
- Since:
- 2.2.0 (OpenAPI 3.1.0)
-
setThen
public void setThen(Schema then)
- Since:
- 2.2.0 (OpenAPI 3.1.0)
-
setDependentSchemas
public void setDependentSchemas(Map<String,Schema> dependentSchemas)
- Since:
- 2.2.0 (OpenAPI 3.1.0)
-
dependentSchemas
public Schema dependentSchemas(Map<String,Schema> dependentSchemas)
- Since:
- 2.2.0 (OpenAPI 3.1.0)
-
getDependentRequired
public Map<String,List<String>> getDependentRequired()
- Since:
- 2.2.0 (OpenAPI 3.1.0)
-
setDependentRequired
public void setDependentRequired(Map<String,List<String>> dependentRequired)
- Since:
- 2.2.0 (OpenAPI 3.1.0)
-
dependentRequired
public Schema dependentRequired(Map<String,List<String>> dependentRequired)
- Since:
- 2.2.0 (OpenAPI 3.1.0)
-
get$comment
public String get$comment()
- Since:
- 2.2.0 (OpenAPI 3.1.0)
-
set$comment
public void set$comment(String $comment)
- Since:
- 2.2.0 (OpenAPI 3.1.0)
-
addExample
public void addExample(T example)
- Since:
- 2.2.0 (OpenAPI 3.1.0)
-
toIndentedString
protected String toIndentedString(Object o)
Convert the given object to string with each line indented by 4 spaces (except the first line).
-
exampleSetFlag
public Schema exampleSetFlag(boolean exampleSetFlag)
-
getConst
public T getConst()
- Since:
- 2.2.0 (OpenAPI 3.1.0)
-
setConst
public void setConst(Object _const)
- Since:
- 2.2.0 (OpenAPI 3.1.0)
-
getBooleanSchemaValue
public Boolean getBooleanSchemaValue()
- Since:
- 2.2.2 (OpenAPI 3.1.0)
-
setBooleanSchemaValue
public void setBooleanSchemaValue(Boolean booleanSchemaValue)
- Since:
- 2.2.2 (OpenAPI 3.1.0)
-
-