public class CrestObjectSchema extends com.fasterxml.jackson.module.jsonSchema.types.ObjectSchema implements WithExampleSchema<Map<String,Object>>
ObjectSchema that includes the custom CREST JSON Schema attributes.com.fasterxml.jackson.module.jsonSchema.types.ObjectSchema.AdditionalProperties, com.fasterxml.jackson.module.jsonSchema.types.ObjectSchema.Dependency, com.fasterxml.jackson.module.jsonSchema.types.ObjectSchema.NoAdditionalProperties, com.fasterxml.jackson.module.jsonSchema.types.ObjectSchema.SchemaAdditionalProperties, com.fasterxml.jackson.module.jsonSchema.types.ObjectSchema.SchemaDependency, com.fasterxml.jackson.module.jsonSchema.types.ObjectSchema.SimpleDependency| Constructor and Description |
|---|
CrestObjectSchema() |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
getErrorOnWritePolicyFailure()
Get the error indicator for failed write policy.
|
Map<String,Object> |
getExample()
Gets
example JSON Schema field. |
Integer |
getPropertyOrder()
Get the property order number.
|
Boolean |
getReadonly()
Gets read-only property.
|
ReadPolicy |
getReadPolicy()
Get the read policy for the property.
|
Set<String> |
getRequiredFields()
Get required field names.
|
Boolean |
getReturnOnDemand()
Set the return-on-demand field.
|
WritePolicy |
getWritePolicy()
Get the write policy for the property.
|
void |
setErrorOnWritePolicyFailure(Boolean errorOnWritePolicyFailure)
Set the error indicator for failed write policy.
|
void |
setExample(String example)
Sets
example JSON Schema field. |
void |
setPropertyOrder(Integer order)
Set the property order number.
|
void |
setReadPolicy(ReadPolicy readPolicy)
Set the read policy for the property.
|
void |
setRequiredFields(Set<String> requiredFields)
Set required field names.
|
void |
setReturnOnDemand(Boolean returnOnDemand)
Get the return-on-demand field.
|
void |
setWritePolicy(WritePolicy policy)
Set the write policy for the property.
|
void |
validate(JsonValue object)
Validates
JsonSchema according to some set of validation rules. |
_equals, addSchemaDependency, addSimpleDependency, asObjectSchema, equals, getAdditionalProperties, getDependencies, getPatternProperties, getProperties, getType, isObjectSchema, putOptionalProperty, putOptionalProperty, putPatternProperty, putProperty, putProperty, rejectAdditionalProperties, setAdditionalProperties, setDependencies, setPatternProperties, setProperties_equals, asContainerSchema, asContainerTypeSchema, getEnums, getOneOf, isContainerTypeSchema, setEnums, setOneOf_equals, asSimpleTypeSchema, getDefault, getLinks, getPathStart, getTitle, isSimpleTypeSchema, setDefault, setLinks, setPathStart, setTitle_equals, arraysEqual, asAnySchema, asArraySchema, asBooleanSchema, asIntegerSchema, asNullSchema, asNumberSchema, asStringSchema, asUnionTypeSchema, asValueSchemaSchema, asValueTypeSchema, enrichWithBeanProperty, equals, get$ref, get$schema, getDescription, getDisallow, getExtends, getId, getRequired, isAnySchema, isArraySchema, isBooleanSchema, isIntegerSchema, isNullSchema, isNumberSchema, isStringSchema, isUnionTypeSchema, isValueTypeSchema, minimalForFormat, set$ref, set$schema, setDescription, setDisallow, setExtends, setId, setReadonly, setRequiredpublic WritePolicy getWritePolicy()
public void setWritePolicy(WritePolicy policy)
policy - The write policy.public ReadPolicy getReadPolicy()
public void setReadPolicy(ReadPolicy readPolicy)
readPolicy - The read policy.public Boolean getErrorOnWritePolicyFailure()
public void setErrorOnWritePolicyFailure(Boolean errorOnWritePolicyFailure)
errorOnWritePolicyFailure - Whether errors will be returned.public Boolean getReturnOnDemand()
true when a field is available, but must be explicitly requested, or false (default) when
always returned.public void setReturnOnDemand(Boolean returnOnDemand)
returnOnDemand - true when a field is available, but must be explicitly requested, or
false (default) when always returned.public Integer getPropertyOrder()
public void setPropertyOrder(Integer order)
order - The property order.public void validate(JsonValue object) throws javax.validation.ValidationException
JsonSchema according to some set of validation rules.object - JSON to validatejavax.validation.ValidationException - Indicates that JSON does not conform to a known JSON Schema format.public Boolean getReadonly()
JsonProperty annotation.getReadonly in class com.fasterxml.jackson.module.jsonSchema.JsonSchematrue if property is read-only, otherwise false or nullpublic Set<String> getRequiredFields()
nullpublic void setRequiredFields(Set<String> requiredFields)
requiredFields - Required field-names or nullpublic Map<String,Object> getExample()
WithExampleSchemaexample JSON Schema field.getExample in interface WithExampleSchema<Map<String,Object>>public void setExample(String example) throws IOException
WithExampleSchemaexample JSON Schema field.setExample in interface WithExampleSchema<Map<String,Object>>example - The example value.IOException - When the type of schema cannot be parsed from the String value.Copyright © 2025 Open Identity Platform Community. All rights reserved.