Class ContainerTypeSchema
java.lang.Object
com.fasterxml.jackson.module.jsonSchema.jakarta.JsonSchema
com.fasterxml.jackson.module.jsonSchema.jakarta.types.SimpleTypeSchema
com.fasterxml.jackson.module.jsonSchema.jakarta.types.ContainerTypeSchema
- Direct Known Subclasses:
ArraySchema
,ObjectSchema
This class encapsulates the functionality of container type
JsonSchema
Array and Object-
Field Summary
FieldsModifier and TypeFieldDescriptionThis provides an enumeration of all possible values that are valid for the instance property.This provides an enumeration of all possible values that are valid for the instance property.Fields inherited from class com.fasterxml.jackson.module.jsonSchema.jakarta.types.SimpleTypeSchema
defaultdefault, links, pathStart, title
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
_equals
(ContainerTypeSchema that) Deprecated.Since 2.7Attempt to return this JsonSchema as aContainerTypeSchema
boolean
getEnums()
getOneOf()
boolean
determine if this JsonSchema is anContainerTypeSchema
.void
void
Methods inherited from class com.fasterxml.jackson.module.jsonSchema.jakarta.types.SimpleTypeSchema
_equals, asSimpleTypeSchema, getDefault, getLinks, getPathStart, getTitle, isSimpleTypeSchema, setDefault, setLinks, setPathStart, setTitle
Methods inherited from class com.fasterxml.jackson.module.jsonSchema.jakarta.JsonSchema
_equals, arraysEqual, asAnySchema, asArraySchema, asBooleanSchema, asIntegerSchema, asNullSchema, asNumberSchema, asObjectSchema, asStringSchema, asUnionTypeSchema, asValueSchemaSchema, asValueTypeSchema, enrichWithBeanProperty, equals, get$ref, get$schema, getDescription, getDisallow, getExtends, getId, getReadonly, getRequired, getType, isAnySchema, isArraySchema, isBooleanSchema, isIntegerSchema, isNullSchema, isNumberSchema, isObjectSchema, isStringSchema, isUnionTypeSchema, isValueTypeSchema, minimalForFormat, set$ref, set$schema, setDescription, setDisallow, setExtends, setId, setReadonly, setRequired
-
Field Details
-
enums
This provides an enumeration of all possible values that are valid for the instance property. This MUST be an array, and each item in the array represents a possible value for the instance value. If this attribute is defined, the instance value MUST be one of the values in the array in order for the schema to be valid. Comparison of enum values uses the same algorithm as defined in "uniqueItems" (Section 5.15). -
oneOf
This provides an enumeration of all possible values that are valid for the instance property. This MUST be an array, and each item in the array represents a possible value for the instance value. If this attribute is defined, the instance value MUST be one of the values in the array in order for the schema to be valid. Comparison of enum values uses the same algorithm as defined in "uniqueItems" (Section 5.15).
-
-
Constructor Details
-
ContainerTypeSchema
public ContainerTypeSchema()
-
-
Method Details
-
asContainerSchema
Deprecated.Since 2.7- Overrides:
asContainerSchema
in classJsonSchema
-
asContainerTypeSchema
Description copied from class:JsonSchema
Attempt to return this JsonSchema as aContainerTypeSchema
- Overrides:
asContainerTypeSchema
in classJsonSchema
- Returns:
- this as an ContainerTypeSchema if possible, or null otherwise
- Since:
- 2.7
-
getEnums
-
isContainerTypeSchema
public boolean isContainerTypeSchema()Description copied from class:JsonSchema
determine if this JsonSchema is anContainerTypeSchema
.- Overrides:
isContainerTypeSchema
in classJsonSchema
- Returns:
- true if this JsonSchema is an ContainerTypeSchema, false otherwise
-
setEnums
-
getOneOf
-
setOneOf
-
equals
- Overrides:
equals
in classSimpleTypeSchema
-
_equals
-