@Test public void create1() { FactoryOptions options = new FactoryOptions( singletonMap(ComponentsCallbacksKeysCaseValidator.CONFIG_KEY, "upper-camel-case")); List<ComponentsValidator> validators = validatorFactory.create(options); assertThat(validators).hasSize(7); assertThat(validators).hasOnlyElementsOfTypes( ComponentsHeadersValuesValidator.class, ComponentsParametersValuesValidator.class, ComponentsRequestBodiesValuesValidator.class, ComponentsResponsesValuesValidator.class, ComponentsSchemasValuesValidator.class, ComponentsSecuritySchemesValuesValidator.class, ComponentsCallbacksKeysCaseValidator.class ); }
@Override public List<ComponentsValidator> create(FactoryOptions options) { List<ComponentsValidator> validators = new ArrayList<>(); validators.add(new ComponentsHeadersValuesValidator(headerValidatorFactory.create(options))); validators.add(new ComponentsParametersValuesValidator(parameterValidatorFactory.create(options))); validators.add(new ComponentsRequestBodiesValuesValidator(requestBodyValidatorFactory.create(options))); validators.add(new ComponentsResponsesValuesValidator(responseValidatorFactory.create(options))); validators.add(new ComponentsSchemasValuesValidator(schemaValidatorFactory.create(options))); validators.add(new ComponentsSecuritySchemesValuesValidator(securitySchemeValidatorFactory.create(options))); addComponentsCallbacksKeysCaseValidator(validators, options); addComponentsExamplesKeysCaseValidator(validators, options); addComponentsHeadersKeysCaseValidator(validators, options); addComponentsLinksKeysCaseValidator(validators, options); addComponentsParametersKeysCaseValidator(validators, options); addComponentsRequestBodiesKeysCaseValidator(validators, options); addComponentsResponsesKeysCaseValidator(validators, options); addComponentsSchemasKeysCaseValidator(validators, options); addComponentsSecuritySchemesKeysCaseValidator(validators, options); return Collections.unmodifiableList(validators); }
DefaultComponentsValidatorFactory implements ComponentsValidatorFactory { @Override public List<ComponentsValidator> create(FactoryOptions options) { List<ComponentsValidator> validators = new ArrayList<>(); validators.add(new ComponentsHeadersValuesValidator(headerValidatorFactory.create(options))); validators.add(new ComponentsParametersValuesValidator(parameterValidatorFactory.create(options))); validators.add(new ComponentsRequestBodiesValuesValidator(requestBodyValidatorFactory.create(options))); validators.add(new ComponentsResponsesValuesValidator(responseValidatorFactory.create(options))); validators.add(new ComponentsSchemasValuesValidator(schemaValidatorFactory.create(options))); validators.add(new ComponentsSecuritySchemesValuesValidator(securitySchemeValidatorFactory.create(options))); addComponentsCallbacksKeysCaseValidator(validators, options); addComponentsExamplesKeysCaseValidator(validators, options); addComponentsHeadersKeysCaseValidator(validators, options); addComponentsLinksKeysCaseValidator(validators, options); addComponentsParametersKeysCaseValidator(validators, options); addComponentsRequestBodiesKeysCaseValidator(validators, options); addComponentsResponsesKeysCaseValidator(validators, options); addComponentsSchemasKeysCaseValidator(validators, options); addComponentsSecuritySchemesKeysCaseValidator(validators, options); return Collections.unmodifiableList(validators); } }
DefaultComponentsValidatorFactory implements ComponentsValidatorFactory { @Override public List<ComponentsValidator> create(FactoryOptions options) { List<ComponentsValidator> validators = new ArrayList<>(); validators.add(new ComponentsHeadersValuesValidator(headerValidatorFactory.create(options))); validators.add(new ComponentsParametersValuesValidator(parameterValidatorFactory.create(options))); validators.add(new ComponentsRequestBodiesValuesValidator(requestBodyValidatorFactory.create(options))); validators.add(new ComponentsResponsesValuesValidator(responseValidatorFactory.create(options))); validators.add(new ComponentsSchemasValuesValidator(schemaValidatorFactory.create(options))); validators.add(new ComponentsSecuritySchemesValuesValidator(securitySchemeValidatorFactory.create(options))); addComponentsCallbacksKeysCaseValidator(validators, options); addComponentsExamplesKeysCaseValidator(validators, options); addComponentsHeadersKeysCaseValidator(validators, options); addComponentsLinksKeysCaseValidator(validators, options); addComponentsParametersKeysCaseValidator(validators, options); addComponentsRequestBodiesKeysCaseValidator(validators, options); addComponentsResponsesKeysCaseValidator(validators, options); addComponentsSchemasKeysCaseValidator(validators, options); addComponentsSecuritySchemesKeysCaseValidator(validators, options); return Collections.unmodifiableList(validators); } DefaultComponentsValidatorFactory(
      HeaderValidatorFactory headerValidatorFactory,
      ParameterValidatorFactory parameterValidatorFactory,
      RequestBodyValidatorFactory requestBodyValidatorFactory,
      ResponseValidatorFactory responseValidatorFactory,
      SchemaValidatorFactory schemaValidatorFactory,
      SecuritySchemeValidatorFactory securitySchemeValidatorFactory); }
DefaultComponentsValidatorFactory implements ComponentsValidatorFactory { @Override public List<ComponentsValidator> create(FactoryOptions options) { List<ComponentsValidator> validators = new ArrayList<>(); validators.add(new ComponentsHeadersValuesValidator(headerValidatorFactory.create(options))); validators.add(new ComponentsParametersValuesValidator(parameterValidatorFactory.create(options))); validators.add(new ComponentsRequestBodiesValuesValidator(requestBodyValidatorFactory.create(options))); validators.add(new ComponentsResponsesValuesValidator(responseValidatorFactory.create(options))); validators.add(new ComponentsSchemasValuesValidator(schemaValidatorFactory.create(options))); validators.add(new ComponentsSecuritySchemesValuesValidator(securitySchemeValidatorFactory.create(options))); addComponentsCallbacksKeysCaseValidator(validators, options); addComponentsExamplesKeysCaseValidator(validators, options); addComponentsHeadersKeysCaseValidator(validators, options); addComponentsLinksKeysCaseValidator(validators, options); addComponentsParametersKeysCaseValidator(validators, options); addComponentsRequestBodiesKeysCaseValidator(validators, options); addComponentsResponsesKeysCaseValidator(validators, options); addComponentsSchemasKeysCaseValidator(validators, options); addComponentsSecuritySchemesKeysCaseValidator(validators, options); return Collections.unmodifiableList(validators); } DefaultComponentsValidatorFactory(
      HeaderValidatorFactory headerValidatorFactory,
      ParameterValidatorFactory parameterValidatorFactory,
      RequestBodyValidatorFactory requestBodyValidatorFactory,
      ResponseValidatorFactory responseValidatorFactory,
      SchemaValidatorFactory schemaValidatorFactory,
      SecuritySchemeValidatorFactory securitySchemeValidatorFactory); @Override List<ComponentsValidator> create(FactoryOptions options); }
DefaultComponentsValidatorFactory implements ComponentsValidatorFactory { @Override public List<ComponentsValidator> create(FactoryOptions options) { List<ComponentsValidator> validators = new ArrayList<>(); validators.add(new ComponentsHeadersValuesValidator(headerValidatorFactory.create(options))); validators.add(new ComponentsParametersValuesValidator(parameterValidatorFactory.create(options))); validators.add(new ComponentsRequestBodiesValuesValidator(requestBodyValidatorFactory.create(options))); validators.add(new ComponentsResponsesValuesValidator(responseValidatorFactory.create(options))); validators.add(new ComponentsSchemasValuesValidator(schemaValidatorFactory.create(options))); validators.add(new ComponentsSecuritySchemesValuesValidator(securitySchemeValidatorFactory.create(options))); addComponentsCallbacksKeysCaseValidator(validators, options); addComponentsExamplesKeysCaseValidator(validators, options); addComponentsHeadersKeysCaseValidator(validators, options); addComponentsLinksKeysCaseValidator(validators, options); addComponentsParametersKeysCaseValidator(validators, options); addComponentsRequestBodiesKeysCaseValidator(validators, options); addComponentsResponsesKeysCaseValidator(validators, options); addComponentsSchemasKeysCaseValidator(validators, options); addComponentsSecuritySchemesKeysCaseValidator(validators, options); return Collections.unmodifiableList(validators); } DefaultComponentsValidatorFactory(
      HeaderValidatorFactory headerValidatorFactory,
      ParameterValidatorFactory parameterValidatorFactory,
      RequestBodyValidatorFactory requestBodyValidatorFactory,
      ResponseValidatorFactory responseValidatorFactory,
      SchemaValidatorFactory schemaValidatorFactory,
      SecuritySchemeValidatorFactory securitySchemeValidatorFactory); @Override List<ComponentsValidator> create(FactoryOptions options);  }