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 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 aContainerTypeSchemabooleangetEnums()getOneOf()booleandetermine if this JsonSchema is anContainerTypeSchema.voidvoidMethods inherited from class SimpleTypeSchema
_equals, asSimpleTypeSchema, getDefault, getLinks, getPathStart, getTitle, isSimpleTypeSchema, setDefault, setLinks, setPathStart, setTitleMethods inherited from class 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:
asContainerSchemain classJsonSchema
-
asContainerTypeSchema
Description copied from class:JsonSchemaAttempt to return this JsonSchema as aContainerTypeSchema- Overrides:
asContainerTypeSchemain classJsonSchema- Returns:
- this as an ContainerTypeSchema if possible, or null otherwise
- Since:
- 2.7
-
getEnums
-
isContainerTypeSchema
public boolean isContainerTypeSchema()Description copied from class:JsonSchemadetermine if this JsonSchema is anContainerTypeSchema.- Overrides:
isContainerTypeSchemain classJsonSchema- Returns:
- true if this JsonSchema is an ContainerTypeSchema, false otherwise
-
setEnums
-
getOneOf
-
setOneOf
-
equals
- Overrides:
equalsin classSimpleTypeSchema
-
_equals
-