Class SchemaRefInjectionTransformer
java.lang.Object
com.atlassian.oai.validator.schema.transform.SchemaTransformer
com.atlassian.oai.validator.schema.transform.SchemaRefInjectionTransformer
Simple transformer that injects our custom metaschema URI into the `$schema` field to enable use of the custom validation library.
-
Field Summary
Fields inherited from class com.atlassian.oai.validator.schema.transform.SchemaTransformer
ADDITIONAL_PROPERTIES_FIELD, ALLOF_FIELD, ANYOF_FIELD, COMPONENTS_FIELD, DISCRIMINATOR_FIELD, ONEOF_FIELD, PROPERTIES_FIELD, READONLY_FIELD, REQUIRED_FIELD, SCHEMA_REF_FIELD, SCHEMAS_FIELD, TYPE_FIELD, WRITEONLY_FIELD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(com.fasterxml.jackson.databind.JsonNode schemaObject, SchemaTransformationContext context) Apply the schema transformation to the given node.Methods inherited from class com.atlassian.oai.validator.schema.transform.SchemaTransformer
allOf, anyOf, disableAdditionalProperties, getRequiredFieldNames, hasAdditionalFieldSet, hasAllOfField, hasDiscriminatorField, hasPropertiesField, hasRequiredFields, isArrayDefinition, isObjectDefinition, isReadOnly, isWriteOnly, itemsDefinition, oneOf, properties, property, schemaComponents, setRequiredFieldNames, setSchemaRef
-
Constructor Details
-
SchemaRefInjectionTransformer
public SchemaRefInjectionTransformer()
-
-
Method Details
-
getInstance
-
apply
public void apply(com.fasterxml.jackson.databind.JsonNode schemaObject, SchemaTransformationContext context) Description copied from class:SchemaTransformerApply the schema transformation to the given node.Note: Callers should assume that this will mutate the given schema object.
- Specified by:
applyin classSchemaTransformer
-