public interface Schema extends Extensible<Schema>, Constructible, Reference<Schema>
For more information about the properties, see JSON Schema Core and JSON Schema Validation. Unless stated otherwise, the property definitions follow the JSON Schema.
Any time a Schema Object can be used, a Reference Object can be used in its place. This allows referencing an existing definition instead of defining the same Schema again.
Modifier and Type | Interface and Description |
---|---|
static class |
Schema.SchemaType
The values allowed for the in field.
|
Modifier and Type | Method and Description |
---|---|
Schema |
addAllOf(Schema allOf)
Adds the given Schema to the list of schemas used by the allOf property.
|
Schema |
addAnyOf(Schema anyOf)
Adds the given Schema to the list of schemas used by the anyOf property.
|
Schema |
addEnumeration(java.lang.Object enumeration)
Adds an item of the appropriate type to the enumerated list of values allowed.
|
default Schema |
additionalPropertiesBoolean(java.lang.Boolean additionalProperties)
Sets the value of "additionalProperties" to either True or False.
|
default Schema |
additionalPropertiesSchema(Schema additionalProperties)
Sets the Schema which defines additional properties not defined by "properties" or "patternProperties".
|
Schema |
addOneOf(Schema oneOf)
Adds the given Schema to the list of schemas used by the oneOf property.
|
Schema |
addProperty(java.lang.String key,
Schema propertySchema)
Adds a Schema property of the provided name using the given schema.
|
Schema |
addRequired(java.lang.String required)
Adds the name of an item to the list of fields required in objects defined by this Schema.
|
default Schema |
allOf(java.util.List<Schema> allOf)
Sets the schemas used by the allOf property of this Schema.
|
default Schema |
anyOf(java.util.List<Schema> anyOf)
Sets the schemas used by the anyOf property of this Schema.
|
default Schema |
defaultValue(java.lang.Object defaultValue)
Set the default value property of this Schema instance to the value given.
|
default Schema |
deprecated(java.lang.Boolean deprecated)
Sets the deprecated property of this Schema.
|
default Schema |
description(java.lang.String description)
Sets the description property of this Schema to the given string.
|
default Schema |
discriminator(Discriminator discriminator)
Sets the discriminator property of this Schema instance to the given object.
|
default Schema |
enumeration(java.util.List<java.lang.Object> enumeration) |
default Schema |
example(java.lang.Object example)
Sets the example property of this Schema instance.
|
default Schema |
exclusiveMaximum(java.lang.Boolean exclusiveMaximum)
Sets the exclusiveMaximum property of this Schema instance to the value given.
|
default Schema |
exclusiveMinimum(java.lang.Boolean exclusiveMinimum)
Sets the exclusiveMinimum property of this Schema instance to the value given.
|
default Schema |
externalDocs(ExternalDocumentation externalDocs)
Sets the externalDocs property of this Schema to the indicated value.
|
default Schema |
format(java.lang.String format)
Sets the format property of this Schema instance to the given string.
|
java.lang.Boolean |
getAdditionalPropertiesBoolean()
Returns the value of the "additionalProperties" setting, which indicates whether
properties not otherwise defined are allowed.
|
Schema |
getAdditionalPropertiesSchema()
Returns the value of the "additionalProperties" setting, which indicates whether
properties not otherwise defined are allowed.
|
java.util.List<Schema> |
getAllOf()
Returns the schemas used by the allOf property.
|
java.util.List<Schema> |
getAnyOf()
Returns the schemas used by the anyOf property.
|
java.lang.Object |
getDefaultValue()
Returns the default value property from this Schema instance.
|
java.lang.Boolean |
getDeprecated()
Returns the deprecated property from this Schema instance.
|
java.lang.String |
getDescription()
Returns a description of the purpose of this Schema.
|
Discriminator |
getDiscriminator()
Returns the discriminator property from this Schema instance.
|
java.util.List<java.lang.Object> |
getEnumeration()
Returns the enumerated list of values allowed for objects defined by this Schema.
|
java.lang.Object |
getExample()
Returns the example property from this Schema instance.
|
java.lang.Boolean |
getExclusiveMaximum()
Returns the exclusiveMaximum property from this Schema instance.
|
java.lang.Boolean |
getExclusiveMinimum()
Returns the exclusiveMinimum property from this Schema instance.
|
ExternalDocumentation |
getExternalDocs()
Returns the externalDocs property from this Schema instance.
|
java.lang.String |
getFormat()
Returns the format property from this Schema instance.
|
Schema |
getItems()
Returns the Schema used for all the elements of an array typed Schema.
|
java.math.BigDecimal |
getMaximum()
Returns the maximum property from this Schema instance.
|
java.lang.Integer |
getMaxItems()
Returns the maxItems property from this Schema instance.
|
java.lang.Integer |
getMaxLength()
Returns the maxLength property from this Schema instance.
|
java.lang.Integer |
getMaxProperties()
Returns the maxProperties property from this Schema instance.
|
java.math.BigDecimal |
getMinimum()
Returns the minimum property from this Schema instance.
|
java.lang.Integer |
getMinItems()
Returns the minItems property from this Schema instance.
|
java.lang.Integer |
getMinLength()
Returns the minLength property from this Schema instance.
|
java.lang.Integer |
getMinProperties()
Returns the minProperties property from this Schema instance.
|
java.math.BigDecimal |
getMultipleOf()
Returns the multipleOf property from this Schema instance.
|
Schema |
getNot()
Returns a Schema which describes properties not allowed in objects defined by the current schema.
|
java.lang.Boolean |
getNullable()
Returns the nullable property from this Schema instance which indicates whether null is a valid value.
|
java.util.List<Schema> |
getOneOf()
Returns the schemas used by the oneOf property.
|
java.lang.String |
getPattern()
Returns the pattern property from this Schema instance.
|
java.util.Map<java.lang.String,Schema> |
getProperties()
Returns the properties defined in this Schema.
|
java.lang.Boolean |
getReadOnly()
Returns the readOnly property from this Schema instance.
|
java.util.List<java.lang.String> |
getRequired()
Returns the required property from this Schema instance.
|
java.lang.String |
getTitle()
Returns the title property from this Schema instance.
|
Schema.SchemaType |
getType()
Returns the type property from this Schema.
|
java.lang.Boolean |
getUniqueItems()
Returns the uniqueItems property from this Schema instance.
|
java.lang.Boolean |
getWriteOnly()
Returns the writeOnly property from this Schema instance.
|
XML |
getXml()
Returns the xml property from this Schema instance.
|
default Schema |
items(Schema items)
Set the Schema used for all the elements of an array typed Schema.
|
default Schema |
maximum(java.math.BigDecimal maximum)
Sets the maximum property of this Schema instance to the value given.
|
default Schema |
maxItems(java.lang.Integer maxItems)
Sets the maxItems property of this Schema instance to the value given.
|
default Schema |
maxLength(java.lang.Integer maxLength)
Sets the maxLength property of this Schema instance to the value given.
|
default Schema |
maxProperties(java.lang.Integer maxProperties)
Sets the maxProperties property of this Schema instance to the value given.
|
default Schema |
minimum(java.math.BigDecimal minimum)
Sets the minimum property of this Schema instance to the value given.
|
default Schema |
minItems(java.lang.Integer minItems)
Sets the minItems property of this Schema instance to the value given.
|
default Schema |
minLength(java.lang.Integer minLength)
Sets the minLength property of this Schema instance to the value given.
|
default Schema |
minProperties(java.lang.Integer minProperties)
Sets the minProperties property of this Schema instance to the value given.
|
default Schema |
multipleOf(java.math.BigDecimal multipleOf)
Sets the multipleOf property of this Schema instance to the value given.
|
default Schema |
not(Schema not)
Sets the not property to a Schema which describes properties not allowed in objects defined by the current schema.
|
default Schema |
nullable(java.lang.Boolean nullable)
Sets the nullable property of this Schema instance.
|
default Schema |
oneOf(java.util.List<Schema> oneOf)
Sets the schemas used by the oneOf property of this Schema.
|
default Schema |
pattern(java.lang.String pattern)
Sets the pattern property of this Schema instance to the string given.
|
default Schema |
properties(java.util.Map<java.lang.String,Schema> properties)
Sets the properties of this Schema instance to the map provided.
|
default Schema |
readOnly(java.lang.Boolean readOnly)
Sets the readOnly property of this Schema.
|
void |
removeAllOf(Schema allOf)
Removes the given Schema to the list of schemas used by the allOf property.
|
void |
removeAnyOf(Schema anyOf)
Removes the given Schema to the list of schemas used by the anyOf property.
|
void |
removeEnumeration(java.lang.Object enumeration)
Removes an item of the appropriate type to the enumerated list of values allowed.
|
void |
removeOneOf(Schema oneOf)
Removes the given Schema to the list of schemas used by the oneOf property.
|
void |
removeProperty(java.lang.String key)
Removes a Schema property of the provided name using the given schema.
|
void |
removeRequired(java.lang.String required)
Removes the name of an item to the list of fields required in objects defined by this Schema.
|
default Schema |
required(java.util.List<java.lang.String> required)
Sets the list of fields required in objects defined by this Schema.
|
void |
setAdditionalPropertiesBoolean(java.lang.Boolean additionalProperties)
Sets the value of "additionalProperties" to either True or False.
|
void |
setAdditionalPropertiesSchema(Schema additionalProperties)
Sets the Schema which defines additional properties not defined by "properties" or "patternProperties".
|
void |
setAllOf(java.util.List<Schema> allOf)
Sets the schemas used by the allOf property of this Schema.
|
void |
setAnyOf(java.util.List<Schema> anyOf)
Sets the schemas used by the anyOf property of this Schema.
|
void |
setDefaultValue(java.lang.Object defaultValue)
Set the default value property of this Schema instance to the value given.
|
void |
setDeprecated(java.lang.Boolean deprecated)
Sets the deprecated property of this Schema.
|
void |
setDescription(java.lang.String description)
Sets the description property of this Schema to the given string.
|
void |
setDiscriminator(Discriminator discriminator)
Sets the discriminator property of this Schema instance to the given object.
|
void |
setEnumeration(java.util.List<java.lang.Object> enumeration)
Sets the enumerated list of values allowed for objects defined by this Schema.
|
void |
setExample(java.lang.Object example)
Sets the example property of this Schema instance.
|
void |
setExclusiveMaximum(java.lang.Boolean exclusiveMaximum)
Sets the exclusiveMaximum property of this Schema instance to the value given.
|
void |
setExclusiveMinimum(java.lang.Boolean exclusiveMinimum)
Sets the exclusiveMinimum property of this Schema instance to the value given.
|
void |
setExternalDocs(ExternalDocumentation externalDocs)
Sets the externalDocs property of this Schema to the indicated value.
|
void |
setFormat(java.lang.String format)
Sets the format property of this Schema instance to the given string.
|
void |
setItems(Schema items)
Set the Schema used for all the elements of an array typed Schema.
|
void |
setMaximum(java.math.BigDecimal maximum)
Sets the maximum property of this Schema instance to the value given.
|
void |
setMaxItems(java.lang.Integer maxItems)
Sets the maxItems property of this Schema instance to the value given.
|
void |
setMaxLength(java.lang.Integer maxLength)
Sets the maxLength property of this Schema instance to the value given.
|
void |
setMaxProperties(java.lang.Integer maxProperties)
Sets the maxProperties property of this Schema instance to the value given.
|
void |
setMinimum(java.math.BigDecimal minimum)
Sets the minimum property of this Schema instance to the value given.
|
void |
setMinItems(java.lang.Integer minItems)
Sets the minItems property of this Schema instance to the value given.
|
void |
setMinLength(java.lang.Integer minLength)
Sets the minLength property of this Schema instance to the value given.
|
void |
setMinProperties(java.lang.Integer minProperties)
Sets the minProperties property of this Schema instance to the value given.
|
void |
setMultipleOf(java.math.BigDecimal multipleOf)
Sets the multipleOf property of this Schema instance to the value given.
|
void |
setNot(Schema not)
Sets the not property to a Schema which describes properties not allowed in objects defined by the current schema.
|
void |
setNullable(java.lang.Boolean nullable)
Sets the nullable property of this Schema instance.
|
void |
setOneOf(java.util.List<Schema> oneOf)
Sets the schemas used by the oneOf property of this Schema.
|
void |
setPattern(java.lang.String pattern)
Sets the pattern property of this Schema instance to the string given.
|
void |
setProperties(java.util.Map<java.lang.String,Schema> properties)
Sets the properties of this Schema instance to the map provided.
|
void |
setReadOnly(java.lang.Boolean readOnly)
Sets the readOnly property of this Schema.
|
void |
setRequired(java.util.List<java.lang.String> required)
Sets the list of fields required in objects defined by this Schema.
|
void |
setTitle(java.lang.String title)
Sets the title property of this Schema instance to the given string.
|
void |
setType(Schema.SchemaType type)
Sets the type used by this Schema to the string given.
|
void |
setUniqueItems(java.lang.Boolean uniqueItems)
Sets the uniqueItems property of this Schema instance to the value given.
|
void |
setWriteOnly(java.lang.Boolean writeOnly)
Sets the writeOnly property of this Schema.
|
void |
setXml(XML xml)
Sets the xml property of this Schema instance.
|
default Schema |
title(java.lang.String title)
Sets the title property of this Schema instance to the given string.
|
default Schema |
type(Schema.SchemaType type)
Sets the type used by this Schema to the string given.
|
default Schema |
uniqueItems(java.lang.Boolean uniqueItems)
Sets the uniqueItems property of this Schema instance to the value given.
|
default Schema |
writeOnly(java.lang.Boolean writeOnly)
Sets the writeOnly property of this Schema.
|
default Schema |
xml(XML xml)
Sets the xml property of this Schema instance.
|
addExtension, extensions, getExtensions, removeExtension, setExtensions
Discriminator getDiscriminator()
void setDiscriminator(Discriminator discriminator)
discriminator
- the object that is used to differentiate between the schemas which may satisfy the payload descriptiondefault Schema discriminator(Discriminator discriminator)
discriminator
- the object that is used to differentiate between the schemas which may satisfy the payload descriptionjava.lang.String getTitle()
void setTitle(java.lang.String title)
title
- a title to assign to this Schemadefault Schema title(java.lang.String title)
title
- a title to assign to this Schemajava.lang.Object getDefaultValue()
void setDefaultValue(java.lang.Object defaultValue)
defaultValue
- a value to use as the defaultdefault Schema defaultValue(java.lang.Object defaultValue)
defaultValue
- a value to use as the defaultjava.util.List<java.lang.Object> getEnumeration()
void setEnumeration(java.util.List<java.lang.Object> enumeration)
enumeration
- a list of values alloweddefault Schema enumeration(java.util.List<java.lang.Object> enumeration)
Schema addEnumeration(java.lang.Object enumeration)
enumeration
- an object to add to the enumerated valuesvoid removeEnumeration(java.lang.Object enumeration)
enumeration
- an object to add to the enumerated valuesjava.math.BigDecimal getMultipleOf()
minimum: 0
void setMultipleOf(java.math.BigDecimal multipleOf)
multipleOf
- a positive number that restricts the value of objects described by this Schemadefault Schema multipleOf(java.math.BigDecimal multipleOf)
multipleOf
- a positive number that restricts the value of objects described by this Schemajava.math.BigDecimal getMaximum()
void setMaximum(java.math.BigDecimal maximum)
maximum
- specifies the maximum numeric value of objects defined by this Schemadefault Schema maximum(java.math.BigDecimal maximum)
maximum
- specifies the maximum numeric value of objects defined by this Schemajava.lang.Boolean getExclusiveMaximum()
void setExclusiveMaximum(java.lang.Boolean exclusiveMaximum)
exclusiveMaximum
- when true the numeric value of objects defined by this Schema must be less than indicated by the maximum propertydefault Schema exclusiveMaximum(java.lang.Boolean exclusiveMaximum)
exclusiveMaximum
- when true the numeric value of objects defined by this Schema must be less than indicated by the maximum propertyjava.math.BigDecimal getMinimum()
void setMinimum(java.math.BigDecimal minimum)
minimum
- specifies the minimum numeric value of objects defined by this Schemadefault Schema minimum(java.math.BigDecimal minimum)
minimum
- specifies the minimum numeric value of objects defined by this Schemajava.lang.Boolean getExclusiveMinimum()
void setExclusiveMinimum(java.lang.Boolean exclusiveMinimum)
exclusiveMinimum
- when true the numeric value of objects defined by this Schema must be greater than indicated by the minimum propertydefault Schema exclusiveMinimum(java.lang.Boolean exclusiveMinimum)
exclusiveMinimum
- when true the numeric value of objects defined by this Schema must be greater than indicated by the minimum propertyjava.lang.Integer getMaxLength()
minimum: 0
void setMaxLength(java.lang.Integer maxLength)
maxLength
- the maximum length of objects defined by this Schemadefault Schema maxLength(java.lang.Integer maxLength)
maxLength
- the maximum length of objects defined by this Schemajava.lang.Integer getMinLength()
minimum: 0
void setMinLength(java.lang.Integer minLength)
minLength
- the minimum length of objects defined by this Schemadefault Schema minLength(java.lang.Integer minLength)
minLength
- the minimum length of objects defined by this Schemajava.lang.String getPattern()
void setPattern(java.lang.String pattern)
pattern
- the regular expression which restricts objects defined by this Schemadefault Schema pattern(java.lang.String pattern)
pattern
- the regular expression which restricts objects defined by this Schemajava.lang.Integer getMaxItems()
minimum: 0
void setMaxItems(java.lang.Integer maxItems)
maxItems
- the maximum number of elements in objects defined by this Schema e.g. array elementsdefault Schema maxItems(java.lang.Integer maxItems)
maxItems
- the maximum number of elements in objects defined by this Schema e.g. array elementsjava.lang.Integer getMinItems()
minimum: 0
void setMinItems(java.lang.Integer minItems)
minItems
- the minimum number of elements in objects defined by this Schema e.g. array elementsdefault Schema minItems(java.lang.Integer minItems)
minItems
- the minimum number of elements in objects defined by this Schema e.g. array elementsjava.lang.Boolean getUniqueItems()
void setUniqueItems(java.lang.Boolean uniqueItems)
uniqueItems
- ensure the items (e.g. array elements) are unique in objects defined by this Schemadefault Schema uniqueItems(java.lang.Boolean uniqueItems)
uniqueItems
- ensure the items (e.g. array elements) are unique in objects defined by this Schemajava.lang.Integer getMaxProperties()
minimum: 0
void setMaxProperties(java.lang.Integer maxProperties)
maxProperties
- limit the number of properties in objects defined by this Schemadefault Schema maxProperties(java.lang.Integer maxProperties)
maxProperties
- limit the number of properties in objects defined by this Schemajava.lang.Integer getMinProperties()
minimum: 0
void setMinProperties(java.lang.Integer minProperties)
minProperties
- limit the number of properties in objects defined by this Schemadefault Schema minProperties(java.lang.Integer minProperties)
minProperties
- limit the number of properties in objects defined by this Schemajava.util.List<java.lang.String> getRequired()
void setRequired(java.util.List<java.lang.String> required)
required
- the list of fields required in objects defined by this Schemadefault Schema required(java.util.List<java.lang.String> required)
required
- the list of fields required in objects defined by this SchemaSchema addRequired(java.lang.String required)
required
- the name of an item required in objects defined by this Schema instancevoid removeRequired(java.lang.String required)
required
- the name of an item required in objects defined by this Schema instanceSchema.SchemaType getType()
null
void setType(Schema.SchemaType type)
type
- the type used by this Schema or null
for
reference schemasdefault Schema type(Schema.SchemaType type)
type
- the type used by this Schema or null
for
reference schemasSchema getNot()
void setNot(Schema not)
not
- the Schema which describes properties not alloweddefault Schema not(Schema not)
not
- the Schema which describes properties not allowedjava.util.Map<java.lang.String,Schema> getProperties()
void setProperties(java.util.Map<java.lang.String,Schema> properties)
properties
- a map which associates property names with the schemas that describe their contentsdefault Schema properties(java.util.Map<java.lang.String,Schema> properties)
properties
- a map which associates property names with the schemas that describe their contentsSchema addProperty(java.lang.String key, Schema propertySchema)
key
- the name of a new Schema propertypropertySchema
- the Schema which describes the properties of the named property. null values will be rejected (implementation will throw
an exception) or ignored.void removeProperty(java.lang.String key)
key
- the name of a new Schema propertySchema getAdditionalPropertiesSchema()
Boolean
or Schema
, they can not be set both at the same time.
This method returns a Schema
, for the Boolean
getter use getAdditionalPropertiesBoolean()
Schema
)java.lang.Boolean getAdditionalPropertiesBoolean()
Boolean
or Schema
, they can not be set both at the same time.
This method returns a Boolean
, for the Schema
getter use getAdditionalPropertiesSchema()
Boolean
)void setAdditionalPropertiesSchema(Schema additionalProperties)
getAdditionalPropertiesSchema()
for more details on this setting. Note
that this version of the setter is mutually exclusive with the Boolean
variants (see
setAdditionalPropertiesBoolean(Boolean)
).additionalProperties
- a Schema which defines additional propertiesvoid setAdditionalPropertiesBoolean(java.lang.Boolean additionalProperties)
getAdditionalPropertiesBoolean()
for more details on this setting. Note that
this version of the setter is mutually exclusive with the Schema
variants (see
setAdditionalPropertiesSchema(Schema)
).additionalProperties
- a Schema which defines additional propertiesdefault Schema additionalPropertiesSchema(Schema additionalProperties)
getAdditionalPropertiesSchema()
for more details on this setting. Note
that this version of the setter is mutually exclusive with the Boolean
variants (see
additionalPropertiesBoolean(Boolean)
).additionalProperties
- a Schema which defines additional propertiesdefault Schema additionalPropertiesBoolean(java.lang.Boolean additionalProperties)
getAdditionalPropertiesBoolean()
for more details on this setting. Note that
this version of the setter is mutually exclusive with the Schema
variants (see
additionalPropertiesSchema(Schema)
).additionalProperties
- a Schema which defines additional propertiesjava.lang.String getDescription()
void setDescription(java.lang.String description)
description
- a string containing a description of the purpose of this Schemadefault Schema description(java.lang.String description)
description
- a string containing a description of the purpose of this Schemajava.lang.String getFormat()
void setFormat(java.lang.String format)
format
- the string specifying the data formatdefault Schema format(java.lang.String format)
format
- the string specifying the data formatjava.lang.Boolean getNullable()
void setNullable(java.lang.Boolean nullable)
nullable
- a boolean value indicating this Schema allows a null value.default Schema nullable(java.lang.Boolean nullable)
nullable
- a boolean value indicating this Schema allows a null value.java.lang.Boolean getReadOnly()
void setReadOnly(java.lang.Boolean readOnly)
readOnly
- true indicates the Schema should not be sent as part of a request messagedefault Schema readOnly(java.lang.Boolean readOnly)
readOnly
- true indicates the Schema should not be sent as part of a request messagejava.lang.Boolean getWriteOnly()
void setWriteOnly(java.lang.Boolean writeOnly)
writeOnly
- true indicates the Schema should not be sent as part of a response messagedefault Schema writeOnly(java.lang.Boolean writeOnly)
writeOnly
- true indicates the Schema should not be sent as part of a response messagejava.lang.Object getExample()
void setExample(java.lang.Object example)
example
- an object which is an instance of this Schemadefault Schema example(java.lang.Object example)
example
- an object which is an instance of this SchemaExternalDocumentation getExternalDocs()
void setExternalDocs(ExternalDocumentation externalDocs)
externalDocs
- an additional external documentation objectdefault Schema externalDocs(ExternalDocumentation externalDocs)
externalDocs
- an additional external documentation objectjava.lang.Boolean getDeprecated()
void setDeprecated(java.lang.Boolean deprecated)
deprecated
- true to indicate this Schema is deprecateddefault Schema deprecated(java.lang.Boolean deprecated)
deprecated
- true to indicate this Schema is deprecatedXML getXml()
void setXml(XML xml)
xml
- a metadata object to describe the XML representation of this propertydefault Schema xml(XML xml)
xml
- a metadata object to describe the XML representation of this propertySchema getItems()
void setItems(Schema items)
items
- the Schema used by this arraydefault Schema items(Schema items)
items
- the Schema used by this arrayjava.util.List<Schema> getAllOf()
void setAllOf(java.util.List<Schema> allOf)
allOf
- the list of schemas used by the allOf propertydefault Schema allOf(java.util.List<Schema> allOf)
allOf
- the list of schemas used by the allOf propertySchema addAllOf(Schema allOf)
allOf
- a Schema to use with the allOf propertyvoid removeAllOf(Schema allOf)
allOf
- a Schema to use with the allOf propertyjava.util.List<Schema> getAnyOf()
void setAnyOf(java.util.List<Schema> anyOf)
anyOf
- the list of schemas used by the anyOf propertydefault Schema anyOf(java.util.List<Schema> anyOf)
anyOf
- the list of schemas used by the anyOf propertySchema addAnyOf(Schema anyOf)
anyOf
- a Schema to use with the anyOf propertyvoid removeAnyOf(Schema anyOf)
anyOf
- a Schema to use with the anyOf propertyjava.util.List<Schema> getOneOf()
void setOneOf(java.util.List<Schema> oneOf)
oneOf
- the list of schemas used by the oneOf propertydefault Schema oneOf(java.util.List<Schema> oneOf)
oneOf
- the list of schemas used by the oneOf propertySchema addOneOf(Schema oneOf)
oneOf
- a Schema to use with the oneOf propertyvoid removeOneOf(Schema oneOf)
oneOf
- a Schema to use with the oneOf property