Class JsonSchemaFilter
java.lang.Object
org.citrusframework.validation.json.schema.JsonSchemaFilter
This class is responsible for filtering
SimpleJsonSchemas based on a JsonMessageValidationContext.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfilter(List<JsonSchemaRepository> schemaRepositories, JsonMessageValidationContext jsonMessageValidationContext, ReferenceResolver referenceResolver) Filters the all schema repositories based on the configuration in thejsonMessageValidationContextand returns a list of the relevant underlyingSimpleJsonSchemas for the validation.
-
Constructor Details
-
JsonSchemaFilter
public JsonSchemaFilter()
-
-
Method Details
-
filter
public List<SimpleJsonSchema> filter(List<JsonSchemaRepository> schemaRepositories, JsonMessageValidationContext jsonMessageValidationContext, ReferenceResolver referenceResolver) Filters the all schema repositories based on the configuration in thejsonMessageValidationContextand returns a list of the relevant underlyingSimpleJsonSchemas for the validation.- Parameters:
schemaRepositories- The repositories to be filteredjsonMessageValidationContext- The context for the json message validationreferenceResolver- holding bean references for lookup- Returns:
- a list of json schemas relevant for the validation based on the configuration
-