private List compareValidators()

in oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultSchemaDiffValidatorFactory.java [87:134]


  private List<SchemaCompareValidator> compareValidators() {

    List<SchemaCompareValidator> compareValidators = new ArrayList<>();

    // in common conntext
    compareValidators.add(new SchemaReadOnlyChangeValidator());
    compareValidators.add(new SchemaWriteOnlyChangeValidator());
    compareValidators.add(new SchemaXmlChangeValidator());
    compareValidators.add(new SchemaDiscriminatorChangeValidator());

    // for request context
    compareValidators.add(new SchemaTypeFormatChangeInRequestValidator());
    compareValidators.add(new SchemaMaximumChangeInRequestValidator());
    compareValidators.add(new SchemaExclusiveMinimumChangeInRequestValidator());
    compareValidators.add(new SchemaExclusiveMaximumChangeInRequestValidator());
    compareValidators.add(new SchemaMultipleOfChangeInRequestValidator());
    compareValidators.add(new SchemaMaxItemsChangeInRequestValidator());
    compareValidators.add(new SchemaMaxLengthChangeInRequestValidator());
    compareValidators.add(new SchemaMaxPropertiesChangeInRequestValidator());
    compareValidators.add(new SchemaMinimumChangeInRequestValidator());
    compareValidators.add(new SchemaMinItemsChangeInRequestValidator());
    compareValidators.add(new SchemaMinLengthChangeInRequestValidator());
    compareValidators.add(new SchemaMinPropertiesChangeInRequestValidator());
    compareValidators.add(new SchemaUniqueItemsChangeInRequestValidator());
    compareValidators.add(new SchemaRequiredChangeInRequestValidator());
    compareValidators.add(new SchemaEnumChangeInRequestValidator());
    compareValidators.add(new SchemaNullableChangeInRequestValidator());

    // for response context
    compareValidators.add(new SchemaTypeFormatChangeInResponseValidator());
    compareValidators.add(new SchemaMaximumChangeInResponseValidator());
    compareValidators.add(new SchemaExclusiveMinimumChangeInResponseValidator());
    compareValidators.add(new SchemaExclusiveMaximumChangeInResponseValidator());
    compareValidators.add(new SchemaMultipleOfChangeInResponseValidator());
    compareValidators.add(new SchemaMaxItemsChangeInResponseValidator());
    compareValidators.add(new SchemaMaxLengthChangeInResponseValidator());
    compareValidators.add(new SchemaMaxPropertiesChangeInResponseValidator());
    compareValidators.add(new SchemaMinimumChangeInResponseValidator());
    compareValidators.add(new SchemaMinItemsChangeInResponseValidator());
    compareValidators.add(new SchemaMinLengthChangeInResponseValidator());
    compareValidators.add(new SchemaMinPropertiesChangeInResponseValidator());
    compareValidators.add(new SchemaUniqueItemsChangeInResponseValidator());
    compareValidators.add(new SchemaRequiredChangeInResponseValidator());
    compareValidators.add(new SchemaEnumChangeInResponseValidator());
    compareValidators.add(new SchemaNullableChangeInResponseValidator());

    return Collections.unmodifiableList(compareValidators);
  }