@Test public void create4() { FactoryOptions options = new FactoryOptions( singletonMap(ParameterNameQueryCaseValidator.CONFIG_KEY, "upper-camel-case")); List<ParameterValidator> validators = validatorFactory.create(options); assertThat(validators).hasSize(3); assertThat(validators).hasOnlyElementsOfTypes( ParameterSchemaValidator.class, ParameterContentValidator.class, ParameterNameQueryCaseValidator.class ); }
@Override public List<ParameterValidator> create(FactoryOptions options) { List<ParameterValidator> validators = new ArrayList<>(); validators.add(new ParameterSchemaValidator(schemaValidatorFactory.create(options))); validators.add(new ParameterContentValidator(mediaTypeValidatorFactory.create(options))); addParameterNameCookieCaseValidator(validators, options); addParameterNameHeaderCaseValidator(validators, options); addParameterNamePathCaseValidator(validators, options); addParameterNameQueryCaseValidator(validators, options); addParameterDescriptionRequiredValidator(validators, options); return Collections.unmodifiableList(validators); }
DefaultParameterValidatorFactory implements ParameterValidatorFactory { @Override public List<ParameterValidator> create(FactoryOptions options) { List<ParameterValidator> validators = new ArrayList<>(); validators.add(new ParameterSchemaValidator(schemaValidatorFactory.create(options))); validators.add(new ParameterContentValidator(mediaTypeValidatorFactory.create(options))); addParameterNameCookieCaseValidator(validators, options); addParameterNameHeaderCaseValidator(validators, options); addParameterNamePathCaseValidator(validators, options); addParameterNameQueryCaseValidator(validators, options); addParameterDescriptionRequiredValidator(validators, options); return Collections.unmodifiableList(validators); } }
DefaultParameterValidatorFactory implements ParameterValidatorFactory { @Override public List<ParameterValidator> create(FactoryOptions options) { List<ParameterValidator> validators = new ArrayList<>(); validators.add(new ParameterSchemaValidator(schemaValidatorFactory.create(options))); validators.add(new ParameterContentValidator(mediaTypeValidatorFactory.create(options))); addParameterNameCookieCaseValidator(validators, options); addParameterNameHeaderCaseValidator(validators, options); addParameterNamePathCaseValidator(validators, options); addParameterNameQueryCaseValidator(validators, options); addParameterDescriptionRequiredValidator(validators, options); return Collections.unmodifiableList(validators); } DefaultParameterValidatorFactory(
      SchemaValidatorFactory schemaValidatorFactory,
      MediaTypeValidatorFactory mediaTypeValidatorFactory); }
DefaultParameterValidatorFactory implements ParameterValidatorFactory { @Override public List<ParameterValidator> create(FactoryOptions options) { List<ParameterValidator> validators = new ArrayList<>(); validators.add(new ParameterSchemaValidator(schemaValidatorFactory.create(options))); validators.add(new ParameterContentValidator(mediaTypeValidatorFactory.create(options))); addParameterNameCookieCaseValidator(validators, options); addParameterNameHeaderCaseValidator(validators, options); addParameterNamePathCaseValidator(validators, options); addParameterNameQueryCaseValidator(validators, options); addParameterDescriptionRequiredValidator(validators, options); return Collections.unmodifiableList(validators); } DefaultParameterValidatorFactory(
      SchemaValidatorFactory schemaValidatorFactory,
      MediaTypeValidatorFactory mediaTypeValidatorFactory); @Override List<ParameterValidator> create(FactoryOptions options); }
DefaultParameterValidatorFactory implements ParameterValidatorFactory { @Override public List<ParameterValidator> create(FactoryOptions options) { List<ParameterValidator> validators = new ArrayList<>(); validators.add(new ParameterSchemaValidator(schemaValidatorFactory.create(options))); validators.add(new ParameterContentValidator(mediaTypeValidatorFactory.create(options))); addParameterNameCookieCaseValidator(validators, options); addParameterNameHeaderCaseValidator(validators, options); addParameterNamePathCaseValidator(validators, options); addParameterNameQueryCaseValidator(validators, options); addParameterDescriptionRequiredValidator(validators, options); return Collections.unmodifiableList(validators); } DefaultParameterValidatorFactory(
      SchemaValidatorFactory schemaValidatorFactory,
      MediaTypeValidatorFactory mediaTypeValidatorFactory); @Override List<ParameterValidator> create(FactoryOptions options);  }