Class JsonSchemaFilter

java.lang.Object
org.citrusframework.validation.json.schema.JsonSchemaFilter

public class JsonSchemaFilter extends Object
This class is responsible for filtering SimpleJsonSchemas based on a JsonMessageValidationContext.
  • 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 the jsonMessageValidationContext and returns a list of the relevant underlying SimpleJsonSchemas for the validation.
      Parameters:
      schemaRepositories - The repositories to be filtered
      jsonMessageValidationContext - The context for the json message validation
      referenceResolver - holding bean references for lookup
      Returns:
      a list of json schemas relevant for the validation based on the configuration