@Test public void create1() { FactoryOptions options = new FactoryOptions(singletonMap(OpenApiSecuritySizeEqValidator.CONFIG_KEY, "0")); List<OpenApiValidator> validators = validatorFactory.create(options); assertThat(validators).hasSize(6); assertThat(validators).hasOnlyElementsOfTypes( OpenApiTagsValidator.class, OpenApiInfoValidator.class, OpenApiPathsValidator.class, OpenApiComponentsValidator.class, OpenApiServersValidator.class, OpenApiSecuritySizeEqValidator.class ); }
@Override public List<OpenApiValidator> create(FactoryOptions options) { List<OpenApiValidator> validators = new ArrayList<>(); validators.add(new OpenApiTagsValidator(tagValidatorFactory.create(options))); validators.add(new OpenApiInfoValidator(infoValidatorFactory.create(options))); validators.add(new OpenApiPathsValidator(pathsValidatorFactory.create(options))); validators.add(new OpenApiComponentsValidator(componentsValidatorFactory.create(options))); validators.add(new OpenApiServersValidator(serverValidatorFactory.create(options))); addOpenApiSecuritySizeValidator(validators, options); addOpenApiTagsSizeValidator(validators, options); addOpenApiVersionGteValidator(validators, options); return Collections.unmodifiableList(validators); }
DefaultOpenApiValidatorFactory implements OpenApiValidatorFactory { @Override public List<OpenApiValidator> create(FactoryOptions options) { List<OpenApiValidator> validators = new ArrayList<>(); validators.add(new OpenApiTagsValidator(tagValidatorFactory.create(options))); validators.add(new OpenApiInfoValidator(infoValidatorFactory.create(options))); validators.add(new OpenApiPathsValidator(pathsValidatorFactory.create(options))); validators.add(new OpenApiComponentsValidator(componentsValidatorFactory.create(options))); validators.add(new OpenApiServersValidator(serverValidatorFactory.create(options))); addOpenApiSecuritySizeValidator(validators, options); addOpenApiTagsSizeValidator(validators, options); addOpenApiVersionGteValidator(validators, options); return Collections.unmodifiableList(validators); } }
DefaultOpenApiValidatorFactory implements OpenApiValidatorFactory { @Override public List<OpenApiValidator> create(FactoryOptions options) { List<OpenApiValidator> validators = new ArrayList<>(); validators.add(new OpenApiTagsValidator(tagValidatorFactory.create(options))); validators.add(new OpenApiInfoValidator(infoValidatorFactory.create(options))); validators.add(new OpenApiPathsValidator(pathsValidatorFactory.create(options))); validators.add(new OpenApiComponentsValidator(componentsValidatorFactory.create(options))); validators.add(new OpenApiServersValidator(serverValidatorFactory.create(options))); addOpenApiSecuritySizeValidator(validators, options); addOpenApiTagsSizeValidator(validators, options); addOpenApiVersionGteValidator(validators, options); return Collections.unmodifiableList(validators); } DefaultOpenApiValidatorFactory(
      TagValidatorFactory tagValidatorFactory,
      InfoValidatorFactory infoValidatorFactory,
      PathsValidatorFactory pathsValidatorFactory,
      ComponentsValidatorFactory componentsValidatorFactory,
      ServerValidatorFactory serverValidatorFactory); }
DefaultOpenApiValidatorFactory implements OpenApiValidatorFactory { @Override public List<OpenApiValidator> create(FactoryOptions options) { List<OpenApiValidator> validators = new ArrayList<>(); validators.add(new OpenApiTagsValidator(tagValidatorFactory.create(options))); validators.add(new OpenApiInfoValidator(infoValidatorFactory.create(options))); validators.add(new OpenApiPathsValidator(pathsValidatorFactory.create(options))); validators.add(new OpenApiComponentsValidator(componentsValidatorFactory.create(options))); validators.add(new OpenApiServersValidator(serverValidatorFactory.create(options))); addOpenApiSecuritySizeValidator(validators, options); addOpenApiTagsSizeValidator(validators, options); addOpenApiVersionGteValidator(validators, options); return Collections.unmodifiableList(validators); } DefaultOpenApiValidatorFactory(
      TagValidatorFactory tagValidatorFactory,
      InfoValidatorFactory infoValidatorFactory,
      PathsValidatorFactory pathsValidatorFactory,
      ComponentsValidatorFactory componentsValidatorFactory,
      ServerValidatorFactory serverValidatorFactory); @Override List<OpenApiValidator> create(FactoryOptions options); }
DefaultOpenApiValidatorFactory implements OpenApiValidatorFactory { @Override public List<OpenApiValidator> create(FactoryOptions options) { List<OpenApiValidator> validators = new ArrayList<>(); validators.add(new OpenApiTagsValidator(tagValidatorFactory.create(options))); validators.add(new OpenApiInfoValidator(infoValidatorFactory.create(options))); validators.add(new OpenApiPathsValidator(pathsValidatorFactory.create(options))); validators.add(new OpenApiComponentsValidator(componentsValidatorFactory.create(options))); validators.add(new OpenApiServersValidator(serverValidatorFactory.create(options))); addOpenApiSecuritySizeValidator(validators, options); addOpenApiTagsSizeValidator(validators, options); addOpenApiVersionGteValidator(validators, options); return Collections.unmodifiableList(validators); } DefaultOpenApiValidatorFactory(
      TagValidatorFactory tagValidatorFactory,
      InfoValidatorFactory infoValidatorFactory,
      PathsValidatorFactory pathsValidatorFactory,
      ComponentsValidatorFactory componentsValidatorFactory,
      ServerValidatorFactory serverValidatorFactory); @Override List<OpenApiValidator> create(FactoryOptions options);  }