@Test public void create() { FactoryOptions options = new FactoryOptions(emptyMap()); List<OperationValidator> validators = validatorFactory.create(options); assertThat(validators).hasSize(3); assertThat(validators).hasOnlyElementsOfTypes( OperationParametersValidator.class, OperationResponsesValidator.class, OperationRequestBodyValidator.class ); }
@Override public List<OperationValidator> create(FactoryOptions options) { List<OperationValidator> validators = new ArrayList<>(); validators.add(new OperationParametersValidator(parameterValidatorFactory.create(options))); validators.add(new OperationResponsesValidator(responsesValidatorFactory.create(options))); validators.add(new OperationRequestBodyValidator(requestBodyValidatorFactory.create(options))); addOperationSummaryRequiredValidator(validators, options); addOperationIdCaseValidator(validators, options); addOperationTagsSizeEqValidator(validators, options); addOperationServersSizeEqValidator(validators, options); addOperationTagsReferenceValidator(validators, options); return Collections.unmodifiableList(validators); }
DefaultOperationValidatorFactory implements OperationValidatorFactory { @Override public List<OperationValidator> create(FactoryOptions options) { List<OperationValidator> validators = new ArrayList<>(); validators.add(new OperationParametersValidator(parameterValidatorFactory.create(options))); validators.add(new OperationResponsesValidator(responsesValidatorFactory.create(options))); validators.add(new OperationRequestBodyValidator(requestBodyValidatorFactory.create(options))); addOperationSummaryRequiredValidator(validators, options); addOperationIdCaseValidator(validators, options); addOperationTagsSizeEqValidator(validators, options); addOperationServersSizeEqValidator(validators, options); addOperationTagsReferenceValidator(validators, options); return Collections.unmodifiableList(validators); } }
DefaultOperationValidatorFactory implements OperationValidatorFactory { @Override public List<OperationValidator> create(FactoryOptions options) { List<OperationValidator> validators = new ArrayList<>(); validators.add(new OperationParametersValidator(parameterValidatorFactory.create(options))); validators.add(new OperationResponsesValidator(responsesValidatorFactory.create(options))); validators.add(new OperationRequestBodyValidator(requestBodyValidatorFactory.create(options))); addOperationSummaryRequiredValidator(validators, options); addOperationIdCaseValidator(validators, options); addOperationTagsSizeEqValidator(validators, options); addOperationServersSizeEqValidator(validators, options); addOperationTagsReferenceValidator(validators, options); return Collections.unmodifiableList(validators); } DefaultOperationValidatorFactory(
      ParameterValidatorFactory parameterValidatorFactory,
      ResponsesValidatorFactory responsesValidatorFactory,
      RequestBodyValidatorFactory requestBodyValidatorFactory); }
DefaultOperationValidatorFactory implements OperationValidatorFactory { @Override public List<OperationValidator> create(FactoryOptions options) { List<OperationValidator> validators = new ArrayList<>(); validators.add(new OperationParametersValidator(parameterValidatorFactory.create(options))); validators.add(new OperationResponsesValidator(responsesValidatorFactory.create(options))); validators.add(new OperationRequestBodyValidator(requestBodyValidatorFactory.create(options))); addOperationSummaryRequiredValidator(validators, options); addOperationIdCaseValidator(validators, options); addOperationTagsSizeEqValidator(validators, options); addOperationServersSizeEqValidator(validators, options); addOperationTagsReferenceValidator(validators, options); return Collections.unmodifiableList(validators); } DefaultOperationValidatorFactory(
      ParameterValidatorFactory parameterValidatorFactory,
      ResponsesValidatorFactory responsesValidatorFactory,
      RequestBodyValidatorFactory requestBodyValidatorFactory); @Override List<OperationValidator> create(FactoryOptions options); }
DefaultOperationValidatorFactory implements OperationValidatorFactory { @Override public List<OperationValidator> create(FactoryOptions options) { List<OperationValidator> validators = new ArrayList<>(); validators.add(new OperationParametersValidator(parameterValidatorFactory.create(options))); validators.add(new OperationResponsesValidator(responsesValidatorFactory.create(options))); validators.add(new OperationRequestBodyValidator(requestBodyValidatorFactory.create(options))); addOperationSummaryRequiredValidator(validators, options); addOperationIdCaseValidator(validators, options); addOperationTagsSizeEqValidator(validators, options); addOperationServersSizeEqValidator(validators, options); addOperationTagsReferenceValidator(validators, options); return Collections.unmodifiableList(validators); } DefaultOperationValidatorFactory(
      ParameterValidatorFactory parameterValidatorFactory,
      ResponsesValidatorFactory responsesValidatorFactory,
      RequestBodyValidatorFactory requestBodyValidatorFactory); @Override List<OperationValidator> create(FactoryOptions options);  }