You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by ni...@apache.org on 2019/11/07 12:20:58 UTC

[servicecomb-toolkit] branch master updated (f5d63e2 -> a82dd34)

This is an automated email from the ASF dual-hosted git repository.

ningjiang pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/servicecomb-toolkit.git.


    from f5d63e2  Merge pull request #37 from kakulisen/springcloud
     new 1a73501  SCB-1548 import oas-validator
     new c023d3b  SCB-1548 fix license header issue and remove unnecessary ci files
     new 973682d  SCB-1553 Integrate oas-validator compliance check to cli Sub task: since oas-validator doesn't distribute itself standalone so remove distribution dir and LICENSE files
     new 6c89bc2  SCB-1553 Integrate oas-validator compliance check to cli Sub task: connect oas-validator pom.xml with toolkit pom.xml, so it's included in the CI.
     new 5fc4a87  SCB-1553 Integrate oas-validator compliance check to cli update LICENSE files
     new afe8cea  SCB-1553 Integrate oas-validator compliance check to cli add compliance validator factories
     new 2646643  SCB-1553 Integrate oas-validator compliance check to cli refactor parse checker code, remove duplication
     new b5120d3  SCB-1553 Integrate oas-validator compliance check to cli Translate chinese prompt message to english
     new 318f318  SCB-1553 Integrate oas-validator compliance check to cli Add unit test for validator factories
     new c09b33f  SCB-1553 Integrate oas-validator compliance check to cli Add compliance check capability to cli
     new deb8253  SCB-1553 Integrate oas-validator compliance check to cli Add oas-validator to coverage test
     new 412deab  Change chmod 755 to 644 on plain test files
     new 5d64553  SCB-1553 Integrate oas-validator compliance check to cli Add oas-validator style check usage to README
     new fd90d8d  SCB-1553 Integrate oas-validator compliance check to cli Fix license header missing issue
     new 3f107a7  SCB-1553 Integrate oas-validator compliance check to cli Fix too many logs cause travis ci broken issue.
     new 0927cd1  SCB-1553 Integrate oas-validator compliance check to cli Fix syntax check logical bug.
     new e26fac5  SCB-1553 Integrate oas-validator compliance check to cli Increase test coverage.
     new fcd97ab  SCB-1553 Integrate oas-validator compliance check to cli Add abbr for checkstyle subcommand: cs
     new 20709fd  SCB-1553 Integrate oas-validator compliance check to cli Fix the license issue
     new f33b5e5  SCB-1555 Integrate oas-validator compability check to cli Add factories for compatibility check validators
     new 653b4b2  SCB-1555 Integrate oas-validator compability check to cli Add subcommands checkcompatibility and cs to cli
     new b979aa6  SCB-1555 Integrate oas-validator compability check to cli Translate compatibility error message to english
     new 24236c6  SCB-1555 Integrate oas-validator compability check to cli Update readme
     new 1109b7e  remove stdout in test
     new b3e2995  SCB-1555 Integrate oas-validator compability check to cli Remove useless ExampleDiffValidator
     new a82dd34  fix unit test

The 26 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 LICENSE                                            |   0
 README-ZH.md                                       |  23 +
 README.md                                          |  30 +-
 cli/pom.xml                                        |  10 +
 .../toolkit/cli/CheckCompatibility.java            |  26 +
 .../toolkit/cli/CheckCompatibilityAbbr.java        |  27 +
 .../toolkit/cli/CheckCompatibilityBase.java        | 129 +++++
 .../apache/servicecomb/toolkit/cli/CheckStyle.java |  26 +
 .../servicecomb/toolkit/cli/CheckStyleAbbr.java    |  26 +
 .../servicecomb/toolkit/cli/CheckStyleBase.java    | 112 ++++
 .../servicecomb/toolkit/cli/ToolkitMain.java       |   7 +-
 .../apache/servicecomb/toolkit/cli/CliTest.java    |  40 ++
 cli/src/test/resources/oas/compatibility-left.yaml |  52 ++
 .../test/resources/oas/compatibility-right.yaml    |  54 ++
 cli/src/test/resources/oas/style.yaml              |  48 ++
 codegen/pom.xml                                    |   0
 common/pom.xml                                     |   0
 .../projects/demo-with-correct-pom/pom.xml         |   0
 .../projects/demo-with-invaild-pom/pom.xml         |   0
 contractgen/pom.xml                                |   0
 contractgen/src/test/projects/demo/pom.xml         |   0
 core/pom.xml                                       |   0
 docgen/pom.xml                                     |   0
 integration-tests/coverage-aggregate/pom.xml       |  34 +-
 integration-tests/pom.xml                          |   0
 oas-validator/.gitignore                           |  32 ++
 oas-validator/README.md                            | 447 ++++++++++++++++
 oas-validator/doc/INSTALLATION.MD                  |  36 ++
 oas-validator/doc/USAGE.MD                         |  62 +++
 oas-validator/doc/compatibility-1.png              | Bin 0 -> 85796 bytes
 oas-validator/doc/compatibility-2.png              | Bin 0 -> 265492 bytes
 oas-validator/doc/compliance-1.png                 | Bin 0 -> 71215 bytes
 oas-validator/doc/compliance-2.png                 | Bin 0 -> 329424 bytes
 .../oas-validator-compatibility-spring}/pom.xml    |  52 +-
 .../EncodingDiffValidatorsConfiguration.java       |  58 ++
 .../config/HeaderDiffValidatorsConfiguration.java  |  39 ++
 .../MediaTypeDiffValidatorsConfiguration.java      |  51 ++
 .../OperationDiffValidatorsConfiguration.java      |  39 ++
 .../ParameterDiffValidatorsConfiguration.java      |  59 +++
 .../PathItemDiffValidatorsConfiguration.java       |  33 ++
 .../RequestBodyDiffValidatorsConfiguration.java    |  33 ++
 .../ResponseDiffValidatorsConfiguration.java       |  33 ++
 .../config/SchemaDiffValidatorsConfiguration.java  | 212 ++++++++
 .../src/main/resources/META-INF/spring.factories   |  27 +
 .../config/ValidatorConfigurationsTest.java        |  64 +++
 .../src/test/resources/logback-test.xml            |  12 +-
 .../oas-validator-compatibility}/pom.xml           |  57 +-
 .../compatibility/CompatibilityCheckParser.java    |  44 ++
 .../DefaultCallbackDiffValidatorFactory.java       |  35 ++
 .../DefaultComponentsDiffValidatorFactory.java     |  87 +++
 .../DefaultEncodingDiffValidatorFactory.java       |  64 +++
 .../factory/DefaultHeaderDiffValidatorFactory.java |  56 ++
 .../factory/DefaultInfoDiffValidatorFactory.java   |  35 ++
 .../factory/DefaultLinkDiffValidatorFactory.java   |  35 ++
 .../DefaultMediaTypeDiffValidatorFactory.java      |  67 +++
 .../DefaultOasSpecDiffValidatorFactory.java        |  40 ++
 .../DefaultOpenApiDiffValidatorFactory.java        |  80 +++
 .../DefaultOperationDiffValidatorFactory.java      |  70 +++
 .../DefaultParameterDiffValidatorFactory.java      |  72 +++
 .../DefaultPathItemDiffValidatorFactory.java       |  61 +++
 .../factory/DefaultPathsDiffValidatorFactory.java  |  51 ++
 .../DefaultRequestBodyDiffValidatorFactory.java    |  54 ++
 .../DefaultResponseDiffValidatorFactory.java       |  61 +++
 .../DefaultResponsesDiffValidatorFactory.java      |  52 ++
 .../factory/DefaultSchemaDiffValidatorFactory.java | 135 +++++
 .../DefaultSecuritySchemeDiffValidatorFactory.java |  35 ++
 .../factory/DefaultServerDiffValidatorFactory.java |  34 ++
 .../factory/DefaultTagDiffValidatorFactory.java    |  34 ++
 .../EncodingAddNotAllowedDiffValidator.java        |  38 ++
 ...EncodingAllowedReservedChangeDiffValidator.java |  59 +++
 .../EncodingContentTypeNotSameDiffValidator.java   |  51 ++
 .../EncodingDelNotAllowedDiffValidator.java        |  38 ++
 .../EncodingExplodeNotSameDiffValidator.java       |  51 ++
 .../EncodingStyleNotSameDiffValidator.java         |  52 ++
 ...derAddInRequestBodyNotAllowedDiffValidator.java |  45 ++
 ...HeaderDelInResponseNotAllowedDiffValidator.java |  45 ++
 ...aTypeAddInParameterNotAllowedDiffValidator.java |  46 ++
 ...aTypeDelInParameterNotAllowedDiffValidator.java |  46 ++
 ...ypeDelInRequestBodyNotAllowedDiffValidator.java |  46 ++
 ...iaTypeDelInResponseNotAllowedDiffValidator.java |  46 ++
 .../OperationDeleteNotAllowedDiffValidator.java    |  38 ++
 .../operation/OperationIdNotSameDiffValidator.java |  46 ++
 .../parameter/ParameterAddDiffValidator.java       |  57 ++
 ...arameterAllowEmptyValueChangeDiffValidator.java |  70 +++
 .../ParameterAllowReservedChangeDiffValidator.java |  69 +++
 .../ParameterExplodeNotSameDiffValidator.java      |  58 ++
 .../ParameterRequiredChangeDiffValidator.java      |  69 +++
 .../ParameterStyleNotSameDiffValidator.java        |  58 ++
 .../PathItemDeleteNotAllowedDiffValidator.java     |  39 ++
 .../RequestBodyRequiredChangeDiffValidator.java    |  62 +++
 .../ResponseAddNotAllowedDiffValidator.java        |  41 ++
 .../schema/SchemaDiscriminatorChangeValidator.java |  52 ++
 .../schema/SchemaPropertyChangeValidator.java      |  84 +++
 .../schema/SchemaReadOnlyChangeValidator.java      |  52 ++
 .../schema/SchemaTypeFormatChangeValidator.java    |  72 +++
 .../schema/SchemaWriteOnlyChangeValidator.java     |  52 ++
 .../schema/SchemaXmlChangeValidator.java           |  52 ++
 .../validators/schema/TypeFormat.java              |  68 +++
 .../SchemaEnumChangeInRequestValidator.java        |  60 +++
 ...maExclusiveMaximumChangeInRequestValidator.java |  61 +++
 ...maExclusiveMinimumChangeInRequestValidator.java |  59 +++
 .../SchemaMaxItemsChangeInRequestValidator.java    |  55 ++
 .../SchemaMaxLengthChangeInRequestValidator.java   |  55 ++
 ...chemaMaxPropertiesChangeInRequestValidator.java |  55 ++
 .../SchemaMaximumChangeInRequestValidator.java     |  57 ++
 .../SchemaMinItemsChangeInRequestValidator.java    |  55 ++
 .../SchemaMinLengthChangeInRequestValidator.java   |  55 ++
 ...chemaMinPropertiesChangeInRequestValidator.java |  55 ++
 .../SchemaMinimumChangeInRequestValidator.java     |  57 ++
 .../SchemaMultipleOfChangeInRequestValidator.java  |  58 ++
 .../SchemaNullableChangeInRequestValidator.java    |  59 +++
 .../SchemaRequiredChangeInRequestValidator.java    |  60 +++
 .../SchemaTypeFormatChangeInRequestValidator.java  |  75 +++
 .../SchemaUniqueItemsChangeInRequestValidator.java |  58 ++
 .../SchemaEnumChangeInResponseValidator.java       |  59 +++
 ...aExclusiveMaximumChangeInResponseValidator.java |  60 +++
 ...aExclusiveMinimumChangeInResponseValidator.java |  60 +++
 .../SchemaMaxItemsChangeInResponseValidator.java   |  54 ++
 .../SchemaMaxLengthChangeInResponseValidator.java  |  54 ++
 ...hemaMaxPropertiesChangeInResponseValidator.java |  54 ++
 .../SchemaMaximumChangeInResponseValidator.java    |  56 ++
 .../SchemaMinItemsChangeInResponseValidator.java   |  54 ++
 .../SchemaMinLengthChangeInResponseValidator.java  |  54 ++
 ...hemaMinPropertiesChangeInResponseValidator.java |  54 ++
 .../SchemaMinimumChangeInResponseValidator.java    |  56 ++
 .../SchemaMultipleOfChangeInResponseValidator.java |  57 ++
 .../SchemaNullableChangeInResponseValidator.java   |  58 ++
 .../SchemaRequiredChangeInResponseValidator.java   |  59 +++
 .../SchemaTypeFormatChangeInResponseValidator.java |  65 +++
 ...SchemaUniqueItemsChangeInResponseValidator.java |  57 ++
 .../CompatibilityCheckParserTest.java              |  43 ++
 .../DefaultCallbackDiffValidatorFactoryTest.java   |  43 ++
 .../DefaultComponentsDiffValidatorFactoryTest.java |  46 ++
 .../DefaultEncodingDiffValidatorFactoryTest.java   |  46 ++
 .../DefaultInfoDiffValidatorFactoryTest.java       |  43 ++
 .../DefaultLinkDiffValidatorFactoryTest.java       |  43 ++
 .../DefaultMediaTypeDiffValidatorFactoryTest.java  |  46 ++
 .../DefaultOasSpecDiffValidatorFactoryTest.java    |  39 ++
 .../DefaultOpenApiDiffValidatorFactoryTest.java    |  46 ++
 .../DefaultOperationDiffValidatorFactoryTest.java  |  43 ++
 .../DefaultParameterDiffValidatorFactoryTest.java  |  43 ++
 .../DefaultPathItemDiffValidatorFactoryTest.java   |  46 ++
 .../DefaultPathsDiffValidatorFactoryTest.java      |  46 ++
 ...DefaultRequestBodyDiffValidatorFactoryTest.java |  46 ++
 .../DefaultResponseDiffValidatorFactoryTest.java   |  46 ++
 .../DefaultResponsesDiffValidatorFactoryTest.java  |  46 ++
 .../DefaultSchemaDiffValidatorFactoryTest.java     |  46 ++
 ...aultSecuritySchemeDiffValidatorFactoryTest.java |  46 ++
 .../DefaultServerDiffValidatorFactoryTest.java     |  46 ++
 .../DefaultTagDiffValidatorFactoryTest.java        |  46 ++
 .../DiffValidatorFactoryTestConfiguration.java     |  26 +
 .../validators/OasCompatibilityTestBase.java       |  34 ++
 .../EncodingAddNotAllowedDiffValidatorTest.java    |  77 +++
 ...dingAllowedReservedChangeDiffValidatorTest.java |  89 ++++
 ...ncodingContentTypeNotSameDiffValidatorTest.java |  88 +++
 .../EncodingDelNotAllowedDiffValidatorTest.java    |  77 +++
 .../EncodingExplodeNotSameDiffValidatorTest.java   |  88 +++
 .../EncodingStyleNotSameDiffValidatorTest.java     |  88 +++
 ...ddInRequestBodyNotAllowedDiffValidatorTest.java |  79 +++
 ...erDelInResponseNotAllowedDiffValidatorTest.java |  78 +++
 ...eAddInParameterNotAllowedDiffValidatorTest.java |  77 +++
 ...eDelInParameterNotAllowedDiffValidatorTest.java |  77 +++
 ...elInRequestBodyNotAllowedDiffValidatorTest.java |  77 +++
 ...peDelInResponseNotAllowedDiffValidatorTest.java |  78 +++
 ...OperationDeleteNotAllowedDiffValidatorTest.java |  74 +++
 .../OperationIdNotSameDiffValidatorTest.java       |  76 +++
 .../parameter/ParameterAddDiffValidatorTest.java   |  76 +++
 ...eterAllowEmptyValueChangeDiffValidatorTest.java |  84 +++
 ...ameterAllowReservedChangeDiffValidatorTest.java |  88 +++
 .../ParameterExplodeNotSameDiffValidatorTest.java  |  84 +++
 .../ParameterRequiredChangeDiffValidatorTest.java  |  84 +++
 .../ParameterStyleNotSameDiffValidatorTest.java    |  84 +++
 .../PathItemDeleteNotAllowedDiffValidatorTest.java |  72 +++
 ...RequestBodyRequiredChangeDiffValidatorTest.java |  77 +++
 .../ResponseAddNotAllowedDiffValidatorTest.java    |  83 +++
 .../SchemaDiscriminatorChangeValidatorTest.java    | 108 ++++
 .../schema/SchemaReadOnlyChangeValidatorTest.java  | 108 ++++
 .../schema/SchemaWriteOnlyChangeValidatorTest.java | 108 ++++
 .../schema/SchemaXmlChangeValidatorTest.java       | 108 ++++
 .../SchemaEnumChangeInRequestValidatorTest.java    |  98 ++++
 ...clusiveMaximumChangeInRequestValidatorTest.java |  93 ++++
 ...clusiveMinimumChangeInRequestValidatorTest.java |  93 ++++
 ...SchemaMaxItemsChangeInRequestValidatorTest.java |  93 ++++
 ...chemaMaxLengthChangeInRequestValidatorTest.java |  93 ++++
 ...aMaxPropertiesChangeInRequestValidatorTest.java |  93 ++++
 .../SchemaMaximumChangeInRequestValidatorTest.java |  93 ++++
 ...SchemaMinItemsChangeInRequestValidatorTest.java |  93 ++++
 ...chemaMinLengthChangeInRequestValidatorTest.java |  93 ++++
 ...aMinPropertiesChangeInRequestValidatorTest.java |  93 ++++
 .../SchemaMinimumChangeInRequestValidatorTest.java |  93 ++++
 ...hemaMultipleOfChangeInRequestValidatorTest.java |  90 ++++
 ...SchemaNullableChangeInRequestValidatorTest.java |  93 ++++
 ...SchemaRequiredChangeInRequestValidatorTest.java |  90 ++++
 ...hemaTypeFormatChangeInRequestValidatorTest.java |  91 ++++
 ...emaUniqueItemsChangeInRequestValidatorTest.java |  93 ++++
 .../SchemaEnumChangeInResponseValidatorTest.java   |  81 +++
 ...lusiveMaximumChangeInResponseValidatorTest.java |  82 +++
 ...lusiveMinimumChangeInResponseValidatorTest.java |  82 +++
 ...chemaMaxItemsChangeInResponseValidatorTest.java |  82 +++
 ...hemaMaxLengthChangeInResponseValidatorTest.java |  82 +++
 ...MaxPropertiesChangeInResponseValidatorTest.java |  82 +++
 ...SchemaMaximumChangeInResponseValidatorTest.java |  82 +++
 ...chemaMinItemsChangeInResponseValidatorTest.java |  82 +++
 ...hemaMinLengthChangeInResponseValidatorTest.java |  82 +++
 ...MinPropertiesChangeInResponseValidatorTest.java |  82 +++
 ...SchemaMinimumChangeInResponseValidatorTest.java |  82 +++
 ...emaMultipleOfChangeInResponseValidatorTest.java |  79 +++
 ...chemaNullableChangeInResponseValidatorTest.java |  82 +++
 ...chemaRequiredChangeInResponseValidatorTest.java |  80 +++
 ...emaTypeFormatChangeInResponseValidatorTest.java |  80 +++
 ...maUniqueItemsChangeInResponseValidatorTest.java |  82 +++
 .../src/test/resources/logback-test.xml            |  12 +-
 .../toolkit/oasv/compatibility/parser-test.yaml    |  48 ++
 .../encoding/petstore-encoding-add-a.yaml          |  52 ++
 .../encoding/petstore-encoding-add-b.yaml          |  54 ++
 .../petstore-encoding-allow-reserved-a.yaml        |  56 ++
 .../petstore-encoding-allow-reserved-b.yaml        |  56 ++
 .../encoding/petstore-encoding-content-type-a.yaml |  52 ++
 .../encoding/petstore-encoding-content-type-b.yaml |  52 ++
 .../encoding/petstore-encoding-del-a.yaml          |  54 ++
 .../encoding/petstore-encoding-del-b.yaml          |  52 ++
 .../encoding/petstore-encoding-explode-a.yaml      |  53 ++
 .../encoding/petstore-encoding-explode-b.yaml      |  53 ++
 .../encoding/petstore-encoding-style-a.yaml        |  53 ++
 .../encoding/petstore-encoding-style-b.yaml        |  53 ++
 .../petstore-header-add-in-request-body-a.yaml     |  52 ++
 .../petstore-header-add-in-request-body-b.yaml     |  56 ++
 .../header/petstore-header-del-in-response-a.yaml  |  46 ++
 .../header/petstore-header-del-in-response-b.yaml  |  43 ++
 .../petstore-media-type-add-in-parameter-a.yaml    |  42 ++
 .../petstore-media-type-add-in-parameter-b.yaml    |  46 ++
 .../petstore-media-type-del-in-parameter-a.yaml    |  46 ++
 .../petstore-media-type-del-in-parameter-b.yaml    |  42 ++
 .../petstore-media-type-del-in-request-body-a.yaml |  47 ++
 .../petstore-media-type-del-in-request-body-b.yaml |  44 ++
 .../petstore-media-type-del-in-response-a.yaml     |  46 ++
 .../petstore-media-type-del-in-response-b.yaml     |  43 ++
 .../operation/petstore-operation-delete-a.yaml     |  39 ++
 .../operation/petstore-operation-delete-b.yaml     |  32 ++
 .../operation/petstore-operation-id-a.yaml         |  39 ++
 .../operation/petstore-operation-id-b.yaml         |  39 ++
 .../parameter/petstore-parameter-add-a.yaml        |  38 ++
 .../parameter/petstore-parameter-add-b.yaml        |  44 ++
 .../petstore-parameter-allow-empty-value-a.yaml    |  41 ++
 .../petstore-parameter-allow-empty-value-b.yaml    |  43 ++
 .../petstore-parameter-allow-reserved-a.yaml       |  41 ++
 .../petstore-parameter-allow-reserved-b.yaml       |  43 ++
 .../parameter/petstore-parameter-explode-a.yaml    |  41 ++
 .../parameter/petstore-parameter-explode-b.yaml    |  43 ++
 .../parameter/petstore-parameter-required-a.yaml   |  41 ++
 .../parameter/petstore-parameter-required-b.yaml   |  43 ++
 .../parameter/petstore-parameter-style-a.yaml      |  41 ++
 .../parameter/petstore-parameter-style-b.yaml      |  43 ++
 .../pathitem/petstore-path-item-delete-a.yaml      |  59 +++
 .../pathitem/petstore-path-item-delete-b.yaml      |  59 +++
 .../petstore-request-body-required-a.yaml          |  51 ++
 .../petstore-request-body-required-b.yaml          |  51 ++
 .../response/petstore-response-add-a.yaml          |  39 ++
 .../response/petstore-response-add-b.yaml          |  43 ++
 .../schema/petstore-schema-discriminator-a.yaml    | 108 ++++
 .../schema/petstore-schema-discriminator-b.yaml    | 108 ++++
 .../schema/petstore-schema-read-only-a.yaml        |  75 +++
 .../schema/petstore-schema-read-only-b.yaml        |  75 +++
 .../schema/petstore-schema-write-only-a.yaml       |  77 +++
 .../schema/petstore-schema-write-only-b.yaml       |  77 +++
 .../validators/schema/petstore-schema-xml-a.yaml   |  72 +++
 .../validators/schema/petstore-schema-xml-b.yaml   |  78 +++
 .../request/petstore-schema-enum-in-request-a.yaml |  69 +++
 .../request/petstore-schema-enum-in-request-b.yaml |  66 +++
 ...tore-schema-exclusive-maximum-in-request-a.yaml |  66 +++
 ...tore-schema-exclusive-maximum-in-request-b.yaml |  66 +++
 ...tore-schema-exclusive-minimum-in-request-a.yaml |  66 +++
 ...tore-schema-exclusive-minimum-in-request-b.yaml |  66 +++
 .../petstore-schema-max-items-in-request-a.yaml    |  72 +++
 .../petstore-schema-max-items-in-request-b.yaml    |  72 +++
 .../petstore-schema-max-length-in-request-a.yaml   |  64 +++
 .../petstore-schema-max-length-in-request-b.yaml   |  64 +++
 ...etstore-schema-max-properties-in-request-a.yaml |  64 +++
 ...etstore-schema-max-properties-in-request-b.yaml |  64 +++
 .../petstore-schema-maximum-in-request-a.yaml      |  64 +++
 .../petstore-schema-maximum-in-request-b.yaml      |  64 +++
 .../petstore-schema-min-items-in-request-a.yaml    |  72 +++
 .../petstore-schema-min-items-in-request-b.yaml    |  72 +++
 .../petstore-schema-min-length-in-request-a.yaml   |  64 +++
 .../petstore-schema-min-length-in-request-b.yaml   |  64 +++
 ...etstore-schema-min-properties-in-request-a.yaml |  64 +++
 ...etstore-schema-min-properties-in-request-b.yaml |  64 +++
 .../petstore-schema-minimum-in-request-a.yaml      |  64 +++
 .../petstore-schema-minimum-in-request-b.yaml      |  64 +++
 .../petstore-schema-multiple-of-in-request-a.yaml  |  65 +++
 .../petstore-schema-multiple-of-in-request-b.yaml  |  65 +++
 .../petstore-schema-nullable-in-request-a.yaml     |  63 +++
 .../petstore-schema-nullable-in-request-b.yaml     |  64 +++
 .../petstore-schema-required-in-request-a.yaml     |  62 +++
 .../petstore-schema-required-in-request-b.yaml     |  66 +++
 .../petstore-schema-type-format-in-request-a.yaml  |  62 +++
 .../petstore-schema-type-format-in-request-b.yaml  |  62 +++
 .../petstore-schema-unique-items-in-request-a.yaml |  73 +++
 .../petstore-schema-unique-items-in-request-b.yaml |  72 +++
 .../petstore-schema-enum-in-response-a.yaml        |  47 ++
 .../petstore-schema-enum-in-response-b.yaml        |  48 ++
 ...ore-schema-exclusive-maximum-in-response-a.yaml |  47 ++
 ...ore-schema-exclusive-maximum-in-response-b.yaml |  47 ++
 ...ore-schema-exclusive-minimum-in-response-a.yaml |  47 ++
 ...ore-schema-exclusive-minimum-in-response-b.yaml |  47 ++
 .../petstore-schema-max-items-in-response-a.yaml   |  50 ++
 .../petstore-schema-max-items-in-response-b.yaml   |  50 ++
 .../petstore-schema-max-length-in-response-a.yaml  |  46 ++
 .../petstore-schema-max-length-in-response-b.yaml  |  46 ++
 ...tstore-schema-max-properties-in-response-a.yaml |  46 ++
 ...tstore-schema-max-properties-in-response-b.yaml |  46 ++
 .../petstore-schema-maximum-in-response-a.yaml     |  46 ++
 .../petstore-schema-maximum-in-response-b.yaml     |  46 ++
 .../petstore-schema-min-items-in-response-a.yaml   |  50 ++
 .../petstore-schema-min-items-in-response-b.yaml   |  50 ++
 .../petstore-schema-min-length-in-response-a.yaml  |  46 ++
 .../petstore-schema-min-length-in-response-b.yaml  |  46 ++
 ...tstore-schema-min-properties-in-response-a.yaml |  46 ++
 ...tstore-schema-min-properties-in-response-b.yaml |  46 ++
 .../petstore-schema-minimum-in-response-a.yaml     |  46 ++
 .../petstore-schema-minimum-in-response-b.yaml     |  46 ++
 .../petstore-schema-multiple-of-in-response-a.yaml |  49 ++
 .../petstore-schema-multiple-of-in-response-b.yaml |  49 ++
 .../petstore-schema-nullable-in-response-a.yaml    |  46 ++
 .../petstore-schema-nullable-in-response-b.yaml    |  46 ++
 .../petstore-schema-required-in-response-a.yaml    |  49 ++
 .../petstore-schema-required-in-response-b.yaml    |  47 ++
 .../petstore-schema-type-format-in-response-a.yaml |  46 ++
 .../petstore-schema-type-format-in-response-b.yaml |  46 ++
 ...petstore-schema-unique-items-in-response-a.yaml |  50 ++
 ...petstore-schema-unique-items-in-response-b.yaml |  50 ++
 .../oas-validator-compliance-spring}/pom.xml       |  52 +-
 .../config/ComponentsValidatorConfiguration.java   |  68 +++
 .../config/EncodingValidatorConfiguration.java     |  33 ++
 .../config/HeaderValidatorConfiguration.java       |  33 ++
 .../config/InfoValidatorConfiguration.java         |  33 ++
 .../config/OpenApiValidatorConfiguration.java      |  45 ++
 .../config/OperationValidatorConfiguration.java    |  52 ++
 .../config/ParameterValidatorConfiguration.java    |  53 ++
 .../config/PathsValidatorConfiguration.java        |  33 ++
 .../config/RequestBodyValidatorConfiguration.java  |  33 ++
 .../config/ResponseValidatorConfiguration.java     |  33 ++
 .../config/SchemaValidatorConfiguration.java       |  38 ++
 .../config/TagValidatorConfiguration.java          |  45 ++
 .../src/main/resources/META-INF/spring.factories   |  30 ++
 .../config/ValidatorConfigurationsTest.java        |  68 +++
 .../src/test/resources/logback-test.xml            |  12 +-
 .../oas-validator-compliance}/pom.xml              |  64 ++-
 .../oasv/compliance/ComplianceCheckParser.java     |  44 ++
 .../factory/DefaultComponentsValidatorFactory.java |  96 ++++
 .../factory/DefaultEncodingValidatorFactory.java   |  54 ++
 .../factory/DefaultHeaderValidatorFactory.java     |  54 ++
 .../factory/DefaultInfoValidatorFactory.java       |  42 ++
 .../factory/DefaultMediaTypeValidatorFactory.java  |  57 ++
 .../factory/DefaultOasSpecValidatorFactory.java    |  41 ++
 .../factory/DefaultOpenApiValidatorFactory.java    |  86 +++
 .../factory/DefaultOperationValidatorFactory.java  |  77 +++
 .../factory/DefaultParameterValidatorFactory.java  |  69 +++
 .../factory/DefaultPathItemValidatorFactory.java   |  57 ++
 .../factory/DefaultPathsValidatorFactory.java      |  54 ++
 .../DefaultRequestBodyValidatorFactory.java        |  53 ++
 .../factory/DefaultResponseValidatorFactory.java   |  61 +++
 .../factory/DefaultResponsesValidatorFactory.java  |  50 ++
 .../factory/DefaultSchemaValidatorFactory.java     |  43 ++
 .../DefaultSecuritySchemeValidatorFactory.java     |  34 ++
 .../factory/DefaultServerValidatorFactory.java     |  35 ++
 .../factory/DefaultTagValidatorFactory.java        |  45 ++
 .../components/ComponentsKeysValidators.java       |  59 +++
 .../validator/encoding/EncodingKeysValidators.java |  31 ++
 .../header/HeaderDescriptionRequiredValidator.java |  56 ++
 .../info/InfoDescriptionRequiredValidator.java     |  56 ++
 .../openapi/OpenApiSecurityEmptyValidator.java     |  57 ++
 .../openapi/OpenApiTagNotEmptyValidator.java       |  53 ++
 .../validator/openapi/OpenApiVersionValidator.java |  53 ++
 .../OperationIdLowerCamelCaseValidator.java        |  47 ++
 .../operation/OperationServersEmptyValidator.java  |  50 ++
 .../OperationSummaryRequiredValidator.java         |  56 ++
 .../operation/OperationTagsOnlyOneValidator.java   |  54 ++
 .../operation/OperationTagsReferenceValidator.java |  76 +++
 .../ParameterCookieLowerCamelCaseValidator.java    |  57 ++
 .../ParameterDescriptionRequiredValidator.java     |  56 ++
 .../ParameterHeaderUpperHyphenCaseValidator.java   |  58 ++
 .../ParameterPathLowerCamelCaseValidator.java      |  57 ++
 .../ParameterQueryLowerCamelCaseValidator.java     |  57 ++
 .../paths/PathsLowerCamelCaseValidator.java        | 102 ++++
 .../RequestBodyDescriptionRequiredValidator.java   |  56 ++
 .../validator/response/ResponseKeysValidators.java |  31 ++
 .../validator/schema/SchemaKeysValidators.java     |  31 ++
 .../validator/schema/SchemaTitleValidator.java     |  73 +++
 .../tag/TagDescriptionRequiredValidator.java       |  56 ++
 .../tag/TagNameUpperCamelCaseValidator.java        |  48 ++
 .../validator/tag/TagReferenceValidator.java       |  89 ++++
 .../oasv/compliance/ComplianceCheckParserTest.java |  43 ++
 .../DefaultComponentsValidatorFactoryTest.java     |  44 ++
 .../DefaultEncodingValidatorFactoryTest.java       |  44 ++
 .../factory/DefaultHeaderValidatorFactoryTest.java |  44 ++
 .../factory/DefaultInfoValidatorFactoryTest.java   |  44 ++
 .../DefaultMediaTypeValidatorFactoryTest.java      |  44 ++
 .../DefaultOasSpecValidatorFactoryTest.java        |  41 ++
 .../DefaultOpenApiValidatorFactoryTest.java        |  44 ++
 .../DefaultOperationValidatorFactoryTest.java      |  44 ++
 .../DefaultParameterValidatorFactoryTest.java      |  44 ++
 .../DefaultPathItemValidatorFactoryTest.java       |  44 ++
 .../factory/DefaultPathsValidatorFactoryTest.java  |  44 ++
 .../DefaultRequestBodyValidatorFactoryTest.java    |  44 ++
 .../DefaultResponseValidatorFactoryTest.java       |  44 ++
 .../DefaultResponsesValidatorFactoryTest.java      |  44 ++
 .../factory/DefaultSchemaValidatorFactoryTest.java |  44 ++
 .../DefaultSecuritySchemeValidatorFactoryTest.java |  44 ++
 .../factory/DefaultServerValidatorFactoryTest.java |  44 ++
 .../factory/DefaultTagValidatorFactoryTest.java    |  43 ++
 .../factory/ValidatorFactoryTestConfiguration.java |  26 +
 .../validator/OasComplianceTestBase.java           |  34 ++
 ...onentsCallbacksUpperCamelCaseValidatorTest.java |  72 +++
 ...ponentsExamplesUpperCamelCaseValidatorTest.java |  72 +++
 ...mponentsHeadersUpperCamelCaseValidatorTest.java |  72 +++
 ...ComponentsLinksUpperCamelCaseValidatorTest.java |  72 +++
 ...nentsParametersUpperCamelCaseValidatorTest.java |  72 +++
 ...tsRequestBodiesUpperCamelCaseValidatorTest.java |  72 +++
 ...onentsResponsesUpperCamelCaseValidatorTest.java |  72 +++
 ...mponentsSchemasUpperCamelCaseValidatorTest.java |  72 +++
 .../HeaderDescriptionRequiredValidatorTest.java    |  82 +++
 .../info/InfoDescriptionRequiredValidatorTest.java |  63 +++
 .../openapi/OpenApiSecurityEmptyValidatorTest.java |  67 +++
 .../openapi/OpenApiTagsSizeValidatorTest.java      |  60 +++
 .../openapi/OpenApiVersionValidatorTest.java       |  61 +++
 .../OperationIdLowerCamelCaseValidatorTest.java    |  67 +++
 .../OperationServersEmptyValidatorTest.java        |  68 +++
 .../OperationSummaryRequiredValidatorTest.java     |  67 +++
 .../OperationTagsOnlyOneValidatorTest.java         |  66 +++
 .../OperationTagsReferenceValidatorTest.java       |  66 +++
 ...ParameterCookieLowerCamelCaseValidatorTest.java |  77 +++
 .../ParameterDescriptionRequiredValidatorTest.java |  76 +++
 ...arameterHeaderUpperHyphenCaseValidatorTest.java |  77 +++
 .../ParameterPathLowerCamelCaseValidatorTest.java  |  77 +++
 .../ParameterQueryLowerCamelCaseValidatorTest.java |  77 +++
 .../paths/PathsLowerCamelCaseValidatorTest.java    |  76 +++
 ...equestBodyDescriptionRequiredValidatorTest.java |  77 +++
 ...aPropertiesKeysLowerCamelCaseValidatorTest.java | 251 +++++++++
 .../validator/schema/SchemaTitleValidatorTest.java | 104 ++++
 .../tag/TagDescriptionRequiredValidatorTest.java   |  62 +++
 .../tag/TagNameUpperCamelCaseValidatorTest.java    |  64 +++
 .../validator/tag/TagReferenceValidatorTest.java   |  62 +++
 .../src/test/resources/logback-test.xml            |  12 +-
 .../toolkit/oasv/compliance/parser-test.yaml       |  48 ++
 .../petstore-callbacks-upper-camel-case.yaml       | 124 +++++
 .../petstore-examples-upper-camel-case.yaml        |  90 ++++
 .../petstore-headers-upper-camel-case.yaml         |  90 ++++
 .../petstore-links-upper-camel-case.yaml           |  90 ++++
 .../petstore-parameters-upper-camel-case.yaml      |  96 ++++
 .../petstore-request-bodies-upper-camel-case.yaml  | 104 ++++
 .../petstore-responses-upper-camel-case.yaml       |  90 ++++
 .../petstore-schemas-upper-camel-case.yaml         |  91 ++++
 .../validator/header/petstore-header-no-desc.yaml  | 143 +++++
 .../validator/info/petstore-info-no-desc.yaml      | 125 +++++
 .../validator/openapi/petstore-openapi-wrong.yaml  | 125 +++++
 .../openapi/petstore-security-empty-good.yaml      |  30 ++
 .../validator/openapi/petstore-security-empty.yaml |  33 ++
 .../openapi/petstore-tag-not-provided.yaml         | 125 +++++
 .../petstore-operation-id-lower-camel-case.yaml    | 125 +++++
 .../petstore-operation-servers-empty.yaml          |  38 ++
 .../petstore-operation-summary-required.yaml       | 124 +++++
 .../petstore-operation-tags-only-one.yaml          | 126 +++++
 .../petstore-operation-tags-reference.yaml         | 128 +++++
 ...petstore-parameter-cookie-lower-camel-case.yaml |  88 +++
 .../parameter/petstore-parameter-desc-none.yaml    |  84 +++
 ...etstore-parameter-header-upper-hyphen-case.yaml |  88 +++
 .../petstore-parameter-path-lower-camel-case.yaml  |  84 +++
 .../petstore-parameter-query-lower-camel-case.yaml |  88 +++
 .../paths/petstore-paths-lower-camel-case.yaml     | 127 +++++
 .../petstore-request-body-desc-required.yaml       | 105 ++++
 ...tore-schema-p-keys-lower-camel-case-all-of.yaml |  40 ++
 ...tore-schema-p-keys-lower-camel-case-any-of.yaml |  40 ++
 ...store-schema-p-keys-lower-camel-case-array.yaml |  41 ++
 ...tstore-schema-p-keys-lower-camel-case-comp.yaml |  39 ++
 ...tore-schema-p-keys-lower-camel-case-nested.yaml |  42 ++
 ...tore-schema-p-keys-lower-camel-case-one-of.yaml |  40 ++
 ...ore-schema-p-keys-lower-camel-case-param-1.yaml |  39 ++
 ...ore-schema-p-keys-lower-camel-case-param-2.yaml |  41 ++
 ...store-schema-p-keys-lower-camel-case-req-1.yaml |  40 ++
 ...store-schema-p-keys-lower-camel-case-req-2.yaml |  42 ++
 ...tore-schema-p-keys-lower-camel-case-resp-1.yaml |  39 ++
 ...tore-schema-p-keys-lower-camel-case-resp-2.yaml |  44 ++
 .../schema/petstore-schema-title-comp.yaml         |  37 ++
 .../schema/petstore-schema-title-nested.yaml       |  42 ++
 .../schema/petstore-schema-title-param.yaml        |  37 ++
 .../schema/petstore-schema-title-req.yaml          |  38 ++
 .../schema/petstore-schema-title-resp.yaml         |  37 ++
 .../petstore-tag-name-not-upper-camel-case.yaml    | 127 +++++
 .../validator/tag/petstore-tag-no-desc.yaml        | 127 +++++
 .../validator/tag/petstore-tag-redundant.yaml      | 128 +++++
 .../oas-validator-core-spring}/pom.xml             |  46 +-
 .../OasDiffValidatorsSkeletonConfiguration.java    | 254 +++++++++
 .../config/OasValidatorsSkeletonConfiguration.java | 218 ++++++++
 .../src/main/resources/META-INF/spring.factories   |  20 +
 .../oas-validator-core}/pom.xml                    |  55 +-
 .../toolkit/oasv/common/OasObjectProperty.java     |  76 +++
 .../oasv/common/OasObjectPropertyLocation.java     | 134 +++++
 .../toolkit/oasv/common/OasObjectType.java         |  57 ++
 .../diffvalidation/api/CallbackDiffValidator.java  |  23 +
 .../api/ComponentsDiffValidator.java               |  23 +
 .../api/DefaultOasSpecDiffValidator.java           |  49 ++
 .../diffvalidation/api/DiffViolationMessages.java  |  32 ++
 .../diffvalidation/api/EncodingDiffValidator.java  |  23 +
 .../diffvalidation/api/HeaderDiffValidator.java    |  23 +
 .../oasv/diffvalidation/api/InfoDiffValidator.java |  23 +
 .../oasv/diffvalidation/api/LinkDiffValidator.java |  23 +
 .../api/ListPropertyDiffValidator.java             |  66 +++
 .../api/MapPropertyDiffValidator.java              |  60 +++
 .../diffvalidation/api/MediaTypeDiffValidator.java |  23 +
 .../api/OasDiffValidationContext.java              |  58 ++
 .../api/OasDiffValidationException.java            |  40 ++
 .../oasv/diffvalidation/api/OasDiffViolation.java  |  90 ++++
 .../diffvalidation/api/OasObjectDiffValidator.java |  45 ++
 .../api/OasObjectDiffValidatorTemplate.java        |  86 +++
 .../diffvalidation/api/OasSpecDiffValidator.java   |  31 ++
 .../api/ObjectPropertyDiffValidator.java           |  70 +++
 .../diffvalidation/api/OpenApiDiffValidator.java   |  23 +
 .../diffvalidation/api/OperationDiffValidator.java |  23 +
 .../diffvalidation/api/ParameterDiffValidator.java |  23 +
 .../diffvalidation/api/PathItemDiffValidator.java  |  23 +
 .../diffvalidation/api/PathsDiffValidator.java     |  23 +
 .../api/RequestBodyDiffValidator.java              |  23 +
 .../diffvalidation/api/ResponseDiffValidator.java  |  23 +
 .../diffvalidation/api/ResponsesDiffValidator.java |  23 +
 .../diffvalidation/api/SchemaAddValidator.java     |  38 ++
 .../diffvalidation/api/SchemaCompareValidator.java |  46 ++
 .../diffvalidation/api/SchemaDelValidator.java     |  38 ++
 .../diffvalidation/api/SchemaDiffValidator.java    |  23 +
 .../api/SecuritySchemeDiffValidator.java           |  23 +
 .../diffvalidation/api/ServerDiffValidator.java    |  23 +
 .../oasv/diffvalidation/api/TagDiffValidator.java  |  23 +
 .../factory/CallbackDiffValidatorFactory.java      |  23 +
 .../factory/ComponentsDiffValidatorFactory.java    |  23 +
 .../factory/EncodingDiffValidatorFactory.java      |  23 +
 .../factory/HeaderDiffValidatorFactory.java        |  23 +
 .../factory/InfoDiffValidatorFactory.java          |  23 +
 .../factory/LinkDiffValidatorFactory.java          |  23 +
 .../factory/MediaTypeDiffValidatorFactory.java     |  23 +
 .../factory/OasObjectDiffValidatorFactory.java     |  27 +
 .../factory/OasSpecDiffValidatorFactory.java       |  26 +
 .../factory/OpenApiDiffValidatorFactory.java       |  23 +
 .../factory/OperationDiffValidatorFactory.java     |  23 +
 .../factory/ParameterDiffValidatorFactory.java     |  23 +
 .../factory/PathItemDiffValidatorFactory.java      |  23 +
 .../factory/PathsDiffValidatorFactory.java         |  23 +
 .../factory/RequestBodyDiffValidatorFactory.java   |  23 +
 .../factory/ResponseDiffValidatorFactory.java      |  23 +
 .../factory/ResponsesDiffValidatorFactory.java     |  23 +
 .../factory/SchemaDiffValidatorFactory.java        |  23 +
 .../SecuritySchemeDiffValidatorFactory.java        |  23 +
 .../factory/ServerDiffValidatorFactory.java        |  23 +
 .../factory/TagDiffValidatorFactory.java           |  23 +
 .../ComponentsCallbacksDiffValidator.java          |  54 ++
 .../components/ComponentsHeadersDiffValidator.java |  54 ++
 .../components/ComponentsLinksDiffValidator.java   |  54 ++
 .../ComponentsParametersDiffValidator.java         |  54 ++
 .../ComponentsRequestBodiesDiffValidator.java      |  54 ++
 .../ComponentsResponsesDiffValidator.java          |  54 ++
 .../encoding/EncodingHeadersDiffValidator.java     |  54 ++
 .../skeleton/header/HeaderSchemaDiffValidator.java |  53 ++
 .../mediatype/MediaTypeEncodingDiffValidator.java  |  64 +++
 .../mediatype/MediaTypeSchemaDiffValidator.java    |  53 ++
 .../openapi/OpenApiComponentsDiffValidator.java    |  55 ++
 .../skeleton/openapi/OpenApiInfoDiffValidator.java |  54 ++
 .../openapi/OpenApiPathsDiffValidator.java         |  54 ++
 .../openapi/OpenApiServersDiffValidator.java       |  53 ++
 .../skeleton/openapi/OpenApiTagsDiffValidator.java |  53 ++
 .../OperationParametersDiffValidator.java          |  52 ++
 .../OperationRequestBodyDiffValidator.java         |  55 ++
 .../operation/OperationResponsesDiffValidator.java |  54 ++
 .../parameter/ParameterContentDiffValidator.java   |  68 +++
 .../parameter/ParameterSchemaDiffValidator.java    |  67 +++
 .../pathitem/PathItemOperationsDiffValidator.java  | 118 +++++
 .../pathitem/PathItemParametersDiffValidator.java  |  58 ++
 .../paths/PathsPathItemsDiffValidator.java         |  77 +++
 .../RequestBodyContentDiffValidator.java           |  68 +++
 .../response/ResponseContentDiffValidator.java     |  68 +++
 .../response/ResponseHeadersDiffValidator.java     |  69 +++
 .../responses/ResponsesResponsesDiffValidator.java | 102 ++++
 .../skeleton/schema/SchemaDiffValidatorEngine.java | 222 ++++++++
 .../diffvalidation/util/ChangeRangeCheckUtils.java |  38 ++
 .../util/OasDiffValidationContextUtils.java        |  64 +++
 .../util/OasObjectDiffValidatorUtils.java          | 264 +++++++++
 .../oasv/diffvalidation/util/ParameterUtils.java   |  33 ++
 .../toolkit/oasv/util/StringCaseUtils.java         |  57 ++
 .../toolkit/oasv/util/SyntaxChecker.java           |  48 ++
 .../oasv/validation/api/CallbackValidator.java     |  26 +
 .../oasv/validation/api/ComponentsValidator.java   |  26 +
 .../validation/api/DefaultOasSpecValidator.java    |  47 ++
 .../oasv/validation/api/EncodingValidator.java     |  26 +
 .../oasv/validation/api/ExampleValidator.java      |  26 +
 .../oasv/validation/api/HeaderValidator.java       |  26 +
 .../toolkit/oasv/validation/api/InfoValidator.java |  27 +
 .../toolkit/oasv/validation/api/LinkValidator.java |  26 +
 .../api/ListPropertyRequiredValidator.java         |  56 ++
 .../oasv/validation/api/ListPropertyValidator.java |  62 +++
 .../validation/api/MapPropertyKeysValidator.java   |  67 +++
 .../validation/api/MapPropertyValuesValidator.java |  63 +++
 .../oasv/validation/api/MediaTypeValidator.java    |  27 +
 .../oasv/validation/api/OasObjectValidator.java    |  38 ++
 .../oasv/validation/api/OasSpecValidator.java      |  31 ++
 .../oasv/validation/api/OasValidationContext.java  |  47 ++
 .../toolkit/oasv/validation/api/OasViolation.java  |  74 +++
 .../api/ObjectPropertyRequiredValidator.java       |  62 +++
 .../validation/api/ObjectPropertyValidator.java    |  67 +++
 .../oasv/validation/api/OpenApiValidator.java      |  27 +
 .../oasv/validation/api/OperationValidator.java    |  26 +
 .../oasv/validation/api/ParameterValidator.java    |  26 +
 .../oasv/validation/api/PathItemValidator.java     |  26 +
 .../oasv/validation/api/PathsValidator.java        |  26 +
 .../oasv/validation/api/RequestBodyValidator.java  |  26 +
 .../oasv/validation/api/ResponseValidator.java     |  27 +
 .../oasv/validation/api/ResponsesValidator.java    |  27 +
 .../oasv/validation/api/SchemaValidator.java       |  27 +
 .../validation/api/SecuritySchemeValidator.java    |  26 +
 .../oasv/validation/api/ServerValidator.java       |  27 +
 .../toolkit/oasv/validation/api/TagValidator.java  |  26 +
 .../oasv/validation/api/ViolationMessages.java     |  34 ++
 .../factory/CallbackValidatorFactory.java          |  23 +
 .../factory/ComponentsValidatorFactory.java        |  23 +
 .../factory/EncodingValidatorFactory.java          |  23 +
 .../factory/ExampleValidatorFactory.java           |  23 +
 .../validation/factory/HeaderValidatorFactory.java |  23 +
 .../validation/factory/InfoValidatorFactory.java   |  23 +
 .../validation/factory/LinkValidatorFactory.java   |  23 +
 .../factory/MediaTypeValidatorFactory.java         |  23 +
 .../factory/OasObjectValidatorFactory.java         |  28 +
 .../factory/OasSpecValidatorFactory.java           |  24 +
 .../factory/OpenApiValidatorFactory.java           |  23 +
 .../factory/OperationValidatorFactory.java         |  23 +
 .../factory/ParameterValidatorFactory.java         |  23 +
 .../factory/PathItemValidatorFactory.java          |  23 +
 .../validation/factory/PathsValidatorFactory.java  |  23 +
 .../factory/RequestBodyValidatorFactory.java       |  23 +
 .../factory/ResponseValidatorFactory.java          |  23 +
 .../factory/ResponsesValidatorFactory.java         |  23 +
 .../validation/factory/SchemaValidatorFactory.java |  23 +
 .../factory/SecuritySchemeValidatorFactory.java    |  23 +
 .../validation/factory/ServerValidatorFactory.java |  23 +
 .../validation/factory/TagValidatorFactory.java    |  23 +
 .../ComponentsCallbacksKeysValidator.java          |  55 ++
 .../ComponentsCallbacksValuesValidator.java        |  59 +++
 .../ComponentsExamplesKeysValidator.java           |  53 ++
 .../ComponentsExamplesValuesValidator.java         |  57 ++
 .../components/ComponentsHeadersKeysValidator.java |  49 ++
 .../ComponentsHeadersValuesValidator.java          |  57 ++
 .../components/ComponentsLinksKeysValidator.java   |  49 ++
 .../components/ComponentsLinksValuesValidator.java |  59 +++
 .../ComponentsParametersKeysValidator.java         |  49 ++
 .../ComponentsParametersValuesValidator.java       |  57 ++
 .../ComponentsRequestBodiesKeysValidator.java      |  49 ++
 .../ComponentsRequestBodiesValuesValidator.java    |  57 ++
 .../ComponentsResponsesKeysValidator.java          |  49 ++
 .../ComponentsResponsesValuesValidator.java        |  57 ++
 .../components/ComponentsSchemasKeysValidator.java |  49 ++
 .../ComponentsSchemasValuesValidator.java          |  57 ++
 .../ComponentsSecuritySchemesKeysValidator.java    |  49 ++
 .../ComponentsSecuritySchemesValuesValidator.java  |  57 ++
 .../encoding/EncodingHeadersKeysValidator.java     |  55 ++
 .../encoding/EncodingHeadersValuesValidator.java   |  59 +++
 .../skeleton/header/HeaderSchemaValidator.java     |  60 +++
 .../mediatype/MediaTypeEncodingValidator.java      |  63 +++
 .../mediatype/MediaTypeSchemaValidator.java        |  62 +++
 .../openapi/OpenApiComponentsValidator.java        |  64 +++
 .../skeleton/openapi/OpenApiInfoValidator.java     |  60 +++
 .../skeleton/openapi/OpenApiPathsValidator.java    |  63 +++
 .../skeleton/openapi/OpenApiServersValidator.java  |  62 +++
 .../skeleton/openapi/OpenApiTagsValidator.java     |  62 +++
 .../operation/OperationParametersValidator.java    |  62 +++
 .../operation/OperationRequestBodyValidator.java   |  63 +++
 .../operation/OperationResponsesValidator.java     |  62 +++
 .../parameter/ParameterContentValidator.java       |  63 +++
 .../parameter/ParameterSchemaValidator.java        |  63 +++
 .../pathitem/PathItemOperationsValidator.java      |  67 +++
 .../pathitem/PathItemParametersValidator.java      |  62 +++
 .../skeleton/paths/PathsPathItemsValidator.java    |  61 +++
 .../requestbody/RequestBodyContentValidator.java   |  64 +++
 .../response/ResponseContentValidator.java         |  63 +++
 .../response/ResponseHeadersKeysValidator.java     |  55 ++
 .../response/ResponseHeadersValuesValidator.java   |  59 +++
 .../responses/ResponsesResponsesValidator.java     |  62 +++
 .../schema/SchemaPropertiesKeysValidator.java      |  71 +++
 .../schema/SchemaRecursiveValidatorTemplate.java   | 127 +++++
 .../validation/util/OasObjectValidatorUtils.java   | 169 ++++++
 .../oasv/common/OasObjectPropertyLocationTest.java |  33 ++
 .../toolkit/oasv/util/StringCaseUtilsTest.java     | 174 ++++++
 .../toolkit/oasv/util/SyntaxCheckerTest.java       |  50 ++
 .../servicecomb/toolkit/oasv/util/syntax-bad.yaml  |  48 ++
 .../servicecomb/toolkit/oasv/util/syntax-good.yaml |  48 ++
 {core => oas-validator/oas-validator-test}/pom.xml |  42 +-
 .../servicecomb/toolkit/oasv/OasSpecLoader.java    |  64 +++
 .../test/OasDiffValidatorTestBase.java             |  80 +++
 .../oasv/validation/test/OasValidatorTestBase.java |  52 ++
 oas-validator/oas-validator-web/pom.xml            | 131 +++++
 .../servicecomb/toolkit/oasv/web/Application.java  |  48 ++
 .../api/controller/CompatibilityController.java    | 110 ++++
 .../web/api/controller/ComplianceController.java   | 106 ++++
 .../oasv/web/api/controller/ImportError.java       |  84 +++
 .../oasv/web/api/controller/ImportError2.java      |  74 +++
 .../oasv/web/page/controller/EditorController.java |  36 ++
 .../oasv/web/page/controller/IndexController.java  |  34 ++
 .../web/page/controller/ValidatorController.java   |  52 ++
 .../oasv/web/page/controller/ViewerController.java |  36 ++
 .../src/main/resources/application.properties      |  30 ++
 .../resources/samples/petstore-openapi-wrong.yaml  | 125 +++++
 .../src/main/resources/static/doc/validator.html   | 587 +++++++++++++++++++++
 .../src/main/resources/templates/index.html        |  77 +++
 .../templates/validator/compatibility.html         | 181 +++++++
 .../resources/templates/validator/compliance.html  | 164 ++++++
 oas-validator/pom.xml                              | 120 +++++
 pom.xml                                            |  44 ++
 .../GoodbyeService/pom.xml                         |   0
 .../generate-from-code-sample/HelloService/pom.xml |   0
 samples/generate-from-code-sample/pom.xml          |   0
 samples/generate-from-contract-sample/pom.xml      |   0
 samples/pom.xml                                    |   0
 .../GreetingService/pom.xml                        |   0
 samples/verify-with-code-sample/pom.xml            |   0
 toolkit-distribution/pom.xml                       |   0
 toolkit-distribution/src/release/LICENSE           | 195 ++++++-
 toolkit-distribution/src/release/NOTICE            |   0
 .../src/release/licenses/LICENSE-asm               |  27 +
 .../src/release/licenses/LICENSE-cal10n            |   0
 .../src/release/licenses/LICENSE-cc0               |  27 +
 .../src/release/licenses/LICENSE-cddl              |   0
 .../src/release/licenses/LICENSE-commonmark        |   0
 .../src/release/licenses/LICENSE-epl-v10           |   0
 .../src/release/licenses/LICENSE-hamcrest          |   0
 .../src/release/licenses/LICENSE-jopt              |  22 +
 .../src/release/licenses/LICENSE-lombok            |  19 +
 .../src/release/licenses/LICENSE-mit               |  21 +
 .../src/release/licenses/LICENSE-mockito           |  21 +
 .../src/release/licenses/LICENSE-mozilla-v20       |   0
 .../src/release/licenses/LICENSE-slf4j             |   0
 .../src/release/licenses/LICENSE-webjars           |  21 +
 .../release/licenses/LICENSE-woodstox-stax2-api    |   0
 .../src/release/licenses/NOTICE-airline            |   0
 .../src/release/licenses/NOTICE-apache-commons-cli |   0
 .../release/licenses/NOTICE-apache-commons-codec   |   0
 .../licenses/NOTICE-servicecomb-java-chassis       |   0
 toolkit-maven-plugin/pom.xml                       |   0
 .../demo-multi-module/first-module/pom.xml         |   0
 .../src/test/projects/demo-multi-module/pom.xml    |   0
 .../src/test/projects/demo-with-contract/pom.xml   |   0
 .../test/projects/demo-without-contract/pom.xml    |   0
 746 files changed, 41382 insertions(+), 233 deletions(-)
 mode change 100755 => 100644 LICENSE
 mode change 100755 => 100644 README-ZH.md
 mode change 100755 => 100644 README.md
 mode change 100755 => 100644 cli/pom.xml
 create mode 100644 cli/src/main/java/org/apache/servicecomb/toolkit/cli/CheckCompatibility.java
 create mode 100644 cli/src/main/java/org/apache/servicecomb/toolkit/cli/CheckCompatibilityAbbr.java
 create mode 100644 cli/src/main/java/org/apache/servicecomb/toolkit/cli/CheckCompatibilityBase.java
 create mode 100644 cli/src/main/java/org/apache/servicecomb/toolkit/cli/CheckStyle.java
 create mode 100644 cli/src/main/java/org/apache/servicecomb/toolkit/cli/CheckStyleAbbr.java
 create mode 100644 cli/src/main/java/org/apache/servicecomb/toolkit/cli/CheckStyleBase.java
 create mode 100755 cli/src/test/resources/oas/compatibility-left.yaml
 create mode 100755 cli/src/test/resources/oas/compatibility-right.yaml
 create mode 100644 cli/src/test/resources/oas/style.yaml
 mode change 100755 => 100644 codegen/pom.xml
 mode change 100755 => 100644 common/pom.xml
 mode change 100755 => 100644 common/src/test/resources/projects/demo-with-correct-pom/pom.xml
 mode change 100755 => 100644 common/src/test/resources/projects/demo-with-invaild-pom/pom.xml
 mode change 100755 => 100644 contractgen/pom.xml
 mode change 100755 => 100644 contractgen/src/test/projects/demo/pom.xml
 mode change 100755 => 100644 core/pom.xml
 mode change 100755 => 100644 docgen/pom.xml
 mode change 100755 => 100644 integration-tests/coverage-aggregate/pom.xml
 mode change 100755 => 100644 integration-tests/pom.xml
 create mode 100755 oas-validator/.gitignore
 create mode 100755 oas-validator/README.md
 create mode 100755 oas-validator/doc/INSTALLATION.MD
 create mode 100755 oas-validator/doc/USAGE.MD
 create mode 100755 oas-validator/doc/compatibility-1.png
 create mode 100755 oas-validator/doc/compatibility-2.png
 create mode 100755 oas-validator/doc/compliance-1.png
 create mode 100755 oas-validator/doc/compliance-2.png
 copy {contractgen => oas-validator/oas-validator-compatibility-spring}/pom.xml (55%)
 mode change 100755 => 100644
 create mode 100755 oas-validator/oas-validator-compatibility-spring/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/config/EncodingDiffValidatorsConfiguration.java
 create mode 100755 oas-validator/oas-validator-compatibility-spring/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/config/HeaderDiffValidatorsConfiguration.java
 create mode 100755 oas-validator/oas-validator-compatibility-spring/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/config/MediaTypeDiffValidatorsConfiguration.java
 create mode 100755 oas-validator/oas-validator-compatibility-spring/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/config/OperationDiffValidatorsConfiguration.java
 create mode 100755 oas-validator/oas-validator-compatibility-spring/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/config/ParameterDiffValidatorsConfiguration.java
 create mode 100755 oas-validator/oas-validator-compatibility-spring/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/config/PathItemDiffValidatorsConfiguration.java
 create mode 100755 oas-validator/oas-validator-compatibility-spring/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/config/RequestBodyDiffValidatorsConfiguration.java
 create mode 100755 oas-validator/oas-validator-compatibility-spring/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/config/ResponseDiffValidatorsConfiguration.java
 create mode 100755 oas-validator/oas-validator-compatibility-spring/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/config/SchemaDiffValidatorsConfiguration.java
 create mode 100755 oas-validator/oas-validator-compatibility-spring/src/main/resources/META-INF/spring.factories
 create mode 100644 oas-validator/oas-validator-compatibility-spring/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/config/ValidatorConfigurationsTest.java
 copy common/src/test/resources/projects/demo-with-correct-pom/pom.xml => oas-validator/oas-validator-compatibility-spring/src/test/resources/logback-test.xml (67%)
 mode change 100755 => 100644
 copy {contractgen => oas-validator/oas-validator-compatibility}/pom.xml (55%)
 mode change 100755 => 100644
 create mode 100644 oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/CompatibilityCheckParser.java
 create mode 100644 oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultCallbackDiffValidatorFactory.java
 create mode 100644 oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultComponentsDiffValidatorFactory.java
 create mode 100644 oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultEncodingDiffValidatorFactory.java
 create mode 100644 oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultHeaderDiffValidatorFactory.java
 create mode 100644 oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultInfoDiffValidatorFactory.java
 create mode 100644 oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultLinkDiffValidatorFactory.java
 create mode 100644 oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultMediaTypeDiffValidatorFactory.java
 create mode 100644 oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultOasSpecDiffValidatorFactory.java
 create mode 100644 oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultOpenApiDiffValidatorFactory.java
 create mode 100644 oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultOperationDiffValidatorFactory.java
 create mode 100644 oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultParameterDiffValidatorFactory.java
 create mode 100644 oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultPathItemDiffValidatorFactory.java
 create mode 100644 oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultPathsDiffValidatorFactory.java
 create mode 100644 oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultRequestBodyDiffValidatorFactory.java
 create mode 100644 oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultResponseDiffValidatorFactory.java
 create mode 100644 oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultResponsesDiffValidatorFactory.java
 create mode 100644 oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultSchemaDiffValidatorFactory.java
 create mode 100644 oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultSecuritySchemeDiffValidatorFactory.java
 create mode 100644 oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultServerDiffValidatorFactory.java
 create mode 100644 oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultTagDiffValidatorFactory.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/encoding/EncodingAddNotAllowedDiffValidator.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/encoding/EncodingAllowedReservedChangeDiffValidator.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/encoding/EncodingContentTypeNotSameDiffValidator.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/encoding/EncodingDelNotAllowedDiffValidator.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/encoding/EncodingExplodeNotSameDiffValidator.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/encoding/EncodingStyleNotSameDiffValidator.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/header/HeaderAddInRequestBodyNotAllowedDiffValidator.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/header/HeaderDelInResponseNotAllowedDiffValidator.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/mediatype/MediaTypeAddInParameterNotAllowedDiffValidator.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/mediatype/MediaTypeDelInParameterNotAllowedDiffValidator.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/mediatype/MediaTypeDelInRequestBodyNotAllowedDiffValidator.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/mediatype/MediaTypeDelInResponseNotAllowedDiffValidator.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/operation/OperationDeleteNotAllowedDiffValidator.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/operation/OperationIdNotSameDiffValidator.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/parameter/ParameterAddDiffValidator.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/parameter/ParameterAllowEmptyValueChangeDiffValidator.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/parameter/ParameterAllowReservedChangeDiffValidator.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/parameter/ParameterExplodeNotSameDiffValidator.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/parameter/ParameterRequiredChangeDiffValidator.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/parameter/ParameterStyleNotSameDiffValidator.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/pathitem/PathItemDeleteNotAllowedDiffValidator.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/requestbody/RequestBodyRequiredChangeDiffValidator.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/response/ResponseAddNotAllowedDiffValidator.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/SchemaDiscriminatorChangeValidator.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/SchemaPropertyChangeValidator.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/SchemaReadOnlyChangeValidator.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/SchemaTypeFormatChangeValidator.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/SchemaWriteOnlyChangeValidator.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/SchemaXmlChangeValidator.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/TypeFormat.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaEnumChangeInRequestValidator.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaExclusiveMaximumChangeInRequestValidator.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaExclusiveMinimumChangeInRequestValidator.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaMaxItemsChangeInRequestValidator.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaMaxLengthChangeInRequestValidator.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaMaxPropertiesChangeInRequestValidator.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaMaximumChangeInRequestValidator.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaMinItemsChangeInRequestValidator.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaMinLengthChangeInRequestValidator.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaMinPropertiesChangeInRequestValidator.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaMinimumChangeInRequestValidator.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaMultipleOfChangeInRequestValidator.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaNullableChangeInRequestValidator.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaRequiredChangeInRequestValidator.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaTypeFormatChangeInRequestValidator.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaUniqueItemsChangeInRequestValidator.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaEnumChangeInResponseValidator.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaExclusiveMaximumChangeInResponseValidator.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaExclusiveMinimumChangeInResponseValidator.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaMaxItemsChangeInResponseValidator.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaMaxLengthChangeInResponseValidator.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaMaxPropertiesChangeInResponseValidator.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaMaximumChangeInResponseValidator.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaMinItemsChangeInResponseValidator.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaMinLengthChangeInResponseValidator.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaMinPropertiesChangeInResponseValidator.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaMinimumChangeInResponseValidator.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaMultipleOfChangeInResponseValidator.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaNullableChangeInResponseValidator.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaRequiredChangeInResponseValidator.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaTypeFormatChangeInResponseValidator.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaUniqueItemsChangeInResponseValidator.java
 create mode 100644 oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/CompatibilityCheckParserTest.java
 create mode 100644 oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultCallbackDiffValidatorFactoryTest.java
 create mode 100644 oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultComponentsDiffValidatorFactoryTest.java
 create mode 100644 oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultEncodingDiffValidatorFactoryTest.java
 create mode 100644 oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultInfoDiffValidatorFactoryTest.java
 create mode 100644 oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultLinkDiffValidatorFactoryTest.java
 create mode 100644 oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultMediaTypeDiffValidatorFactoryTest.java
 create mode 100644 oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultOasSpecDiffValidatorFactoryTest.java
 create mode 100644 oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultOpenApiDiffValidatorFactoryTest.java
 create mode 100644 oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultOperationDiffValidatorFactoryTest.java
 create mode 100644 oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultParameterDiffValidatorFactoryTest.java
 create mode 100644 oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultPathItemDiffValidatorFactoryTest.java
 create mode 100644 oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultPathsDiffValidatorFactoryTest.java
 create mode 100644 oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultRequestBodyDiffValidatorFactoryTest.java
 create mode 100644 oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultResponseDiffValidatorFactoryTest.java
 create mode 100644 oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultResponsesDiffValidatorFactoryTest.java
 create mode 100644 oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultSchemaDiffValidatorFactoryTest.java
 create mode 100644 oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultSecuritySchemeDiffValidatorFactoryTest.java
 create mode 100644 oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultServerDiffValidatorFactoryTest.java
 create mode 100644 oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultTagDiffValidatorFactoryTest.java
 create mode 100644 oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DiffValidatorFactoryTestConfiguration.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/OasCompatibilityTestBase.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/encoding/EncodingAddNotAllowedDiffValidatorTest.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/encoding/EncodingAllowedReservedChangeDiffValidatorTest.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/encoding/EncodingContentTypeNotSameDiffValidatorTest.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/encoding/EncodingDelNotAllowedDiffValidatorTest.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/encoding/EncodingExplodeNotSameDiffValidatorTest.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/encoding/EncodingStyleNotSameDiffValidatorTest.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/header/HeaderAddInRequestBodyNotAllowedDiffValidatorTest.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/header/HeaderDelInResponseNotAllowedDiffValidatorTest.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/mediatype/MediaTypeAddInParameterNotAllowedDiffValidatorTest.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/mediatype/MediaTypeDelInParameterNotAllowedDiffValidatorTest.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/mediatype/MediaTypeDelInRequestBodyNotAllowedDiffValidatorTest.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/mediatype/MediaTypeDelInResponseNotAllowedDiffValidatorTest.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/operation/OperationDeleteNotAllowedDiffValidatorTest.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/operation/OperationIdNotSameDiffValidatorTest.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/parameter/ParameterAddDiffValidatorTest.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/parameter/ParameterAllowEmptyValueChangeDiffValidatorTest.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/parameter/ParameterAllowReservedChangeDiffValidatorTest.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/parameter/ParameterExplodeNotSameDiffValidatorTest.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/parameter/ParameterRequiredChangeDiffValidatorTest.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/parameter/ParameterStyleNotSameDiffValidatorTest.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/pathitem/PathItemDeleteNotAllowedDiffValidatorTest.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/requestbody/RequestBodyRequiredChangeDiffValidatorTest.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/response/ResponseAddNotAllowedDiffValidatorTest.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/SchemaDiscriminatorChangeValidatorTest.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/SchemaReadOnlyChangeValidatorTest.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/SchemaWriteOnlyChangeValidatorTest.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/SchemaXmlChangeValidatorTest.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaEnumChangeInRequestValidatorTest.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaExclusiveMaximumChangeInRequestValidatorTest.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaExclusiveMinimumChangeInRequestValidatorTest.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaMaxItemsChangeInRequestValidatorTest.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaMaxLengthChangeInRequestValidatorTest.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaMaxPropertiesChangeInRequestValidatorTest.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaMaximumChangeInRequestValidatorTest.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaMinItemsChangeInRequestValidatorTest.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaMinLengthChangeInRequestValidatorTest.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaMinPropertiesChangeInRequestValidatorTest.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaMinimumChangeInRequestValidatorTest.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaMultipleOfChangeInRequestValidatorTest.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaNullableChangeInRequestValidatorTest.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaRequiredChangeInRequestValidatorTest.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaTypeFormatChangeInRequestValidatorTest.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaUniqueItemsChangeInRequestValidatorTest.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaEnumChangeInResponseValidatorTest.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaExclusiveMaximumChangeInResponseValidatorTest.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaExclusiveMinimumChangeInResponseValidatorTest.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaMaxItemsChangeInResponseValidatorTest.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaMaxLengthChangeInResponseValidatorTest.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaMaxPropertiesChangeInResponseValidatorTest.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaMaximumChangeInResponseValidatorTest.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaMinItemsChangeInResponseValidatorTest.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaMinLengthChangeInResponseValidatorTest.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaMinPropertiesChangeInResponseValidatorTest.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaMinimumChangeInResponseValidatorTest.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaMultipleOfChangeInResponseValidatorTest.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaNullableChangeInResponseValidatorTest.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaRequiredChangeInResponseValidatorTest.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaTypeFormatChangeInResponseValidatorTest.java
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaUniqueItemsChangeInResponseValidatorTest.java
 copy common/src/test/resources/projects/demo-with-correct-pom/pom.xml => oas-validator/oas-validator-compatibility/src/test/resources/logback-test.xml (67%)
 mode change 100755 => 100644
 create mode 100644 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/parser-test.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/encoding/petstore-encoding-add-a.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/encoding/petstore-encoding-add-b.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/encoding/petstore-encoding-allow-reserved-a.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/encoding/petstore-encoding-allow-reserved-b.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/encoding/petstore-encoding-content-type-a.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/encoding/petstore-encoding-content-type-b.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/encoding/petstore-encoding-del-a.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/encoding/petstore-encoding-del-b.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/encoding/petstore-encoding-explode-a.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/encoding/petstore-encoding-explode-b.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/encoding/petstore-encoding-style-a.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/encoding/petstore-encoding-style-b.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/header/petstore-header-add-in-request-body-a.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/header/petstore-header-add-in-request-body-b.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/header/petstore-header-del-in-response-a.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/header/petstore-header-del-in-response-b.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/mediatype/petstore-media-type-add-in-parameter-a.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/mediatype/petstore-media-type-add-in-parameter-b.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/mediatype/petstore-media-type-del-in-parameter-a.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/mediatype/petstore-media-type-del-in-parameter-b.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/mediatype/petstore-media-type-del-in-request-body-a.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/mediatype/petstore-media-type-del-in-request-body-b.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/mediatype/petstore-media-type-del-in-response-a.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/mediatype/petstore-media-type-del-in-response-b.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/operation/petstore-operation-delete-a.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/operation/petstore-operation-delete-b.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/operation/petstore-operation-id-a.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/operation/petstore-operation-id-b.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/parameter/petstore-parameter-add-a.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/parameter/petstore-parameter-add-b.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/parameter/petstore-parameter-allow-empty-value-a.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/parameter/petstore-parameter-allow-empty-value-b.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/parameter/petstore-parameter-allow-reserved-a.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/parameter/petstore-parameter-allow-reserved-b.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/parameter/petstore-parameter-explode-a.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/parameter/petstore-parameter-explode-b.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/parameter/petstore-parameter-required-a.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/parameter/petstore-parameter-required-b.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/parameter/petstore-parameter-style-a.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/parameter/petstore-parameter-style-b.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/pathitem/petstore-path-item-delete-a.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/pathitem/petstore-path-item-delete-b.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/requestbody/petstore-request-body-required-a.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/requestbody/petstore-request-body-required-b.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/response/petstore-response-add-a.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/response/petstore-response-add-b.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/petstore-schema-discriminator-a.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/petstore-schema-discriminator-b.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/petstore-schema-read-only-a.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/petstore-schema-read-only-b.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/petstore-schema-write-only-a.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/petstore-schema-write-only-b.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/petstore-schema-xml-a.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/petstore-schema-xml-b.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/petstore-schema-enum-in-request-a.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/petstore-schema-enum-in-request-b.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/petstore-schema-exclusive-maximum-in-request-a.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/petstore-schema-exclusive-maximum-in-request-b.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/petstore-schema-exclusive-minimum-in-request-a.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/petstore-schema-exclusive-minimum-in-request-b.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/petstore-schema-max-items-in-request-a.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/petstore-schema-max-items-in-request-b.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/petstore-schema-max-length-in-request-a.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/petstore-schema-max-length-in-request-b.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/petstore-schema-max-properties-in-request-a.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/petstore-schema-max-properties-in-request-b.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/petstore-schema-maximum-in-request-a.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/petstore-schema-maximum-in-request-b.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/petstore-schema-min-items-in-request-a.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/petstore-schema-min-items-in-request-b.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/petstore-schema-min-length-in-request-a.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/petstore-schema-min-length-in-request-b.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/petstore-schema-min-properties-in-request-a.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/petstore-schema-min-properties-in-request-b.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/petstore-schema-minimum-in-request-a.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/petstore-schema-minimum-in-request-b.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/petstore-schema-multiple-of-in-request-a.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/petstore-schema-multiple-of-in-request-b.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/petstore-schema-nullable-in-request-a.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/petstore-schema-nullable-in-request-b.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/petstore-schema-required-in-request-a.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/petstore-schema-required-in-request-b.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/petstore-schema-type-format-in-request-a.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/petstore-schema-type-format-in-request-b.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/petstore-schema-unique-items-in-request-a.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/petstore-schema-unique-items-in-request-b.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/petstore-schema-enum-in-response-a.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/petstore-schema-enum-in-response-b.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/petstore-schema-exclusive-maximum-in-response-a.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/petstore-schema-exclusive-maximum-in-response-b.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/petstore-schema-exclusive-minimum-in-response-a.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/petstore-schema-exclusive-minimum-in-response-b.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/petstore-schema-max-items-in-response-a.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/petstore-schema-max-items-in-response-b.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/petstore-schema-max-length-in-response-a.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/petstore-schema-max-length-in-response-b.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/petstore-schema-max-properties-in-response-a.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/petstore-schema-max-properties-in-response-b.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/petstore-schema-maximum-in-response-a.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/petstore-schema-maximum-in-response-b.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/petstore-schema-min-items-in-response-a.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/petstore-schema-min-items-in-response-b.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/petstore-schema-min-length-in-response-a.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/petstore-schema-min-length-in-response-b.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/petstore-schema-min-properties-in-response-a.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/petstore-schema-min-properties-in-response-b.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/petstore-schema-minimum-in-response-a.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/petstore-schema-minimum-in-response-b.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/petstore-schema-multiple-of-in-response-a.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/petstore-schema-multiple-of-in-response-b.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/petstore-schema-nullable-in-response-a.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/petstore-schema-nullable-in-response-b.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/petstore-schema-required-in-response-a.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/petstore-schema-required-in-response-b.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/petstore-schema-type-format-in-response-a.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/petstore-schema-type-format-in-response-b.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/petstore-schema-unique-items-in-response-a.yaml
 create mode 100755 oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/petstore-schema-unique-items-in-response-b.yaml
 copy {contractgen => oas-validator/oas-validator-compliance-spring}/pom.xml (55%)
 mode change 100755 => 100644
 create mode 100755 oas-validator/oas-validator-compliance-spring/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/config/ComponentsValidatorConfiguration.java
 create mode 100755 oas-validator/oas-validator-compliance-spring/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/config/EncodingValidatorConfiguration.java
 create mode 100755 oas-validator/oas-validator-compliance-spring/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/config/HeaderValidatorConfiguration.java
 create mode 100755 oas-validator/oas-validator-compliance-spring/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/config/InfoValidatorConfiguration.java
 create mode 100755 oas-validator/oas-validator-compliance-spring/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/config/OpenApiValidatorConfiguration.java
 create mode 100755 oas-validator/oas-validator-compliance-spring/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/config/OperationValidatorConfiguration.java
 create mode 100755 oas-validator/oas-validator-compliance-spring/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/config/ParameterValidatorConfiguration.java
 create mode 100755 oas-validator/oas-validator-compliance-spring/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/config/PathsValidatorConfiguration.java
 create mode 100755 oas-validator/oas-validator-compliance-spring/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/config/RequestBodyValidatorConfiguration.java
 create mode 100755 oas-validator/oas-validator-compliance-spring/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/config/ResponseValidatorConfiguration.java
 create mode 100755 oas-validator/oas-validator-compliance-spring/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/config/SchemaValidatorConfiguration.java
 create mode 100755 oas-validator/oas-validator-compliance-spring/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/config/TagValidatorConfiguration.java
 create mode 100755 oas-validator/oas-validator-compliance-spring/src/main/resources/META-INF/spring.factories
 create mode 100644 oas-validator/oas-validator-compliance-spring/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/config/ValidatorConfigurationsTest.java
 copy common/src/test/resources/projects/demo-with-correct-pom/pom.xml => oas-validator/oas-validator-compliance-spring/src/test/resources/logback-test.xml (67%)
 mode change 100755 => 100644
 copy {contractgen => oas-validator/oas-validator-compliance}/pom.xml (52%)
 mode change 100755 => 100644
 create mode 100644 oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/ComplianceCheckParser.java
 create mode 100644 oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultComponentsValidatorFactory.java
 create mode 100644 oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultEncodingValidatorFactory.java
 create mode 100644 oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultHeaderValidatorFactory.java
 create mode 100644 oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultInfoValidatorFactory.java
 create mode 100644 oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultMediaTypeValidatorFactory.java
 create mode 100644 oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultOasSpecValidatorFactory.java
 create mode 100644 oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultOpenApiValidatorFactory.java
 create mode 100644 oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultOperationValidatorFactory.java
 create mode 100644 oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultParameterValidatorFactory.java
 create mode 100644 oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultPathItemValidatorFactory.java
 create mode 100644 oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultPathsValidatorFactory.java
 create mode 100644 oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultRequestBodyValidatorFactory.java
 create mode 100644 oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultResponseValidatorFactory.java
 create mode 100644 oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultResponsesValidatorFactory.java
 create mode 100644 oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultSchemaValidatorFactory.java
 create mode 100644 oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultSecuritySchemeValidatorFactory.java
 create mode 100644 oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultServerValidatorFactory.java
 create mode 100644 oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultTagValidatorFactory.java
 create mode 100755 oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/components/ComponentsKeysValidators.java
 create mode 100755 oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/encoding/EncodingKeysValidators.java
 create mode 100755 oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/header/HeaderDescriptionRequiredValidator.java
 create mode 100755 oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/info/InfoDescriptionRequiredValidator.java
 create mode 100755 oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/openapi/OpenApiSecurityEmptyValidator.java
 create mode 100755 oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/openapi/OpenApiTagNotEmptyValidator.java
 create mode 100755 oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/openapi/OpenApiVersionValidator.java
 create mode 100755 oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/operation/OperationIdLowerCamelCaseValidator.java
 create mode 100755 oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/operation/OperationServersEmptyValidator.java
 create mode 100755 oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/operation/OperationSummaryRequiredValidator.java
 create mode 100755 oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/operation/OperationTagsOnlyOneValidator.java
 create mode 100755 oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/operation/OperationTagsReferenceValidator.java
 create mode 100755 oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/parameter/ParameterCookieLowerCamelCaseValidator.java
 create mode 100755 oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/parameter/ParameterDescriptionRequiredValidator.java
 create mode 100755 oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/parameter/ParameterHeaderUpperHyphenCaseValidator.java
 create mode 100755 oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/parameter/ParameterPathLowerCamelCaseValidator.java
 create mode 100755 oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/parameter/ParameterQueryLowerCamelCaseValidator.java
 create mode 100755 oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/paths/PathsLowerCamelCaseValidator.java
 create mode 100755 oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/requestbody/RequestBodyDescriptionRequiredValidator.java
 create mode 100755 oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/response/ResponseKeysValidators.java
 create mode 100755 oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/schema/SchemaKeysValidators.java
 create mode 100755 oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/schema/SchemaTitleValidator.java
 create mode 100755 oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/tag/TagDescriptionRequiredValidator.java
 create mode 100755 oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/tag/TagNameUpperCamelCaseValidator.java
 create mode 100755 oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/tag/TagReferenceValidator.java
 create mode 100644 oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/ComplianceCheckParserTest.java
 create mode 100644 oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultComponentsValidatorFactoryTest.java
 create mode 100644 oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultEncodingValidatorFactoryTest.java
 create mode 100644 oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultHeaderValidatorFactoryTest.java
 create mode 100644 oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultInfoValidatorFactoryTest.java
 create mode 100644 oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultMediaTypeValidatorFactoryTest.java
 create mode 100644 oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultOasSpecValidatorFactoryTest.java
 create mode 100644 oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultOpenApiValidatorFactoryTest.java
 create mode 100644 oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultOperationValidatorFactoryTest.java
 create mode 100644 oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultParameterValidatorFactoryTest.java
 create mode 100644 oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultPathItemValidatorFactoryTest.java
 create mode 100644 oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultPathsValidatorFactoryTest.java
 create mode 100644 oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultRequestBodyValidatorFactoryTest.java
 create mode 100644 oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultResponseValidatorFactoryTest.java
 create mode 100644 oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultResponsesValidatorFactoryTest.java
 create mode 100644 oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultSchemaValidatorFactoryTest.java
 create mode 100644 oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultSecuritySchemeValidatorFactoryTest.java
 create mode 100644 oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultServerValidatorFactoryTest.java
 create mode 100644 oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultTagValidatorFactoryTest.java
 create mode 100644 oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/ValidatorFactoryTestConfiguration.java
 create mode 100755 oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/OasComplianceTestBase.java
 create mode 100755 oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/components/ComponentsCallbacksUpperCamelCaseValidatorTest.java
 create mode 100755 oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/components/ComponentsExamplesUpperCamelCaseValidatorTest.java
 create mode 100755 oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/components/ComponentsHeadersUpperCamelCaseValidatorTest.java
 create mode 100755 oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/components/ComponentsLinksUpperCamelCaseValidatorTest.java
 create mode 100755 oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/components/ComponentsParametersUpperCamelCaseValidatorTest.java
 create mode 100755 oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/components/ComponentsRequestBodiesUpperCamelCaseValidatorTest.java
 create mode 100755 oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/components/ComponentsResponsesUpperCamelCaseValidatorTest.java
 create mode 100755 oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/components/ComponentsSchemasUpperCamelCaseValidatorTest.java
 create mode 100755 oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/header/HeaderDescriptionRequiredValidatorTest.java
 create mode 100755 oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/info/InfoDescriptionRequiredValidatorTest.java
 create mode 100755 oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/openapi/OpenApiSecurityEmptyValidatorTest.java
 create mode 100755 oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/openapi/OpenApiTagsSizeValidatorTest.java
 create mode 100755 oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/openapi/OpenApiVersionValidatorTest.java
 create mode 100755 oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/operation/OperationIdLowerCamelCaseValidatorTest.java
 create mode 100755 oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/operation/OperationServersEmptyValidatorTest.java
 create mode 100755 oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/operation/OperationSummaryRequiredValidatorTest.java
 create mode 100755 oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/operation/OperationTagsOnlyOneValidatorTest.java
 create mode 100755 oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/operation/OperationTagsReferenceValidatorTest.java
 create mode 100755 oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/parameter/ParameterCookieLowerCamelCaseValidatorTest.java
 create mode 100755 oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/parameter/ParameterDescriptionRequiredValidatorTest.java
 create mode 100755 oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/parameter/ParameterHeaderUpperHyphenCaseValidatorTest.java
 create mode 100755 oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/parameter/ParameterPathLowerCamelCaseValidatorTest.java
 create mode 100755 oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/parameter/ParameterQueryLowerCamelCaseValidatorTest.java
 create mode 100755 oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/paths/PathsLowerCamelCaseValidatorTest.java
 create mode 100755 oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/requestbody/RequestBodyDescriptionRequiredValidatorTest.java
 create mode 100755 oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/schema/SchemaPropertiesKeysLowerCamelCaseValidatorTest.java
 create mode 100755 oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/schema/SchemaTitleValidatorTest.java
 create mode 100755 oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/tag/TagDescriptionRequiredValidatorTest.java
 create mode 100755 oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/tag/TagNameUpperCamelCaseValidatorTest.java
 create mode 100755 oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/tag/TagReferenceValidatorTest.java
 copy common/src/test/resources/projects/demo-with-correct-pom/pom.xml => oas-validator/oas-validator-compliance/src/test/resources/logback-test.xml (67%)
 mode change 100755 => 100644
 create mode 100644 oas-validator/oas-validator-compliance/src/test/resources/org/apache/servicecomb/toolkit/oasv/compliance/parser-test.yaml
 create mode 100755 oas-validator/oas-validator-compliance/src/test/resources/org/apache/servicecomb/toolkit/oasv/compliance/validator/components/petstore-callbacks-upper-camel-case.yaml
 create mode 100755 oas-validator/oas-validator-compliance/src/test/resources/org/apache/servicecomb/toolkit/oasv/compliance/validator/components/petstore-examples-upper-camel-case.yaml
 create mode 100755 oas-validator/oas-validator-compliance/src/test/resources/org/apache/servicecomb/toolkit/oasv/compliance/validator/components/petstore-headers-upper-camel-case.yaml
 create mode 100755 oas-validator/oas-validator-compliance/src/test/resources/org/apache/servicecomb/toolkit/oasv/compliance/validator/components/petstore-links-upper-camel-case.yaml
 create mode 100755 oas-validator/oas-validator-compliance/src/test/resources/org/apache/servicecomb/toolkit/oasv/compliance/validator/components/petstore-parameters-upper-camel-case.yaml
 create mode 100755 oas-validator/oas-validator-compliance/src/test/resources/org/apache/servicecomb/toolkit/oasv/compliance/validator/components/petstore-request-bodies-upper-camel-case.yaml
 create mode 100755 oas-validator/oas-validator-compliance/src/test/resources/org/apache/servicecomb/toolkit/oasv/compliance/validator/components/petstore-responses-upper-camel-case.yaml
 create mode 100755 oas-validator/oas-validator-compliance/src/test/resources/org/apache/servicecomb/toolkit/oasv/compliance/validator/components/petstore-schemas-upper-camel-case.yaml
 create mode 100755 oas-validator/oas-validator-compliance/src/test/resources/org/apache/servicecomb/toolkit/oasv/compliance/validator/header/petstore-header-no-desc.yaml
 create mode 100755 oas-validator/oas-validator-compliance/src/test/resources/org/apache/servicecomb/toolkit/oasv/compliance/validator/info/petstore-info-no-desc.yaml
 create mode 100755 oas-validator/oas-validator-compliance/src/test/resources/org/apache/servicecomb/toolkit/oasv/compliance/validator/openapi/petstore-openapi-wrong.yaml
 create mode 100755 oas-validator/oas-validator-compliance/src/test/resources/org/apache/servicecomb/toolkit/oasv/compliance/validator/openapi/petstore-security-empty-good.yaml
 create mode 100755 oas-validator/oas-validator-compliance/src/test/resources/org/apache/servicecomb/toolkit/oasv/compliance/validator/openapi/petstore-security-empty.yaml
 create mode 100755 oas-validator/oas-validator-compliance/src/test/resources/org/apache/servicecomb/toolkit/oasv/compliance/validator/openapi/petstore-tag-not-provided.yaml
 create mode 100755 oas-validator/oas-validator-compliance/src/test/resources/org/apache/servicecomb/toolkit/oasv/compliance/validator/operation/petstore-operation-id-lower-camel-case.yaml
 create mode 100755 oas-validator/oas-validator-compliance/src/test/resources/org/apache/servicecomb/toolkit/oasv/compliance/validator/operation/petstore-operation-servers-empty.yaml
 create mode 100755 oas-validator/oas-validator-compliance/src/test/resources/org/apache/servicecomb/toolkit/oasv/compliance/validator/operation/petstore-operation-summary-required.yaml
 create mode 100755 oas-validator/oas-validator-compliance/src/test/resources/org/apache/servicecomb/toolkit/oasv/compliance/validator/operation/petstore-operation-tags-only-one.yaml
 create mode 100755 oas-validator/oas-validator-compliance/src/test/resources/org/apache/servicecomb/toolkit/oasv/compliance/validator/operation/petstore-operation-tags-reference.yaml
 create mode 100755 oas-validator/oas-validator-compliance/src/test/resources/org/apache/servicecomb/toolkit/oasv/compliance/validator/parameter/petstore-parameter-cookie-lower-camel-case.yaml
 create mode 100755 oas-validator/oas-validator-compliance/src/test/resources/org/apache/servicecomb/toolkit/oasv/compliance/validator/parameter/petstore-parameter-desc-none.yaml
 create mode 100755 oas-validator/oas-validator-compliance/src/test/resources/org/apache/servicecomb/toolkit/oasv/compliance/validator/parameter/petstore-parameter-header-upper-hyphen-case.yaml
 create mode 100755 oas-validator/oas-validator-compliance/src/test/resources/org/apache/servicecomb/toolkit/oasv/compliance/validator/parameter/petstore-parameter-path-lower-camel-case.yaml
 create mode 100755 oas-validator/oas-validator-compliance/src/test/resources/org/apache/servicecomb/toolkit/oasv/compliance/validator/parameter/petstore-parameter-query-lower-camel-case.yaml
 create mode 100755 oas-validator/oas-validator-compliance/src/test/resources/org/apache/servicecomb/toolkit/oasv/compliance/validator/paths/petstore-paths-lower-camel-case.yaml
 create mode 100755 oas-validator/oas-validator-compliance/src/test/resources/org/apache/servicecomb/toolkit/oasv/compliance/validator/requestbody/petstore-request-body-desc-required.yaml
 create mode 100755 oas-validator/oas-validator-compliance/src/test/resources/org/apache/servicecomb/toolkit/oasv/compliance/validator/schema/petstore-schema-p-keys-lower-camel-case-all-of.yaml
 create mode 100755 oas-validator/oas-validator-compliance/src/test/resources/org/apache/servicecomb/toolkit/oasv/compliance/validator/schema/petstore-schema-p-keys-lower-camel-case-any-of.yaml
 create mode 100755 oas-validator/oas-validator-compliance/src/test/resources/org/apache/servicecomb/toolkit/oasv/compliance/validator/schema/petstore-schema-p-keys-lower-camel-case-array.yaml
 create mode 100755 oas-validator/oas-validator-compliance/src/test/resources/org/apache/servicecomb/toolkit/oasv/compliance/validator/schema/petstore-schema-p-keys-lower-camel-case-comp.yaml
 create mode 100755 oas-validator/oas-validator-compliance/src/test/resources/org/apache/servicecomb/toolkit/oasv/compliance/validator/schema/petstore-schema-p-keys-lower-camel-case-nested.yaml
 create mode 100755 oas-validator/oas-validator-compliance/src/test/resources/org/apache/servicecomb/toolkit/oasv/compliance/validator/schema/petstore-schema-p-keys-lower-camel-case-one-of.yaml
 create mode 100755 oas-validator/oas-validator-compliance/src/test/resources/org/apache/servicecomb/toolkit/oasv/compliance/validator/schema/petstore-schema-p-keys-lower-camel-case-param-1.yaml
 create mode 100755 oas-validator/oas-validator-compliance/src/test/resources/org/apache/servicecomb/toolkit/oasv/compliance/validator/schema/petstore-schema-p-keys-lower-camel-case-param-2.yaml
 create mode 100755 oas-validator/oas-validator-compliance/src/test/resources/org/apache/servicecomb/toolkit/oasv/compliance/validator/schema/petstore-schema-p-keys-lower-camel-case-req-1.yaml
 create mode 100755 oas-validator/oas-validator-compliance/src/test/resources/org/apache/servicecomb/toolkit/oasv/compliance/validator/schema/petstore-schema-p-keys-lower-camel-case-req-2.yaml
 create mode 100755 oas-validator/oas-validator-compliance/src/test/resources/org/apache/servicecomb/toolkit/oasv/compliance/validator/schema/petstore-schema-p-keys-lower-camel-case-resp-1.yaml
 create mode 100755 oas-validator/oas-validator-compliance/src/test/resources/org/apache/servicecomb/toolkit/oasv/compliance/validator/schema/petstore-schema-p-keys-lower-camel-case-resp-2.yaml
 create mode 100755 oas-validator/oas-validator-compliance/src/test/resources/org/apache/servicecomb/toolkit/oasv/compliance/validator/schema/petstore-schema-title-comp.yaml
 create mode 100755 oas-validator/oas-validator-compliance/src/test/resources/org/apache/servicecomb/toolkit/oasv/compliance/validator/schema/petstore-schema-title-nested.yaml
 create mode 100755 oas-validator/oas-validator-compliance/src/test/resources/org/apache/servicecomb/toolkit/oasv/compliance/validator/schema/petstore-schema-title-param.yaml
 create mode 100755 oas-validator/oas-validator-compliance/src/test/resources/org/apache/servicecomb/toolkit/oasv/compliance/validator/schema/petstore-schema-title-req.yaml
 create mode 100755 oas-validator/oas-validator-compliance/src/test/resources/org/apache/servicecomb/toolkit/oasv/compliance/validator/schema/petstore-schema-title-resp.yaml
 create mode 100755 oas-validator/oas-validator-compliance/src/test/resources/org/apache/servicecomb/toolkit/oasv/compliance/validator/tag/petstore-tag-name-not-upper-camel-case.yaml
 create mode 100755 oas-validator/oas-validator-compliance/src/test/resources/org/apache/servicecomb/toolkit/oasv/compliance/validator/tag/petstore-tag-no-desc.yaml
 create mode 100755 oas-validator/oas-validator-compliance/src/test/resources/org/apache/servicecomb/toolkit/oasv/compliance/validator/tag/petstore-tag-redundant.yaml
 copy {contractgen/src/test/projects/demo => oas-validator/oas-validator-core-spring}/pom.xml (60%)
 mode change 100755 => 100644
 create mode 100755 oas-validator/oas-validator-core-spring/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/config/OasDiffValidatorsSkeletonConfiguration.java
 create mode 100755 oas-validator/oas-validator-core-spring/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/config/OasValidatorsSkeletonConfiguration.java
 create mode 100755 oas-validator/oas-validator-core-spring/src/main/resources/META-INF/spring.factories
 copy {contractgen => oas-validator/oas-validator-core}/pom.xml (53%)
 mode change 100755 => 100644
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/common/OasObjectProperty.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/common/OasObjectPropertyLocation.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/common/OasObjectType.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/api/CallbackDiffValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/api/ComponentsDiffValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/api/DefaultOasSpecDiffValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/api/DiffViolationMessages.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/api/EncodingDiffValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/api/HeaderDiffValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/api/InfoDiffValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/api/LinkDiffValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/api/ListPropertyDiffValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/api/MapPropertyDiffValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/api/MediaTypeDiffValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/api/OasDiffValidationContext.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/api/OasDiffValidationException.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/api/OasDiffViolation.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/api/OasObjectDiffValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/api/OasObjectDiffValidatorTemplate.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/api/OasSpecDiffValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/api/ObjectPropertyDiffValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/api/OpenApiDiffValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/api/OperationDiffValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/api/ParameterDiffValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/api/PathItemDiffValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/api/PathsDiffValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/api/RequestBodyDiffValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/api/ResponseDiffValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/api/ResponsesDiffValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/api/SchemaAddValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/api/SchemaCompareValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/api/SchemaDelValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/api/SchemaDiffValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/api/SecuritySchemeDiffValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/api/ServerDiffValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/api/TagDiffValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/CallbackDiffValidatorFactory.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/ComponentsDiffValidatorFactory.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/EncodingDiffValidatorFactory.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/HeaderDiffValidatorFactory.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/InfoDiffValidatorFactory.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/LinkDiffValidatorFactory.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/MediaTypeDiffValidatorFactory.java
 create mode 100644 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/OasObjectDiffValidatorFactory.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/OasSpecDiffValidatorFactory.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/OpenApiDiffValidatorFactory.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/OperationDiffValidatorFactory.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/ParameterDiffValidatorFactory.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/PathItemDiffValidatorFactory.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/PathsDiffValidatorFactory.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/RequestBodyDiffValidatorFactory.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/ResponseDiffValidatorFactory.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/ResponsesDiffValidatorFactory.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/SchemaDiffValidatorFactory.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/SecuritySchemeDiffValidatorFactory.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/ServerDiffValidatorFactory.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/TagDiffValidatorFactory.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/skeleton/components/ComponentsCallbacksDiffValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/skeleton/components/ComponentsHeadersDiffValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/skeleton/components/ComponentsLinksDiffValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/skeleton/components/ComponentsParametersDiffValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/skeleton/components/ComponentsRequestBodiesDiffValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/skeleton/components/ComponentsResponsesDiffValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/skeleton/encoding/EncodingHeadersDiffValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/skeleton/header/HeaderSchemaDiffValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/skeleton/mediatype/MediaTypeEncodingDiffValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/skeleton/mediatype/MediaTypeSchemaDiffValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/skeleton/openapi/OpenApiComponentsDiffValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/skeleton/openapi/OpenApiInfoDiffValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/skeleton/openapi/OpenApiPathsDiffValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/skeleton/openapi/OpenApiServersDiffValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/skeleton/openapi/OpenApiTagsDiffValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/skeleton/operation/OperationParametersDiffValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/skeleton/operation/OperationRequestBodyDiffValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/skeleton/operation/OperationResponsesDiffValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/skeleton/parameter/ParameterContentDiffValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/skeleton/parameter/ParameterSchemaDiffValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/skeleton/pathitem/PathItemOperationsDiffValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/skeleton/pathitem/PathItemParametersDiffValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/skeleton/paths/PathsPathItemsDiffValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/skeleton/requestbody/RequestBodyContentDiffValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/skeleton/response/ResponseContentDiffValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/skeleton/response/ResponseHeadersDiffValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/skeleton/responses/ResponsesResponsesDiffValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/skeleton/schema/SchemaDiffValidatorEngine.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/util/ChangeRangeCheckUtils.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/util/OasDiffValidationContextUtils.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/util/OasObjectDiffValidatorUtils.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/util/ParameterUtils.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/util/StringCaseUtils.java
 create mode 100644 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/util/SyntaxChecker.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/api/CallbackValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/api/ComponentsValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/api/DefaultOasSpecValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/api/EncodingValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/api/ExampleValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/api/HeaderValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/api/InfoValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/api/LinkValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/api/ListPropertyRequiredValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/api/ListPropertyValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/api/MapPropertyKeysValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/api/MapPropertyValuesValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/api/MediaTypeValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/api/OasObjectValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/api/OasSpecValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/api/OasValidationContext.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/api/OasViolation.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/api/ObjectPropertyRequiredValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/api/ObjectPropertyValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/api/OpenApiValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/api/OperationValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/api/ParameterValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/api/PathItemValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/api/PathsValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/api/RequestBodyValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/api/ResponseValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/api/ResponsesValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/api/SchemaValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/api/SecuritySchemeValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/api/ServerValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/api/TagValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/api/ViolationMessages.java
 create mode 100644 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/CallbackValidatorFactory.java
 create mode 100644 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/ComponentsValidatorFactory.java
 create mode 100644 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/EncodingValidatorFactory.java
 create mode 100644 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/ExampleValidatorFactory.java
 create mode 100644 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/HeaderValidatorFactory.java
 create mode 100644 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/InfoValidatorFactory.java
 create mode 100644 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/LinkValidatorFactory.java
 create mode 100644 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/MediaTypeValidatorFactory.java
 create mode 100644 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/OasObjectValidatorFactory.java
 create mode 100644 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/OasSpecValidatorFactory.java
 create mode 100644 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/OpenApiValidatorFactory.java
 create mode 100644 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/OperationValidatorFactory.java
 create mode 100644 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/ParameterValidatorFactory.java
 create mode 100644 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/PathItemValidatorFactory.java
 create mode 100644 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/PathsValidatorFactory.java
 create mode 100644 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/RequestBodyValidatorFactory.java
 create mode 100644 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/ResponseValidatorFactory.java
 create mode 100644 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/ResponsesValidatorFactory.java
 create mode 100644 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/SchemaValidatorFactory.java
 create mode 100644 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/SecuritySchemeValidatorFactory.java
 create mode 100644 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/ServerValidatorFactory.java
 create mode 100644 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/TagValidatorFactory.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/skeleton/components/ComponentsCallbacksKeysValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/skeleton/components/ComponentsCallbacksValuesValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/skeleton/components/ComponentsExamplesKeysValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/skeleton/components/ComponentsExamplesValuesValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/skeleton/components/ComponentsHeadersKeysValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/skeleton/components/ComponentsHeadersValuesValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/skeleton/components/ComponentsLinksKeysValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/skeleton/components/ComponentsLinksValuesValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/skeleton/components/ComponentsParametersKeysValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/skeleton/components/ComponentsParametersValuesValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/skeleton/components/ComponentsRequestBodiesKeysValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/skeleton/components/ComponentsRequestBodiesValuesValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/skeleton/components/ComponentsResponsesKeysValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/skeleton/components/ComponentsResponsesValuesValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/skeleton/components/ComponentsSchemasKeysValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/skeleton/components/ComponentsSchemasValuesValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/skeleton/components/ComponentsSecuritySchemesKeysValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/skeleton/components/ComponentsSecuritySchemesValuesValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/skeleton/encoding/EncodingHeadersKeysValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/skeleton/encoding/EncodingHeadersValuesValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/skeleton/header/HeaderSchemaValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/skeleton/mediatype/MediaTypeEncodingValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/skeleton/mediatype/MediaTypeSchemaValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/skeleton/openapi/OpenApiComponentsValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/skeleton/openapi/OpenApiInfoValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/skeleton/openapi/OpenApiPathsValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/skeleton/openapi/OpenApiServersValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/skeleton/openapi/OpenApiTagsValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/skeleton/operation/OperationParametersValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/skeleton/operation/OperationRequestBodyValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/skeleton/operation/OperationResponsesValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/skeleton/parameter/ParameterContentValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/skeleton/parameter/ParameterSchemaValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/skeleton/pathitem/PathItemOperationsValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/skeleton/pathitem/PathItemParametersValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/skeleton/paths/PathsPathItemsValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/skeleton/requestbody/RequestBodyContentValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/skeleton/response/ResponseContentValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/skeleton/response/ResponseHeadersKeysValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/skeleton/response/ResponseHeadersValuesValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/skeleton/responses/ResponsesResponsesValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/skeleton/schema/SchemaPropertiesKeysValidator.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/skeleton/schema/SchemaRecursiveValidatorTemplate.java
 create mode 100755 oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/util/OasObjectValidatorUtils.java
 create mode 100644 oas-validator/oas-validator-core/src/test/java/org/apache/servicecomb/toolkit/oasv/common/OasObjectPropertyLocationTest.java
 create mode 100755 oas-validator/oas-validator-core/src/test/java/org/apache/servicecomb/toolkit/oasv/util/StringCaseUtilsTest.java
 create mode 100644 oas-validator/oas-validator-core/src/test/java/org/apache/servicecomb/toolkit/oasv/util/SyntaxCheckerTest.java
 create mode 100644 oas-validator/oas-validator-core/src/test/resources/org/apache/servicecomb/toolkit/oasv/util/syntax-bad.yaml
 create mode 100644 oas-validator/oas-validator-core/src/test/resources/org/apache/servicecomb/toolkit/oasv/util/syntax-good.yaml
 copy {core => oas-validator/oas-validator-test}/pom.xml (59%)
 mode change 100755 => 100644
 create mode 100755 oas-validator/oas-validator-test/src/main/java/org/apache/servicecomb/toolkit/oasv/OasSpecLoader.java
 create mode 100755 oas-validator/oas-validator-test/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/test/OasDiffValidatorTestBase.java
 create mode 100755 oas-validator/oas-validator-test/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/test/OasValidatorTestBase.java
 create mode 100644 oas-validator/oas-validator-web/pom.xml
 create mode 100755 oas-validator/oas-validator-web/src/main/java/org/apache/servicecomb/toolkit/oasv/web/Application.java
 create mode 100755 oas-validator/oas-validator-web/src/main/java/org/apache/servicecomb/toolkit/oasv/web/api/controller/CompatibilityController.java
 create mode 100755 oas-validator/oas-validator-web/src/main/java/org/apache/servicecomb/toolkit/oasv/web/api/controller/ComplianceController.java
 create mode 100755 oas-validator/oas-validator-web/src/main/java/org/apache/servicecomb/toolkit/oasv/web/api/controller/ImportError.java
 create mode 100755 oas-validator/oas-validator-web/src/main/java/org/apache/servicecomb/toolkit/oasv/web/api/controller/ImportError2.java
 create mode 100755 oas-validator/oas-validator-web/src/main/java/org/apache/servicecomb/toolkit/oasv/web/page/controller/EditorController.java
 create mode 100755 oas-validator/oas-validator-web/src/main/java/org/apache/servicecomb/toolkit/oasv/web/page/controller/IndexController.java
 create mode 100755 oas-validator/oas-validator-web/src/main/java/org/apache/servicecomb/toolkit/oasv/web/page/controller/ValidatorController.java
 create mode 100755 oas-validator/oas-validator-web/src/main/java/org/apache/servicecomb/toolkit/oasv/web/page/controller/ViewerController.java
 create mode 100755 oas-validator/oas-validator-web/src/main/resources/application.properties
 create mode 100755 oas-validator/oas-validator-web/src/main/resources/samples/petstore-openapi-wrong.yaml
 create mode 100755 oas-validator/oas-validator-web/src/main/resources/static/doc/validator.html
 create mode 100755 oas-validator/oas-validator-web/src/main/resources/templates/index.html
 create mode 100755 oas-validator/oas-validator-web/src/main/resources/templates/validator/compatibility.html
 create mode 100755 oas-validator/oas-validator-web/src/main/resources/templates/validator/compliance.html
 create mode 100644 oas-validator/pom.xml
 mode change 100755 => 100644 pom.xml
 mode change 100755 => 100644 samples/generate-from-code-sample/GoodbyeService/pom.xml
 mode change 100755 => 100644 samples/generate-from-code-sample/HelloService/pom.xml
 mode change 100755 => 100644 samples/generate-from-code-sample/pom.xml
 mode change 100755 => 100644 samples/generate-from-contract-sample/pom.xml
 mode change 100755 => 100644 samples/pom.xml
 mode change 100755 => 100644 samples/verify-with-code-sample/GreetingService/pom.xml
 mode change 100755 => 100644 samples/verify-with-code-sample/pom.xml
 mode change 100755 => 100644 toolkit-distribution/pom.xml
 mode change 100755 => 100644 toolkit-distribution/src/release/LICENSE
 mode change 100755 => 100644 toolkit-distribution/src/release/NOTICE
 create mode 100644 toolkit-distribution/src/release/licenses/LICENSE-asm
 mode change 100755 => 100644 toolkit-distribution/src/release/licenses/LICENSE-cal10n
 create mode 100644 toolkit-distribution/src/release/licenses/LICENSE-cc0
 mode change 100755 => 100644 toolkit-distribution/src/release/licenses/LICENSE-cddl
 mode change 100755 => 100644 toolkit-distribution/src/release/licenses/LICENSE-commonmark
 mode change 100755 => 100644 toolkit-distribution/src/release/licenses/LICENSE-epl-v10
 mode change 100755 => 100644 toolkit-distribution/src/release/licenses/LICENSE-hamcrest
 create mode 100644 toolkit-distribution/src/release/licenses/LICENSE-jopt
 create mode 100644 toolkit-distribution/src/release/licenses/LICENSE-lombok
 create mode 100644 toolkit-distribution/src/release/licenses/LICENSE-mit
 create mode 100644 toolkit-distribution/src/release/licenses/LICENSE-mockito
 mode change 100755 => 100644 toolkit-distribution/src/release/licenses/LICENSE-mozilla-v20
 mode change 100755 => 100644 toolkit-distribution/src/release/licenses/LICENSE-slf4j
 create mode 100644 toolkit-distribution/src/release/licenses/LICENSE-webjars
 mode change 100755 => 100644 toolkit-distribution/src/release/licenses/LICENSE-woodstox-stax2-api
 mode change 100755 => 100644 toolkit-distribution/src/release/licenses/NOTICE-airline
 mode change 100755 => 100644 toolkit-distribution/src/release/licenses/NOTICE-apache-commons-cli
 mode change 100755 => 100644 toolkit-distribution/src/release/licenses/NOTICE-apache-commons-codec
 mode change 100755 => 100644 toolkit-distribution/src/release/licenses/NOTICE-servicecomb-java-chassis
 mode change 100755 => 100644 toolkit-maven-plugin/pom.xml
 mode change 100755 => 100644 toolkit-maven-plugin/src/test/projects/demo-multi-module/first-module/pom.xml
 mode change 100755 => 100644 toolkit-maven-plugin/src/test/projects/demo-multi-module/pom.xml
 mode change 100755 => 100644 toolkit-maven-plugin/src/test/projects/demo-with-contract/pom.xml
 mode change 100755 => 100644 toolkit-maven-plugin/src/test/projects/demo-without-contract/pom.xml


[servicecomb-toolkit] 09/26: SCB-1553 Integrate oas-validator compliance check to cli Add unit test for validator factories

Posted by ni...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ningjiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/servicecomb-toolkit.git

commit 318f31892f66d4523624e3b0eb79a7fba089d638
Author: Daniel Qian <ch...@gmail.com>
AuthorDate: Fri Nov 1 16:32:08 2019 +0800

    SCB-1553 Integrate oas-validator compliance check to cli
    Add unit test for validator factories
---
 .../factory/DefaultPathItemValidatorFactory.java   |  4 +-
 .../DefaultComponentsValidatorFactoryTest.java     | 44 ++++++++++++++++++++++
 .../DefaultEncodingValidatorFactoryTest.java       | 44 ++++++++++++++++++++++
 .../factory/DefaultHeaderValidatorFactoryTest.java | 44 ++++++++++++++++++++++
 .../factory/DefaultInfoValidatorFactoryTest.java   | 44 ++++++++++++++++++++++
 .../DefaultMediaTypeValidatorFactoryTest.java      | 44 ++++++++++++++++++++++
 .../DefaultOasSpecValidatorFactoryTest.java        | 41 ++++++++++++++++++++
 .../DefaultOpenApiValidatorFactoryTest.java        | 27 +++++++++++++
 .../DefaultOperationValidatorFactoryTest.java      | 44 ++++++++++++++++++++++
 .../DefaultParameterValidatorFactoryTest.java      | 44 ++++++++++++++++++++++
 .../DefaultPathItemValidatorFactoryTest.java       | 44 ++++++++++++++++++++++
 .../factory/DefaultPathsValidatorFactoryTest.java  | 44 ++++++++++++++++++++++
 .../DefaultRequestBodyValidatorFactoryTest.java    | 44 ++++++++++++++++++++++
 .../DefaultResponseValidatorFactoryTest.java       | 44 ++++++++++++++++++++++
 .../DefaultResponsesValidatorFactoryTest.java      | 44 ++++++++++++++++++++++
 .../factory/DefaultSchemaValidatorFactoryTest.java | 44 ++++++++++++++++++++++
 .../DefaultSecuritySchemeValidatorFactoryTest.java | 44 ++++++++++++++++++++++
 .../factory/DefaultServerValidatorFactoryTest.java | 44 ++++++++++++++++++++++
 .../factory/DefaultTagValidatorFactoryTest.java    | 43 +++++++++++++++++++++
 .../factory/ValidatorFactoryTestConfiguration.java | 26 +++++++++++++
 20 files changed, 799 insertions(+), 2 deletions(-)

diff --git a/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultPathItemValidatorFactory.java b/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultPathItemValidatorFactory.java
index 8698317..4aa4b05 100644
--- a/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultPathItemValidatorFactory.java
+++ b/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultPathItemValidatorFactory.java
@@ -48,8 +48,8 @@ public class DefaultPathItemValidatorFactory implements PathItemValidatorFactory
     ArrayList<PathItemValidator> validators = new ArrayList<>();
 
     // skeletons
-    new PathItemOperationsValidator(operationValidatorFactory.create());
-    new PathItemParametersValidator(parameterValidatorFactory.create());
+    validators.add(new PathItemOperationsValidator(operationValidatorFactory.create()));
+    validators.add(new PathItemParametersValidator(parameterValidatorFactory.create()));
 
     return Collections.unmodifiableList(validators);
   }
diff --git a/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultComponentsValidatorFactoryTest.java b/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultComponentsValidatorFactoryTest.java
new file mode 100644
index 0000000..53642c3
--- /dev/null
+++ b/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultComponentsValidatorFactoryTest.java
@@ -0,0 +1,44 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compliance.factory;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import java.util.List;
+
+import org.apache.servicecomb.toolkit.oasv.validation.api.ComponentsValidator;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.test.context.ContextConfiguration;
+import org.springframework.test.context.junit4.SpringRunner;
+
+@RunWith(SpringRunner.class)
+@ContextConfiguration(classes = ValidatorFactoryTestConfiguration.class)
+public class DefaultComponentsValidatorFactoryTest {
+
+  @Autowired
+  private DefaultComponentsValidatorFactory validatorFactory;
+
+  @Test
+  public void create() {
+    List<ComponentsValidator> validators = validatorFactory.create();
+    assertThat(validators).hasSize(14);
+  }
+  
+}
diff --git a/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultEncodingValidatorFactoryTest.java b/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultEncodingValidatorFactoryTest.java
new file mode 100644
index 0000000..e8fa711
--- /dev/null
+++ b/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultEncodingValidatorFactoryTest.java
@@ -0,0 +1,44 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compliance.factory;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import java.util.List;
+
+import org.apache.servicecomb.toolkit.oasv.validation.api.EncodingValidator;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.test.context.ContextConfiguration;
+import org.springframework.test.context.junit4.SpringRunner;
+
+@RunWith(SpringRunner.class)
+@ContextConfiguration(classes = ValidatorFactoryTestConfiguration.class)
+public class DefaultEncodingValidatorFactoryTest {
+
+  @Autowired
+  private DefaultEncodingValidatorFactory validatorFactory;
+
+  @Test
+  public void create() {
+    List<EncodingValidator> validators = validatorFactory.create();
+    assertThat(validators).hasSize(2);
+  }
+
+}
diff --git a/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultHeaderValidatorFactoryTest.java b/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultHeaderValidatorFactoryTest.java
new file mode 100644
index 0000000..b0448e1
--- /dev/null
+++ b/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultHeaderValidatorFactoryTest.java
@@ -0,0 +1,44 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compliance.factory;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import java.util.List;
+
+import org.apache.servicecomb.toolkit.oasv.validation.api.HeaderValidator;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.test.context.ContextConfiguration;
+import org.springframework.test.context.junit4.SpringRunner;
+
+@RunWith(SpringRunner.class)
+@ContextConfiguration(classes = ValidatorFactoryTestConfiguration.class)
+public class DefaultHeaderValidatorFactoryTest {
+
+  @Autowired
+  private DefaultHeaderValidatorFactory validatorFactory;
+
+  @Test
+  public void create() {
+    List<HeaderValidator> validators = validatorFactory.create();
+    assertThat(validators).hasSize(2);
+  }
+
+}
diff --git a/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultInfoValidatorFactoryTest.java b/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultInfoValidatorFactoryTest.java
new file mode 100644
index 0000000..5b7c5b2
--- /dev/null
+++ b/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultInfoValidatorFactoryTest.java
@@ -0,0 +1,44 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compliance.factory;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import java.util.List;
+
+import org.apache.servicecomb.toolkit.oasv.validation.api.InfoValidator;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.test.context.ContextConfiguration;
+import org.springframework.test.context.junit4.SpringRunner;
+
+@RunWith(SpringRunner.class)
+@ContextConfiguration(classes = ValidatorFactoryTestConfiguration.class)
+public class DefaultInfoValidatorFactoryTest {
+
+  @Autowired
+  private DefaultInfoValidatorFactory validatorFactory;
+
+  @Test
+  public void create() {
+    List<InfoValidator> validators = validatorFactory.create();
+    assertThat(validators).hasSize(1);
+  }
+
+}
diff --git a/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultMediaTypeValidatorFactoryTest.java b/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultMediaTypeValidatorFactoryTest.java
new file mode 100644
index 0000000..48f1e15
--- /dev/null
+++ b/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultMediaTypeValidatorFactoryTest.java
@@ -0,0 +1,44 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compliance.factory;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import java.util.List;
+
+import org.apache.servicecomb.toolkit.oasv.validation.api.MediaTypeValidator;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.test.context.ContextConfiguration;
+import org.springframework.test.context.junit4.SpringRunner;
+
+@RunWith(SpringRunner.class)
+@ContextConfiguration(classes = ValidatorFactoryTestConfiguration.class)
+public class DefaultMediaTypeValidatorFactoryTest {
+
+  @Autowired
+  private DefaultMediaTypeValidatorFactory validatorFactory;
+
+  @Test
+  public void create() {
+    List<MediaTypeValidator> validators = validatorFactory.create();
+    assertThat(validators).hasSize(2);
+  }
+
+}
diff --git a/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultOasSpecValidatorFactoryTest.java b/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultOasSpecValidatorFactoryTest.java
new file mode 100644
index 0000000..b62f869
--- /dev/null
+++ b/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultOasSpecValidatorFactoryTest.java
@@ -0,0 +1,41 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compliance.factory;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import org.apache.servicecomb.toolkit.oasv.validation.api.OasSpecValidator;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.test.context.ContextConfiguration;
+import org.springframework.test.context.junit4.SpringRunner;
+
+@RunWith(SpringRunner.class)
+@ContextConfiguration(classes = ValidatorFactoryTestConfiguration.class)
+public class DefaultOasSpecValidatorFactoryTest {
+
+  @Autowired
+  private DefaultOasSpecValidatorFactory validatorFactory;
+
+  @Test
+  public void create() {
+    OasSpecValidator validator = validatorFactory.create();
+    assertThat(validator).isNotNull();
+  }
+}
diff --git a/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultOpenApiValidatorFactoryTest.java b/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultOpenApiValidatorFactoryTest.java
new file mode 100644
index 0000000..7b9f8ef
--- /dev/null
+++ b/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultOpenApiValidatorFactoryTest.java
@@ -0,0 +1,27 @@
+package org.apache.servicecomb.toolkit.oasv.compliance.factory;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import java.util.List;
+
+import org.apache.servicecomb.toolkit.oasv.validation.api.OpenApiValidator;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.test.context.ContextConfiguration;
+import org.springframework.test.context.junit4.SpringRunner;
+
+@RunWith(SpringRunner.class)
+@ContextConfiguration(classes = ValidatorFactoryTestConfiguration.class)
+public class DefaultOpenApiValidatorFactoryTest {
+
+  @Autowired
+  private DefaultOpenApiValidatorFactory validatorFactory;
+
+  @Test
+  public void create() {
+    List<OpenApiValidator> validators = validatorFactory.create();
+    assertThat(validators).hasSize(8);
+  }
+
+}
diff --git a/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultOperationValidatorFactoryTest.java b/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultOperationValidatorFactoryTest.java
new file mode 100644
index 0000000..2714725
--- /dev/null
+++ b/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultOperationValidatorFactoryTest.java
@@ -0,0 +1,44 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compliance.factory;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import java.util.List;
+
+import org.apache.servicecomb.toolkit.oasv.validation.api.OperationValidator;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.test.context.ContextConfiguration;
+import org.springframework.test.context.junit4.SpringRunner;
+
+@RunWith(SpringRunner.class)
+@ContextConfiguration(classes = ValidatorFactoryTestConfiguration.class)
+public class DefaultOperationValidatorFactoryTest {
+
+  @Autowired
+  private DefaultOperationValidatorFactory validatorFactory;
+
+  @Test
+  public void create() {
+    List<OperationValidator> validators = validatorFactory.create();
+    assertThat(validators).hasSize(8);
+  }
+
+}
diff --git a/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultParameterValidatorFactoryTest.java b/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultParameterValidatorFactoryTest.java
new file mode 100644
index 0000000..e1c201a
--- /dev/null
+++ b/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultParameterValidatorFactoryTest.java
@@ -0,0 +1,44 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compliance.factory;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import java.util.List;
+
+import org.apache.servicecomb.toolkit.oasv.validation.api.ParameterValidator;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.test.context.ContextConfiguration;
+import org.springframework.test.context.junit4.SpringRunner;
+
+@RunWith(SpringRunner.class)
+@ContextConfiguration(classes = ValidatorFactoryTestConfiguration.class)
+public class DefaultParameterValidatorFactoryTest {
+
+  @Autowired
+  private DefaultParameterValidatorFactory validatorFactory;
+
+  @Test
+  public void create() {
+    List<ParameterValidator> validators = validatorFactory.create();
+    assertThat(validators).hasSize(7);
+  }
+
+}
diff --git a/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultPathItemValidatorFactoryTest.java b/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultPathItemValidatorFactoryTest.java
new file mode 100644
index 0000000..44b53d9
--- /dev/null
+++ b/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultPathItemValidatorFactoryTest.java
@@ -0,0 +1,44 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compliance.factory;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import java.util.List;
+
+import org.apache.servicecomb.toolkit.oasv.validation.api.PathItemValidator;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.test.context.ContextConfiguration;
+import org.springframework.test.context.junit4.SpringRunner;
+
+@RunWith(SpringRunner.class)
+@ContextConfiguration(classes = ValidatorFactoryTestConfiguration.class)
+public class DefaultPathItemValidatorFactoryTest {
+
+  @Autowired
+  private DefaultPathItemValidatorFactory validatorFactory;
+
+  @Test
+  public void create() {
+    List<PathItemValidator> validators = validatorFactory.create();
+    assertThat(validators).hasSize(2);
+  }
+
+}
diff --git a/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultPathsValidatorFactoryTest.java b/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultPathsValidatorFactoryTest.java
new file mode 100644
index 0000000..3969b76
--- /dev/null
+++ b/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultPathsValidatorFactoryTest.java
@@ -0,0 +1,44 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compliance.factory;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import java.util.List;
+
+import org.apache.servicecomb.toolkit.oasv.validation.api.PathsValidator;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.test.context.ContextConfiguration;
+import org.springframework.test.context.junit4.SpringRunner;
+
+@RunWith(SpringRunner.class)
+@ContextConfiguration(classes = ValidatorFactoryTestConfiguration.class)
+public class DefaultPathsValidatorFactoryTest {
+
+  @Autowired
+  private DefaultPathsValidatorFactory validatorFactory;
+
+  @Test
+  public void create() {
+    List<PathsValidator> validators = validatorFactory.create();
+    assertThat(validators).hasSize(2);
+  }
+
+}
diff --git a/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultRequestBodyValidatorFactoryTest.java b/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultRequestBodyValidatorFactoryTest.java
new file mode 100644
index 0000000..ad94c2c
--- /dev/null
+++ b/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultRequestBodyValidatorFactoryTest.java
@@ -0,0 +1,44 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compliance.factory;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import java.util.List;
+
+import org.apache.servicecomb.toolkit.oasv.validation.api.RequestBodyValidator;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.test.context.ContextConfiguration;
+import org.springframework.test.context.junit4.SpringRunner;
+
+@RunWith(SpringRunner.class)
+@ContextConfiguration(classes = ValidatorFactoryTestConfiguration.class)
+public class DefaultRequestBodyValidatorFactoryTest {
+
+  @Autowired
+  private DefaultRequestBodyValidatorFactory validatorFactory;
+
+  @Test
+  public void create() {
+    List<RequestBodyValidator> validators = validatorFactory.create();
+    assertThat(validators).hasSize(2);
+  }
+
+}
diff --git a/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultResponseValidatorFactoryTest.java b/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultResponseValidatorFactoryTest.java
new file mode 100644
index 0000000..910a3f4
--- /dev/null
+++ b/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultResponseValidatorFactoryTest.java
@@ -0,0 +1,44 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compliance.factory;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import java.util.List;
+
+import org.apache.servicecomb.toolkit.oasv.validation.api.ResponseValidator;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.test.context.ContextConfiguration;
+import org.springframework.test.context.junit4.SpringRunner;
+
+@RunWith(SpringRunner.class)
+@ContextConfiguration(classes = ValidatorFactoryTestConfiguration.class)
+public class DefaultResponseValidatorFactoryTest {
+
+  @Autowired
+  private DefaultResponseValidatorFactory validatorFactory;
+
+  @Test
+  public void create() {
+    List<ResponseValidator> validators = validatorFactory.create();
+    assertThat(validators).hasSize(3);
+  }
+
+}
diff --git a/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultResponsesValidatorFactoryTest.java b/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultResponsesValidatorFactoryTest.java
new file mode 100644
index 0000000..1e79ef6
--- /dev/null
+++ b/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultResponsesValidatorFactoryTest.java
@@ -0,0 +1,44 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compliance.factory;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import java.util.List;
+
+import org.apache.servicecomb.toolkit.oasv.validation.api.ResponsesValidator;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.test.context.ContextConfiguration;
+import org.springframework.test.context.junit4.SpringRunner;
+
+@RunWith(SpringRunner.class)
+@ContextConfiguration(classes = ValidatorFactoryTestConfiguration.class)
+public class DefaultResponsesValidatorFactoryTest {
+
+  @Autowired
+  private DefaultResponsesValidatorFactory validatorFactory;
+
+  @Test
+  public void create() {
+    List<ResponsesValidator> validators = validatorFactory.create();
+    assertThat(validators).hasSize(1);
+  }
+
+}
diff --git a/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultSchemaValidatorFactoryTest.java b/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultSchemaValidatorFactoryTest.java
new file mode 100644
index 0000000..fb1e754
--- /dev/null
+++ b/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultSchemaValidatorFactoryTest.java
@@ -0,0 +1,44 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compliance.factory;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import java.util.List;
+
+import org.apache.servicecomb.toolkit.oasv.validation.api.SchemaValidator;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.test.context.ContextConfiguration;
+import org.springframework.test.context.junit4.SpringRunner;
+
+@RunWith(SpringRunner.class)
+@ContextConfiguration(classes = ValidatorFactoryTestConfiguration.class)
+public class DefaultSchemaValidatorFactoryTest {
+
+  @Autowired
+  private DefaultSchemaValidatorFactory validatorFactory;
+
+  @Test
+  public void create() {
+    List<SchemaValidator> validators = validatorFactory.create();
+    assertThat(validators).hasSize(2);
+  }
+
+}
diff --git a/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultSecuritySchemeValidatorFactoryTest.java b/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultSecuritySchemeValidatorFactoryTest.java
new file mode 100644
index 0000000..b41409f
--- /dev/null
+++ b/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultSecuritySchemeValidatorFactoryTest.java
@@ -0,0 +1,44 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compliance.factory;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import java.util.List;
+
+import org.apache.servicecomb.toolkit.oasv.validation.api.SecuritySchemeValidator;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.test.context.ContextConfiguration;
+import org.springframework.test.context.junit4.SpringRunner;
+
+@RunWith(SpringRunner.class)
+@ContextConfiguration(classes = ValidatorFactoryTestConfiguration.class)
+public class DefaultSecuritySchemeValidatorFactoryTest {
+
+  @Autowired
+  private DefaultSecuritySchemeValidatorFactory validatorFactory;
+
+  @Test
+  public void create() {
+    List<SecuritySchemeValidator> validators = validatorFactory.create();
+    assertThat(validators).isEmpty();
+  }
+
+}
diff --git a/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultServerValidatorFactoryTest.java b/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultServerValidatorFactoryTest.java
new file mode 100644
index 0000000..ec4e193
--- /dev/null
+++ b/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultServerValidatorFactoryTest.java
@@ -0,0 +1,44 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compliance.factory;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import java.util.List;
+
+import org.apache.servicecomb.toolkit.oasv.validation.api.ServerValidator;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.test.context.ContextConfiguration;
+import org.springframework.test.context.junit4.SpringRunner;
+
+@RunWith(SpringRunner.class)
+@ContextConfiguration(classes = ValidatorFactoryTestConfiguration.class)
+public class DefaultServerValidatorFactoryTest {
+
+  @Autowired
+  private DefaultServerValidatorFactory validatorFactory;
+
+  @Test
+  public void create() {
+    List<ServerValidator> validators = validatorFactory.create();
+    assertThat(validators).isEmpty();
+  }
+
+}
diff --git a/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultTagValidatorFactoryTest.java b/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultTagValidatorFactoryTest.java
new file mode 100644
index 0000000..2d98857
--- /dev/null
+++ b/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultTagValidatorFactoryTest.java
@@ -0,0 +1,43 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compliance.factory;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import java.util.List;
+
+import org.apache.servicecomb.toolkit.oasv.validation.api.TagValidator;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.test.context.ContextConfiguration;
+import org.springframework.test.context.junit4.SpringRunner;
+
+@RunWith(SpringRunner.class)
+@ContextConfiguration(classes = ValidatorFactoryTestConfiguration.class)
+public class DefaultTagValidatorFactoryTest {
+
+  @Autowired
+  private DefaultTagValidatorFactory validatorFactory;
+
+  @Test
+  public void create() {
+    List<TagValidator> validators = validatorFactory.create();
+    assertThat(validators).hasSize(3);
+  }
+}
diff --git a/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/ValidatorFactoryTestConfiguration.java b/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/ValidatorFactoryTestConfiguration.java
new file mode 100644
index 0000000..e7b6af9
--- /dev/null
+++ b/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/ValidatorFactoryTestConfiguration.java
@@ -0,0 +1,26 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compliance.factory;
+
+import org.springframework.context.annotation.ComponentScan;
+import org.springframework.context.annotation.Configuration;
+
+@Configuration
+@ComponentScan
+class ValidatorFactoryTestConfiguration {
+}


[servicecomb-toolkit] 08/26: SCB-1553 Integrate oas-validator compliance check to cli Translate chinese prompt message to english

Posted by ni...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ningjiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/servicecomb-toolkit.git

commit b5120d35318ed431a3f35d20c06e0ffdd3b9d0df
Author: Daniel Qian <ch...@gmail.com>
AuthorDate: Fri Nov 1 15:35:40 2019 +0800

    SCB-1553 Integrate oas-validator compliance check to cli
    Translate chinese prompt message to english
---
 .../validator/openapi/OpenApiSecurityEmptyValidator.java       |  2 +-
 .../validator/openapi/OpenApiTagNotEmptyValidator.java         |  2 +-
 .../compliance/validator/openapi/OpenApiVersionValidator.java  |  2 +-
 .../validator/operation/OperationServersEmptyValidator.java    |  2 +-
 .../validator/operation/OperationTagsOnlyOneValidator.java     |  2 +-
 .../validator/operation/OperationTagsReferenceValidator.java   |  2 +-
 .../parameter/ParameterDescriptionRequiredValidator.java       |  2 +-
 .../requestbody/RequestBodyDescriptionRequiredValidator.java   |  2 +-
 .../oasv/compliance/validator/tag/TagReferenceValidator.java   |  2 +-
 .../header/HeaderDescriptionRequiredValidatorTest.java         |  7 ++++---
 .../validator/info/InfoDescriptionRequiredValidatorTest.java   |  3 ++-
 .../validator/openapi/OpenApiTagsSizeValidatorTest.java        |  2 +-
 .../validator/openapi/OpenApiVersionValidatorTest.java         |  2 +-
 .../validator/operation/OperationTagsOnlyOneValidatorTest.java |  2 +-
 .../operation/OperationTagsReferenceValidatorTest.java         |  2 +-
 .../validator/tag/TagDescriptionRequiredValidatorTest.java     |  3 ++-
 .../validator/tag/TagNameUpperCamelCaseValidatorTest.java      |  3 ++-
 .../compliance/validator/tag/TagReferenceValidatorTest.java    |  2 +-
 .../toolkit/oasv/validation/api/ViolationMessages.java         | 10 +++++-----
 .../servicecomb/toolkit/oasv/util/StringCaseUtilsTest.java     |  5 ++---
 20 files changed, 31 insertions(+), 28 deletions(-)

diff --git a/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/openapi/OpenApiSecurityEmptyValidator.java b/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/openapi/OpenApiSecurityEmptyValidator.java
index 432b0f7..5655a87 100755
--- a/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/openapi/OpenApiSecurityEmptyValidator.java
+++ b/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/openapi/OpenApiSecurityEmptyValidator.java
@@ -35,7 +35,7 @@ import static java.util.Collections.singletonList;
  * <a href="https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#openapi-object">OpenAPI Object</a>
  * .securityๅฑžๆ€งๆ ก้ชŒๅ™จ
  * <ul>
- * <li>ไธๅ…่ฎธๆไพ›</li>
+ * <li>This field is not allowed</li>
  * </ul>
  */
 public class OpenApiSecurityEmptyValidator implements OpenApiValidator {
diff --git a/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/openapi/OpenApiTagNotEmptyValidator.java b/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/openapi/OpenApiTagNotEmptyValidator.java
index ac92737..803a691 100755
--- a/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/openapi/OpenApiTagNotEmptyValidator.java
+++ b/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/openapi/OpenApiTagNotEmptyValidator.java
@@ -43,7 +43,7 @@ public class OpenApiTagNotEmptyValidator implements OpenApiValidator {
   public List<OasViolation> validate(OasValidationContext context, OasObjectPropertyLocation location, OpenAPI openAPI) {
 
     if (CollectionUtils.isEmpty(openAPI.getTags())) {
-      return singletonList(new OasViolation(location.property("tags", OasObjectType.TAG), "่‡ณๅฐ‘ๆไพ›ไธ€ไธช"));
+      return singletonList(new OasViolation(location.property("tags", OasObjectType.TAG), "At least provide one tag"));
 
     }
     return emptyList();
diff --git a/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/openapi/OpenApiVersionValidator.java b/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/openapi/OpenApiVersionValidator.java
index 3b3faca..3ea279a 100755
--- a/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/openapi/OpenApiVersionValidator.java
+++ b/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/openapi/OpenApiVersionValidator.java
@@ -47,7 +47,7 @@ public class OpenApiVersionValidator implements OpenApiValidator {
     if (ok) {
       return emptyList();
     }
-    return singletonList(new OasViolation(location.property("openapi"), "ๅฟ…้กป>=3.0.2"));
+    return singletonList(new OasViolation(location.property("openapi"), "Must be >= 3.0.2"));
   }
 
 }
diff --git a/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/operation/OperationServersEmptyValidator.java b/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/operation/OperationServersEmptyValidator.java
index f09c7b1..143cc80 100755
--- a/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/operation/OperationServersEmptyValidator.java
+++ b/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/operation/OperationServersEmptyValidator.java
@@ -35,7 +35,7 @@ import static java.util.Collections.singletonList;
  * <a href="https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#operationObject">Operation Object</a>
  * .serversๅฑžๆ€งๆ ก้ชŒๅ™จ
  * <ul>
- * <li>ไธๅ…่ฎธๆไพ›</li>
+ * <li>This field is not allowed</li>
  * </ul>
  */
 public class OperationServersEmptyValidator implements OperationValidator {
diff --git a/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/operation/OperationTagsOnlyOneValidator.java b/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/operation/OperationTagsOnlyOneValidator.java
index d271bbb..c4d76f8 100755
--- a/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/operation/OperationTagsOnlyOneValidator.java
+++ b/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/operation/OperationTagsOnlyOneValidator.java
@@ -46,7 +46,7 @@ public class OperationTagsOnlyOneValidator implements OperationValidator {
     List<String> tags = oasObject.getTags();
     if (CollectionUtils.size(tags) != 1) {
       return singletonList(
-        new OasViolation(location.property("tags"), "ๅฟ…้กปๆไพ›ไธ”ๅชๆไพ›ไธ€ไธชtag"));
+        new OasViolation(location.property("tags"), "Must provide one and at most one tag"));
     }
     return emptyList();
   }
diff --git a/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/operation/OperationTagsReferenceValidator.java b/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/operation/OperationTagsReferenceValidator.java
index 07cc988..122d97b 100755
--- a/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/operation/OperationTagsReferenceValidator.java
+++ b/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/operation/OperationTagsReferenceValidator.java
@@ -59,7 +59,7 @@ public class OperationTagsReferenceValidator implements OperationValidator {
       String tagName = tags.get(i);
       if (!globalTagNames.contains(tagName)) {
         violations.add(
-          new OasViolation(location.property("tags[" + i + "]"), "ไธๅœจ$.tagsๆ‰€ๅฎšไน‰็š„่Œƒๅ›ดๅ†…"));
+          new OasViolation(location.property("tags[" + i + "]"), "Is not defined in $.tags"));
       }
     }
 
diff --git a/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/parameter/ParameterDescriptionRequiredValidator.java b/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/parameter/ParameterDescriptionRequiredValidator.java
index 653d1fb..86ad875 100755
--- a/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/parameter/ParameterDescriptionRequiredValidator.java
+++ b/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/parameter/ParameterDescriptionRequiredValidator.java
@@ -26,7 +26,7 @@ import io.swagger.v3.oas.models.parameters.Parameter;
  * <a href="https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#parameterObject">Parameter Object</a>
  * .description ๅฑžๆ€งๆ ก้ชŒๅ™จ
  * <ul>
- * <li>ๅฟ…้กปๆไพ›</li>
+ * <li>Required</li>
  * </ul>
  */
 public class ParameterDescriptionRequiredValidator
diff --git a/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/requestbody/RequestBodyDescriptionRequiredValidator.java b/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/requestbody/RequestBodyDescriptionRequiredValidator.java
index dae92cc..d80352f 100755
--- a/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/requestbody/RequestBodyDescriptionRequiredValidator.java
+++ b/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/requestbody/RequestBodyDescriptionRequiredValidator.java
@@ -26,7 +26,7 @@ import io.swagger.v3.oas.models.parameters.RequestBody;
  * <a href="https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#request-body-object">Request Object</a>
  * .description ๅฑžๆ€งๆ ก้ชŒๅ™จ
  * <ul>
- * <li>ๅฟ…้กปๆไพ›</li>
+ * <li>Required</li>
  * </ul>
  */
 public class RequestBodyDescriptionRequiredValidator
diff --git a/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/tag/TagReferenceValidator.java b/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/tag/TagReferenceValidator.java
index 1432489..56f8220 100755
--- a/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/tag/TagReferenceValidator.java
+++ b/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/tag/TagReferenceValidator.java
@@ -49,7 +49,7 @@ public class TagReferenceValidator implements TagValidator {
     List<OasViolation> violations = new ArrayList<>();
 
     if (!allOperationsTags.contains(tag.getName())) {
-      violations.add(new OasViolation(location, "ๆญคTagๆฒกๆœ‰่ขซOperation Objectไฝฟ็”จ่ฟ‡"));
+      violations.add(new OasViolation(location, "Is not referenced by any Operation object"));
     }
 
     return violations;
diff --git a/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/header/HeaderDescriptionRequiredValidatorTest.java b/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/header/HeaderDescriptionRequiredValidatorTest.java
index fe7308d..a527bb9 100755
--- a/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/header/HeaderDescriptionRequiredValidatorTest.java
+++ b/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/header/HeaderDescriptionRequiredValidatorTest.java
@@ -20,6 +20,7 @@ package org.apache.servicecomb.toolkit.oasv.compliance.validator.header;
 import org.apache.servicecomb.toolkit.oasv.compliance.validator.OasComplianceTestBase;
 import org.apache.servicecomb.toolkit.oasv.validation.api.HeaderValidator;
 import org.apache.servicecomb.toolkit.oasv.validation.api.OasViolation;
+import org.apache.servicecomb.toolkit.oasv.validation.api.ViolationMessages;
 import org.apache.servicecomb.toolkit.oasv.validation.config.OasValidatorsSkeletonConfiguration;
 import io.swagger.v3.oas.models.OpenAPI;
 import org.junit.Test;
@@ -42,8 +43,8 @@ public class HeaderDescriptionRequiredValidatorTest extends OasComplianceTestBas
     List<OasViolation> violations = oasSpecValidator.validate(createContext(openAPI), openAPI);
     assertThat(violations)
       .containsExactlyInAnyOrder(
-        createViolation("ๅฟ…้กปๆไพ›", "components", COMPONENTS, "headers.'X-Pet-Foo'", HEADER, "description", null),
-        createViolation("ๅฟ…้กปๆไพ›",
+        createViolation(ViolationMessages.REQUIRED, "components", COMPONENTS, "headers.'X-Pet-Foo'", HEADER, "description", null),
+        createViolation(ViolationMessages.REQUIRED,
           "paths", PATHS,
           "/pets", PATH_ITEM,
           "get", OPERATION,
@@ -51,7 +52,7 @@ public class HeaderDescriptionRequiredValidatorTest extends OasComplianceTestBas
           "200", RESPONSE,
           "headers.'x-next'", HEADER,
           "description", null),
-        createViolation("ๅฟ…้กปๆไพ›",
+        createViolation(ViolationMessages.REQUIRED,
           "paths", PATHS,
           "/pets", PATH_ITEM,
           "get", OPERATION,
diff --git a/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/info/InfoDescriptionRequiredValidatorTest.java b/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/info/InfoDescriptionRequiredValidatorTest.java
index c0c20a6..d374676 100755
--- a/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/info/InfoDescriptionRequiredValidatorTest.java
+++ b/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/info/InfoDescriptionRequiredValidatorTest.java
@@ -20,6 +20,7 @@ package org.apache.servicecomb.toolkit.oasv.compliance.validator.info;
 import org.apache.servicecomb.toolkit.oasv.compliance.validator.OasComplianceTestBase;
 import org.apache.servicecomb.toolkit.oasv.validation.api.InfoValidator;
 import org.apache.servicecomb.toolkit.oasv.validation.api.OasViolation;
+import org.apache.servicecomb.toolkit.oasv.validation.api.ViolationMessages;
 import org.apache.servicecomb.toolkit.oasv.validation.config.OasValidatorsSkeletonConfiguration;
 import io.swagger.v3.oas.models.OpenAPI;
 import org.junit.Test;
@@ -41,7 +42,7 @@ public class InfoDescriptionRequiredValidatorTest extends OasComplianceTestBase
     OpenAPI openAPI = loadRelative("petstore-info-no-desc.yaml");
     List<OasViolation> violations = oasSpecValidator.validate(createContext(openAPI), openAPI);
     assertThat(violations).hasSize(1);
-    assertThat(violations).containsExactly(createViolation("ๅฟ…้กปๆไพ›", "info", INFO, "description", null));
+    assertThat(violations).containsExactly(createViolation(ViolationMessages.REQUIRED, "info", INFO, "description", null));
   }
 
   @Configuration
diff --git a/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/openapi/OpenApiTagsSizeValidatorTest.java b/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/openapi/OpenApiTagsSizeValidatorTest.java
index fa45cd6..6e552bf 100755
--- a/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/openapi/OpenApiTagsSizeValidatorTest.java
+++ b/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/openapi/OpenApiTagsSizeValidatorTest.java
@@ -41,7 +41,7 @@ public class OpenApiTagsSizeValidatorTest extends OasComplianceTestBase {
     OpenAPI openAPI = loadRelative("petstore-tag-not-provided.yaml");
     List<OasViolation> violations = oasSpecValidator.validate(createContext(openAPI), openAPI);
     assertThat(violations).hasSize(1);
-    assertThat(violations).containsExactly(createViolation("่‡ณๅฐ‘ๆไพ›ไธ€ไธช", "tags", TAG));
+    assertThat(violations).containsExactly(createViolation("At least provide one tag", "tags", TAG));
   }
 
   @Configuration
diff --git a/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/openapi/OpenApiVersionValidatorTest.java b/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/openapi/OpenApiVersionValidatorTest.java
index e44cec6..02d2b93 100755
--- a/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/openapi/OpenApiVersionValidatorTest.java
+++ b/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/openapi/OpenApiVersionValidatorTest.java
@@ -40,7 +40,7 @@ public class OpenApiVersionValidatorTest extends OasComplianceTestBase {
     OpenAPI openAPI = loadRelative("petstore-openapi-wrong.yaml");
     List<OasViolation> violations = oasSpecValidator.validate(createContext(openAPI), openAPI);
     assertThat(violations).hasSize(1);
-    assertThat(violations).containsExactly(createViolation("ๅฟ…้กป>=3.0.2", "openapi", null));
+    assertThat(violations).containsExactly(createViolation("Must be >= 3.0.2", "openapi", null));
   }
 
   @Configuration
diff --git a/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/operation/OperationTagsOnlyOneValidatorTest.java b/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/operation/OperationTagsOnlyOneValidatorTest.java
index 7a158ef..75d75b4 100755
--- a/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/operation/OperationTagsOnlyOneValidatorTest.java
+++ b/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/operation/OperationTagsOnlyOneValidatorTest.java
@@ -41,7 +41,7 @@ public class OperationTagsOnlyOneValidatorTest extends OasComplianceTestBase {
     OpenAPI openAPI = loadRelative("petstore-operation-tags-only-one.yaml");
     List<OasViolation> violations = oasSpecValidator.validate(createContext(openAPI), openAPI);
     assertThat(violations).containsExactly(
-      createViolation("ๅฟ…้กปๆไพ›ไธ”ๅชๆไพ›ไธ€ไธชtag",
+      createViolation("Must provide one and at most one tag",
         "paths", PATHS,
         "/pets", PATH_ITEM,
         "get", OPERATION,
diff --git a/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/operation/OperationTagsReferenceValidatorTest.java b/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/operation/OperationTagsReferenceValidatorTest.java
index 94929df..1032d50 100755
--- a/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/operation/OperationTagsReferenceValidatorTest.java
+++ b/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/operation/OperationTagsReferenceValidatorTest.java
@@ -41,7 +41,7 @@ public class OperationTagsReferenceValidatorTest extends OasComplianceTestBase {
     OpenAPI openAPI = loadRelative("petstore-operation-tags-reference.yaml");
     List<OasViolation> violations = oasSpecValidator.validate(createContext(openAPI), openAPI);
     assertThat(violations).containsExactly(
-      createViolation("ไธๅœจ$.tagsๆ‰€ๅฎšไน‰็š„่Œƒๅ›ดๅ†…",
+      createViolation("Is not defined in $.tags",
         "paths", PATHS,
         "/pets", PATH_ITEM,
         "get", OPERATION,
diff --git a/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/tag/TagDescriptionRequiredValidatorTest.java b/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/tag/TagDescriptionRequiredValidatorTest.java
index ed34531..8769e07 100755
--- a/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/tag/TagDescriptionRequiredValidatorTest.java
+++ b/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/tag/TagDescriptionRequiredValidatorTest.java
@@ -19,6 +19,7 @@ package org.apache.servicecomb.toolkit.oasv.compliance.validator.tag;
 
 import org.apache.servicecomb.toolkit.oasv.validation.api.OasViolation;
 import org.apache.servicecomb.toolkit.oasv.validation.api.TagValidator;
+import org.apache.servicecomb.toolkit.oasv.validation.api.ViolationMessages;
 import org.apache.servicecomb.toolkit.oasv.validation.config.OasValidatorsSkeletonConfiguration;
 
 import org.apache.servicecomb.toolkit.oasv.compliance.validator.OasComplianceTestBase;
@@ -43,7 +44,7 @@ public class TagDescriptionRequiredValidatorTest extends OasComplianceTestBase {
     List<OasViolation> violations = oasSpecValidator.validate(createContext(openAPI), openAPI);
     assertThat(violations).hasSize(1);
     assertThat(violations)
-      .containsExactly(createViolation("ๅฟ…้กปๆไพ›", "tags[0]", TAG, "description", null));
+      .containsExactly(createViolation(ViolationMessages.REQUIRED, "tags[0]", TAG, "description", null));
   }
 
   @Configuration
diff --git a/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/tag/TagNameUpperCamelCaseValidatorTest.java b/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/tag/TagNameUpperCamelCaseValidatorTest.java
index c958e66..e1d1083 100755
--- a/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/tag/TagNameUpperCamelCaseValidatorTest.java
+++ b/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/tag/TagNameUpperCamelCaseValidatorTest.java
@@ -19,6 +19,7 @@ package org.apache.servicecomb.toolkit.oasv.compliance.validator.tag;
 
 import org.apache.servicecomb.toolkit.oasv.validation.api.OasViolation;
 import org.apache.servicecomb.toolkit.oasv.validation.api.TagValidator;
+import org.apache.servicecomb.toolkit.oasv.validation.api.ViolationMessages;
 import org.apache.servicecomb.toolkit.oasv.validation.config.OasValidatorsSkeletonConfiguration;
 
 import org.apache.servicecomb.toolkit.oasv.compliance.validator.OasComplianceTestBase;
@@ -43,7 +44,7 @@ public class TagNameUpperCamelCaseValidatorTest extends OasComplianceTestBase {
     List<OasViolation> violations = oasSpecValidator.validate(createContext(openAPI), openAPI);
     assertThat(violations).hasSize(1);
     assertThat(violations)
-      .containsExactly(createViolation("ๅฟ…้กปไธบupper camel case", "tags[0]", TAG, "name", null));
+      .containsExactly(createViolation(ViolationMessages.UPPER_CAMEL_CASE, "tags[0]", TAG, "name", null));
   }
 
   @Configuration
diff --git a/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/tag/TagReferenceValidatorTest.java b/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/tag/TagReferenceValidatorTest.java
index 2a9a78b..53a975a 100755
--- a/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/tag/TagReferenceValidatorTest.java
+++ b/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/tag/TagReferenceValidatorTest.java
@@ -43,7 +43,7 @@ public class TagReferenceValidatorTest extends OasComplianceTestBase {
     List<OasViolation> violations = oasSpecValidator.validate(createContext(openAPI), openAPI);
     assertThat(violations).hasSize(1);
     assertThat(violations)
-      .containsExactly(createViolation("ๆญคTagๆฒกๆœ‰่ขซOperation Objectไฝฟ็”จ่ฟ‡", "tags[1]", TAG));
+      .containsExactly(createViolation("Is not referenced by any Operation object", "tags[1]", TAG));
   }
 
   @Configuration
diff --git a/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/api/ViolationMessages.java b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/api/ViolationMessages.java
index 4a0a068..a8f4aa2 100755
--- a/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/api/ViolationMessages.java
+++ b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/api/ViolationMessages.java
@@ -19,15 +19,15 @@ package org.apache.servicecomb.toolkit.oasv.validation.api;
 
 public abstract class ViolationMessages {
 
-  public static final String REQUIRED = "ๅฟ…้กปๆไพ›";
+  public static final String REQUIRED = "Required";
 
-  public static final String MUST_BE_EMPTY = "ไธๅ…่ฎธๆไพ›";
+  public static final String MUST_BE_EMPTY = "This field is no allowed";
 
-  public static final String LOWER_CAMEL_CASE = "ๅฟ…้กปไธบlower camel case";
+  public static final String LOWER_CAMEL_CASE = "Must be lower camel case";
 
-  public static final String UPPER_CAMEL_CASE = "ๅฟ…้กปไธบupper camel case";
+  public static final String UPPER_CAMEL_CASE = "Must be upper camel case";
 
-  public static final String UPPER_HYPHEN_CASE = "ๅฟ…้กปไธบupper hyphen case";
+  public static final String UPPER_HYPHEN_CASE = "Must be upper hyphen case";
 
 }
 
diff --git a/oas-validator/oas-validator-core/src/test/java/org/apache/servicecomb/toolkit/oasv/util/StringCaseUtilsTest.java b/oas-validator/oas-validator-core/src/test/java/org/apache/servicecomb/toolkit/oasv/util/StringCaseUtilsTest.java
index 0ed79a7..2db499e 100755
--- a/oas-validator/oas-validator-core/src/test/java/org/apache/servicecomb/toolkit/oasv/util/StringCaseUtilsTest.java
+++ b/oas-validator/oas-validator-core/src/test/java/org/apache/servicecomb/toolkit/oasv/util/StringCaseUtilsTest.java
@@ -17,11 +17,10 @@
 
 package org.apache.servicecomb.toolkit.oasv.util;
 
-import org.apache.servicecomb.toolkit.oasv.util.StringCaseUtils;
-import org.junit.Test;
-
 import static org.assertj.core.api.Assertions.assertThat;
 
+import org.junit.Test;
+
 public class StringCaseUtilsTest {
 
   @Test


[servicecomb-toolkit] 06/26: SCB-1553 Integrate oas-validator compliance check to cli add compliance validator factories

Posted by ni...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ningjiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/servicecomb-toolkit.git

commit afe8ceaba6129f3b77894c1a7715890d14f32e82
Author: Daniel Qian <ch...@gmail.com>
AuthorDate: Fri Nov 1 15:10:07 2019 +0800

    SCB-1553 Integrate oas-validator compliance check to cli
    add compliance validator factories
---
 oas-validator/oas-validator-compliance/pom.xml     | 21 +++++
 .../factory/DefaultComponentsValidatorFactory.java | 96 ++++++++++++++++++++++
 .../factory/DefaultEncodingValidatorFactory.java   | 54 ++++++++++++
 .../factory/DefaultHeaderValidatorFactory.java     | 54 ++++++++++++
 .../factory/DefaultInfoValidatorFactory.java       | 42 ++++++++++
 .../factory/DefaultMediaTypeValidatorFactory.java  | 57 +++++++++++++
 .../factory/DefaultOasSpecValidatorFactory.java    | 41 +++++++++
 .../factory/DefaultOpenApiValidatorFactory.java    | 86 +++++++++++++++++++
 .../factory/DefaultOperationValidatorFactory.java  | 77 +++++++++++++++++
 .../factory/DefaultParameterValidatorFactory.java  | 69 ++++++++++++++++
 .../factory/DefaultPathItemValidatorFactory.java   | 57 +++++++++++++
 .../factory/DefaultPathsValidatorFactory.java      | 54 ++++++++++++
 .../DefaultRequestBodyValidatorFactory.java        | 53 ++++++++++++
 .../factory/DefaultResponseValidatorFactory.java   | 61 ++++++++++++++
 .../factory/DefaultResponsesValidatorFactory.java  | 50 +++++++++++
 .../factory/DefaultSchemaValidatorFactory.java     | 43 ++++++++++
 .../DefaultSecuritySchemeValidatorFactory.java     | 34 ++++++++
 .../factory/DefaultServerValidatorFactory.java     | 35 ++++++++
 .../factory/DefaultTagValidatorFactory.java        | 45 ++++++++++
 .../factory/CallbackValidatorFactory.java          | 23 ++++++
 .../factory/ComponentsValidatorFactory.java        | 23 ++++++
 .../factory/EncodingValidatorFactory.java          | 23 ++++++
 .../factory/ExampleValidatorFactory.java           | 23 ++++++
 .../validation/factory/HeaderValidatorFactory.java | 23 ++++++
 .../validation/factory/InfoValidatorFactory.java   | 23 ++++++
 .../validation/factory/LinkValidatorFactory.java   | 23 ++++++
 .../factory/MediaTypeValidatorFactory.java         | 23 ++++++
 .../factory/OasObjectValidatorFactory.java         | 28 +++++++
 .../factory/OasSpecValidatorFactory.java           | 24 ++++++
 .../factory/OpenApiValidatorFactory.java           | 23 ++++++
 .../factory/OperationValidatorFactory.java         | 23 ++++++
 .../factory/ParameterValidatorFactory.java         | 23 ++++++
 .../factory/PathItemValidatorFactory.java          | 23 ++++++
 .../validation/factory/PathsValidatorFactory.java  | 23 ++++++
 .../factory/RequestBodyValidatorFactory.java       | 23 ++++++
 .../factory/ResponseValidatorFactory.java          | 23 ++++++
 .../factory/ResponsesValidatorFactory.java         | 23 ++++++
 .../validation/factory/SchemaValidatorFactory.java | 23 ++++++
 .../factory/SecuritySchemeValidatorFactory.java    | 23 ++++++
 .../validation/factory/ServerValidatorFactory.java | 23 ++++++
 .../validation/factory/TagValidatorFactory.java    | 23 ++++++
 41 files changed, 1541 insertions(+)

diff --git a/oas-validator/oas-validator-compliance/pom.xml b/oas-validator/oas-validator-compliance/pom.xml
index d1bd9a8..0e40c26 100755
--- a/oas-validator/oas-validator-compliance/pom.xml
+++ b/oas-validator/oas-validator-compliance/pom.xml
@@ -30,6 +30,10 @@
 
   <artifactId>oas-validator-compliance</artifactId>
 
+  <properties>
+    <log4j2.version>2.11.0</log4j2.version>
+  </properties>
+
   <dependencies>
 
     <dependency>
@@ -38,6 +42,23 @@
       <version>${project.version}</version>
     </dependency>
 
+    <dependency>
+      <groupId>org.springframework</groupId>
+      <artifactId>spring-context</artifactId>
+    </dependency>
+
+    <dependency>
+      <groupId>org.slf4j</groupId>
+      <artifactId>slf4j-api</artifactId>
+      <scope>provided</scope>
+    </dependency>
+
+    <dependency>
+      <groupId>org.slf4j</groupId>
+      <artifactId>jul-to-slf4j</artifactId>
+      <scope>provided</scope>
+    </dependency>
+
     <!-- test deps -->
     <dependency>
       <groupId>org.apache.servicecomb.toolkit</groupId>
diff --git a/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultComponentsValidatorFactory.java b/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultComponentsValidatorFactory.java
new file mode 100644
index 0000000..2ff27b5
--- /dev/null
+++ b/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultComponentsValidatorFactory.java
@@ -0,0 +1,96 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compliance.factory;
+
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.List;
+
+import org.apache.servicecomb.toolkit.oasv.compliance.validator.components.ComponentsKeysValidators;
+import org.apache.servicecomb.toolkit.oasv.validation.api.ComponentsValidator;
+import org.apache.servicecomb.toolkit.oasv.validation.factory.ComponentsValidatorFactory;
+import org.apache.servicecomb.toolkit.oasv.validation.factory.HeaderValidatorFactory;
+import org.apache.servicecomb.toolkit.oasv.validation.factory.ParameterValidatorFactory;
+import org.apache.servicecomb.toolkit.oasv.validation.factory.RequestBodyValidatorFactory;
+import org.apache.servicecomb.toolkit.oasv.validation.factory.ResponseValidatorFactory;
+import org.apache.servicecomb.toolkit.oasv.validation.factory.SchemaValidatorFactory;
+import org.apache.servicecomb.toolkit.oasv.validation.factory.SecuritySchemeValidatorFactory;
+import org.apache.servicecomb.toolkit.oasv.validation.skeleton.components.ComponentsHeadersValuesValidator;
+import org.apache.servicecomb.toolkit.oasv.validation.skeleton.components.ComponentsParametersValuesValidator;
+import org.apache.servicecomb.toolkit.oasv.validation.skeleton.components.ComponentsRequestBodiesValuesValidator;
+import org.apache.servicecomb.toolkit.oasv.validation.skeleton.components.ComponentsResponsesValuesValidator;
+import org.apache.servicecomb.toolkit.oasv.validation.skeleton.components.ComponentsSchemasValuesValidator;
+import org.apache.servicecomb.toolkit.oasv.validation.skeleton.components.ComponentsSecuritySchemesValuesValidator;
+import org.springframework.stereotype.Component;
+
+
+@Component
+public class DefaultComponentsValidatorFactory implements ComponentsValidatorFactory {
+
+  private HeaderValidatorFactory headerValidatorFactory;
+
+  private ParameterValidatorFactory parameterValidatorFactory;
+
+  private RequestBodyValidatorFactory requestBodyValidatorFactory;
+
+  private ResponseValidatorFactory responseValidatorFactory;
+
+  private SchemaValidatorFactory schemaValidatorFactory;
+
+  private SecuritySchemeValidatorFactory securitySchemeValidatorFactory;
+
+  public DefaultComponentsValidatorFactory(
+      HeaderValidatorFactory headerValidatorFactory,
+      ParameterValidatorFactory parameterValidatorFactory,
+      RequestBodyValidatorFactory requestBodyValidatorFactory,
+      ResponseValidatorFactory responseValidatorFactory,
+      SchemaValidatorFactory schemaValidatorFactory,
+      SecuritySchemeValidatorFactory securitySchemeValidatorFactory) {
+    this.headerValidatorFactory = headerValidatorFactory;
+    this.parameterValidatorFactory = parameterValidatorFactory;
+    this.requestBodyValidatorFactory = requestBodyValidatorFactory;
+    this.responseValidatorFactory = responseValidatorFactory;
+    this.schemaValidatorFactory = schemaValidatorFactory;
+    this.securitySchemeValidatorFactory = securitySchemeValidatorFactory;
+  }
+
+  @Override
+  public List<ComponentsValidator> create() {
+    List<ComponentsValidator> validators = new ArrayList<>();
+
+    // skeletons
+    validators.add(new ComponentsHeadersValuesValidator(headerValidatorFactory.create()));
+    validators.add(new ComponentsParametersValuesValidator(parameterValidatorFactory.create()));
+    validators.add(new ComponentsRequestBodiesValuesValidator(requestBodyValidatorFactory.create()));
+    validators.add(new ComponentsResponsesValuesValidator(responseValidatorFactory.create()));
+    validators.add(new ComponentsSchemasValuesValidator(schemaValidatorFactory.create()));
+    validators.add(new ComponentsSecuritySchemesValuesValidator(securitySchemeValidatorFactory.create()));
+
+    // concretes
+    validators.add(ComponentsKeysValidators.CALLBACKS_UPPER_CAMEL_CASE_VALIDATOR);
+    validators.add(ComponentsKeysValidators.EXAMPLES_UPPER_CAMEL_CASE_VALIDATOR);
+    validators.add(ComponentsKeysValidators.HEADERS_UPPER_HYPHEN_CASE_VALIDATOR);
+    validators.add(ComponentsKeysValidators.LINKS_UPPER_CAMEL_CASE_VALIDATOR);
+    validators.add(ComponentsKeysValidators.PARAMETERS_UPPER_CAMEL_CASE_VALIDATOR);
+    validators.add(ComponentsKeysValidators.REQUEST_BODIES_UPPER_CAMEL_CASE_VALIDATOR);
+    validators.add(ComponentsKeysValidators.RESPONSES_UPPER_CAMEL_CASE_VALIDATOR);
+    validators.add(ComponentsKeysValidators.SCHEMAS_UPPER_CAMEL_CASE_VALIDATOR);
+
+    return Collections.unmodifiableList(validators);
+  }
+}
diff --git a/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultEncodingValidatorFactory.java b/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultEncodingValidatorFactory.java
new file mode 100644
index 0000000..8b62a11
--- /dev/null
+++ b/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultEncodingValidatorFactory.java
@@ -0,0 +1,54 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compliance.factory;
+
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.List;
+
+import org.apache.servicecomb.toolkit.oasv.compliance.validator.encoding.EncodingKeysValidators;
+import org.apache.servicecomb.toolkit.oasv.validation.api.EncodingValidator;
+import org.apache.servicecomb.toolkit.oasv.validation.factory.EncodingValidatorFactory;
+import org.apache.servicecomb.toolkit.oasv.validation.factory.HeaderValidatorFactory;
+import org.apache.servicecomb.toolkit.oasv.validation.skeleton.encoding.EncodingHeadersValuesValidator;
+import org.springframework.stereotype.Component;
+
+@Component
+public class DefaultEncodingValidatorFactory implements EncodingValidatorFactory {
+
+  private final HeaderValidatorFactory headerValidatorFactory;
+
+  public DefaultEncodingValidatorFactory(
+      HeaderValidatorFactory headerValidatorFactory) {
+    this.headerValidatorFactory = headerValidatorFactory;
+  }
+
+  @Override
+  public List<EncodingValidator> create() {
+
+    List<EncodingValidator> validators = new ArrayList<>();
+
+    // skeletons
+    validators.add(new EncodingHeadersValuesValidator(headerValidatorFactory.create()));
+
+    // concrete
+    validators.add(EncodingKeysValidators.HEADERS_UPPER_HYPHEN_CASE_VALIDATOR);
+
+    return Collections.unmodifiableList(validators);
+  }
+}
diff --git a/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultHeaderValidatorFactory.java b/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultHeaderValidatorFactory.java
new file mode 100644
index 0000000..13ef15d
--- /dev/null
+++ b/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultHeaderValidatorFactory.java
@@ -0,0 +1,54 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compliance.factory;
+
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.List;
+
+import org.apache.servicecomb.toolkit.oasv.compliance.validator.header.HeaderDescriptionRequiredValidator;
+import org.apache.servicecomb.toolkit.oasv.validation.api.HeaderValidator;
+import org.apache.servicecomb.toolkit.oasv.validation.factory.HeaderValidatorFactory;
+import org.apache.servicecomb.toolkit.oasv.validation.factory.SchemaValidatorFactory;
+import org.apache.servicecomb.toolkit.oasv.validation.skeleton.header.HeaderSchemaValidator;
+import org.springframework.stereotype.Component;
+
+@Component
+public class DefaultHeaderValidatorFactory implements HeaderValidatorFactory {
+
+  private final SchemaValidatorFactory schemaValidatorFactory;
+
+  public DefaultHeaderValidatorFactory(
+      SchemaValidatorFactory schemaValidatorFactory) {
+    this.schemaValidatorFactory = schemaValidatorFactory;
+  }
+
+  @Override
+  public List<HeaderValidator> create() {
+
+    List<HeaderValidator> validators = new ArrayList<>();
+
+    // skeletons
+    validators.add(new HeaderSchemaValidator(schemaValidatorFactory.create()));
+
+    // concretes
+    validators.add(new HeaderDescriptionRequiredValidator());
+
+    return Collections.unmodifiableList(validators);
+  }
+}
diff --git a/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultInfoValidatorFactory.java b/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultInfoValidatorFactory.java
new file mode 100644
index 0000000..2564208
--- /dev/null
+++ b/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultInfoValidatorFactory.java
@@ -0,0 +1,42 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compliance.factory;
+
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.List;
+
+import org.apache.servicecomb.toolkit.oasv.compliance.validator.info.InfoDescriptionRequiredValidator;
+import org.apache.servicecomb.toolkit.oasv.validation.api.InfoValidator;
+import org.apache.servicecomb.toolkit.oasv.validation.factory.InfoValidatorFactory;
+import org.springframework.stereotype.Component;
+
+@Component
+public class DefaultInfoValidatorFactory implements InfoValidatorFactory {
+
+  @Override
+  public List<InfoValidator> create() {
+    ArrayList<InfoValidator> validators = new ArrayList<>();
+
+    // concretes
+    validators.add(new InfoDescriptionRequiredValidator());
+
+    return Collections.unmodifiableList(validators);
+  }
+
+}
diff --git a/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultMediaTypeValidatorFactory.java b/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultMediaTypeValidatorFactory.java
new file mode 100644
index 0000000..3a760ba
--- /dev/null
+++ b/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultMediaTypeValidatorFactory.java
@@ -0,0 +1,57 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compliance.factory;
+
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.List;
+
+import org.apache.servicecomb.toolkit.oasv.validation.api.MediaTypeValidator;
+import org.apache.servicecomb.toolkit.oasv.validation.factory.EncodingValidatorFactory;
+import org.apache.servicecomb.toolkit.oasv.validation.factory.MediaTypeValidatorFactory;
+import org.apache.servicecomb.toolkit.oasv.validation.factory.SchemaValidatorFactory;
+import org.apache.servicecomb.toolkit.oasv.validation.skeleton.mediatype.MediaTypeEncodingValidator;
+import org.apache.servicecomb.toolkit.oasv.validation.skeleton.mediatype.MediaTypeSchemaValidator;
+import org.springframework.stereotype.Component;
+
+@Component
+public class DefaultMediaTypeValidatorFactory implements MediaTypeValidatorFactory {
+
+  private final SchemaValidatorFactory schemaValidatorFactory;
+
+  private final EncodingValidatorFactory encodingValidatorFactory;
+
+  public DefaultMediaTypeValidatorFactory(
+      SchemaValidatorFactory schemaValidatorFactory,
+      EncodingValidatorFactory encodingValidatorFactory) {
+    this.schemaValidatorFactory = schemaValidatorFactory;
+    this.encodingValidatorFactory = encodingValidatorFactory;
+  }
+
+  @Override
+  public List<MediaTypeValidator> create() {
+
+    List<MediaTypeValidator> validators = new ArrayList<>();
+
+    // skeletons
+    validators.add(new MediaTypeSchemaValidator(schemaValidatorFactory.create()));
+    validators.add(new MediaTypeEncodingValidator(encodingValidatorFactory.create()));
+
+    return Collections.unmodifiableList(validators);
+  }
+}
diff --git a/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultOasSpecValidatorFactory.java b/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultOasSpecValidatorFactory.java
new file mode 100644
index 0000000..c866fc1
--- /dev/null
+++ b/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultOasSpecValidatorFactory.java
@@ -0,0 +1,41 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compliance.factory;
+
+import org.apache.servicecomb.toolkit.oasv.validation.api.DefaultOasSpecValidator;
+import org.apache.servicecomb.toolkit.oasv.validation.api.OasSpecValidator;
+import org.apache.servicecomb.toolkit.oasv.validation.factory.OasSpecValidatorFactory;
+import org.apache.servicecomb.toolkit.oasv.validation.factory.OpenApiValidatorFactory;
+import org.springframework.stereotype.Component;
+
+@Component
+public class DefaultOasSpecValidatorFactory implements OasSpecValidatorFactory {
+
+  private final OpenApiValidatorFactory openApiValidatorFactory;
+
+  public DefaultOasSpecValidatorFactory(
+      OpenApiValidatorFactory openApiValidatorFactory) {
+    this.openApiValidatorFactory = openApiValidatorFactory;
+  }
+
+  @Override
+  public OasSpecValidator create() {
+    return new DefaultOasSpecValidator(openApiValidatorFactory.create());
+  }
+
+}
diff --git a/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultOpenApiValidatorFactory.java b/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultOpenApiValidatorFactory.java
new file mode 100644
index 0000000..ff1a9c7
--- /dev/null
+++ b/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultOpenApiValidatorFactory.java
@@ -0,0 +1,86 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compliance.factory;
+
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.List;
+
+import org.apache.servicecomb.toolkit.oasv.compliance.validator.openapi.OpenApiSecurityEmptyValidator;
+import org.apache.servicecomb.toolkit.oasv.compliance.validator.openapi.OpenApiTagNotEmptyValidator;
+import org.apache.servicecomb.toolkit.oasv.compliance.validator.openapi.OpenApiVersionValidator;
+import org.apache.servicecomb.toolkit.oasv.validation.api.OpenApiValidator;
+import org.apache.servicecomb.toolkit.oasv.validation.factory.ComponentsValidatorFactory;
+import org.apache.servicecomb.toolkit.oasv.validation.factory.InfoValidatorFactory;
+import org.apache.servicecomb.toolkit.oasv.validation.factory.OpenApiValidatorFactory;
+import org.apache.servicecomb.toolkit.oasv.validation.factory.PathsValidatorFactory;
+import org.apache.servicecomb.toolkit.oasv.validation.factory.ServerValidatorFactory;
+import org.apache.servicecomb.toolkit.oasv.validation.factory.TagValidatorFactory;
+import org.apache.servicecomb.toolkit.oasv.validation.skeleton.openapi.OpenApiComponentsValidator;
+import org.apache.servicecomb.toolkit.oasv.validation.skeleton.openapi.OpenApiInfoValidator;
+import org.apache.servicecomb.toolkit.oasv.validation.skeleton.openapi.OpenApiPathsValidator;
+import org.apache.servicecomb.toolkit.oasv.validation.skeleton.openapi.OpenApiServersValidator;
+import org.apache.servicecomb.toolkit.oasv.validation.skeleton.openapi.OpenApiTagsValidator;
+import org.springframework.stereotype.Component;
+
+@Component
+public class DefaultOpenApiValidatorFactory implements OpenApiValidatorFactory {
+
+  private final TagValidatorFactory tagValidatorFactory;
+
+  private final InfoValidatorFactory infoValidatorFactory;
+
+  private final PathsValidatorFactory pathsValidatorFactory;
+
+  private final ComponentsValidatorFactory componentsValidatorFactory;
+
+  private final ServerValidatorFactory serverValidatorFactory;
+
+  public DefaultOpenApiValidatorFactory(
+      TagValidatorFactory tagValidatorFactory,
+      InfoValidatorFactory infoValidatorFactory,
+      PathsValidatorFactory pathsValidatorFactory,
+      ComponentsValidatorFactory componentsValidatorFactory,
+      ServerValidatorFactory serverValidatorFactory) {
+    this.tagValidatorFactory = tagValidatorFactory;
+    this.infoValidatorFactory = infoValidatorFactory;
+    this.pathsValidatorFactory = pathsValidatorFactory;
+    this.componentsValidatorFactory = componentsValidatorFactory;
+    this.serverValidatorFactory = serverValidatorFactory;
+  }
+
+  @Override
+  public List<OpenApiValidator> create() {
+
+    List<OpenApiValidator> validators = new ArrayList<>();
+
+    // skeletons
+    validators.add(new OpenApiTagsValidator(tagValidatorFactory.create()));
+    validators.add(new OpenApiInfoValidator(infoValidatorFactory.create()));
+    validators.add(new OpenApiPathsValidator(pathsValidatorFactory.create()));
+    validators.add(new OpenApiComponentsValidator(componentsValidatorFactory.create()));
+    validators.add(new OpenApiServersValidator(serverValidatorFactory.create()));
+
+    // concretes
+    validators.add(new OpenApiSecurityEmptyValidator());
+    validators.add(new OpenApiTagNotEmptyValidator());
+    validators.add(new OpenApiVersionValidator());
+
+    return Collections.unmodifiableList(validators);
+  }
+}
diff --git a/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultOperationValidatorFactory.java b/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultOperationValidatorFactory.java
new file mode 100644
index 0000000..67adf45
--- /dev/null
+++ b/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultOperationValidatorFactory.java
@@ -0,0 +1,77 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compliance.factory;
+
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.List;
+
+import org.apache.servicecomb.toolkit.oasv.compliance.validator.operation.OperationIdLowerCamelCaseValidator;
+import org.apache.servicecomb.toolkit.oasv.compliance.validator.operation.OperationServersEmptyValidator;
+import org.apache.servicecomb.toolkit.oasv.compliance.validator.operation.OperationSummaryRequiredValidator;
+import org.apache.servicecomb.toolkit.oasv.compliance.validator.operation.OperationTagsOnlyOneValidator;
+import org.apache.servicecomb.toolkit.oasv.compliance.validator.operation.OperationTagsReferenceValidator;
+import org.apache.servicecomb.toolkit.oasv.validation.api.OperationValidator;
+import org.apache.servicecomb.toolkit.oasv.validation.factory.OperationValidatorFactory;
+import org.apache.servicecomb.toolkit.oasv.validation.factory.ParameterValidatorFactory;
+import org.apache.servicecomb.toolkit.oasv.validation.factory.RequestBodyValidatorFactory;
+import org.apache.servicecomb.toolkit.oasv.validation.factory.ResponsesValidatorFactory;
+import org.apache.servicecomb.toolkit.oasv.validation.skeleton.operation.OperationParametersValidator;
+import org.apache.servicecomb.toolkit.oasv.validation.skeleton.operation.OperationRequestBodyValidator;
+import org.apache.servicecomb.toolkit.oasv.validation.skeleton.operation.OperationResponsesValidator;
+import org.springframework.stereotype.Component;
+
+@Component
+public class DefaultOperationValidatorFactory implements OperationValidatorFactory {
+
+
+  private final ParameterValidatorFactory parameterValidatorFactory;
+
+  private final ResponsesValidatorFactory responsesValidatorFactory;
+
+  private final RequestBodyValidatorFactory requestBodyValidatorFactory;
+
+  public DefaultOperationValidatorFactory(
+      ParameterValidatorFactory parameterValidatorFactory,
+      ResponsesValidatorFactory responsesValidatorFactory,
+      RequestBodyValidatorFactory requestBodyValidatorFactory) {
+    this.parameterValidatorFactory = parameterValidatorFactory;
+    this.responsesValidatorFactory = responsesValidatorFactory;
+    this.requestBodyValidatorFactory = requestBodyValidatorFactory;
+  }
+
+  @Override
+  public List<OperationValidator> create() {
+
+    List<OperationValidator> validators = new ArrayList<>();
+
+    // skeletons
+    validators.add(new OperationParametersValidator(parameterValidatorFactory.create()));
+    validators.add(new OperationResponsesValidator(responsesValidatorFactory.create()));
+    validators.add(new OperationRequestBodyValidator(requestBodyValidatorFactory.create()));
+
+    // concretes
+    validators.add(new OperationIdLowerCamelCaseValidator());
+    validators.add(new OperationSummaryRequiredValidator());
+    validators.add(new OperationTagsOnlyOneValidator());
+    validators.add(new OperationTagsReferenceValidator());
+    validators.add(new OperationServersEmptyValidator());
+
+    return Collections.unmodifiableList(validators);
+  }
+}
diff --git a/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultParameterValidatorFactory.java b/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultParameterValidatorFactory.java
new file mode 100644
index 0000000..0180834
--- /dev/null
+++ b/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultParameterValidatorFactory.java
@@ -0,0 +1,69 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compliance.factory;
+
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.List;
+
+import org.apache.servicecomb.toolkit.oasv.compliance.validator.parameter.ParameterCookieLowerCamelCaseValidator;
+import org.apache.servicecomb.toolkit.oasv.compliance.validator.parameter.ParameterDescriptionRequiredValidator;
+import org.apache.servicecomb.toolkit.oasv.compliance.validator.parameter.ParameterHeaderUpperHyphenCaseValidator;
+import org.apache.servicecomb.toolkit.oasv.compliance.validator.parameter.ParameterPathLowerCamelCaseValidator;
+import org.apache.servicecomb.toolkit.oasv.compliance.validator.parameter.ParameterQueryLowerCamelCaseValidator;
+import org.apache.servicecomb.toolkit.oasv.validation.api.ParameterValidator;
+import org.apache.servicecomb.toolkit.oasv.validation.factory.MediaTypeValidatorFactory;
+import org.apache.servicecomb.toolkit.oasv.validation.factory.ParameterValidatorFactory;
+import org.apache.servicecomb.toolkit.oasv.validation.factory.SchemaValidatorFactory;
+import org.apache.servicecomb.toolkit.oasv.validation.skeleton.parameter.ParameterContentValidator;
+import org.apache.servicecomb.toolkit.oasv.validation.skeleton.parameter.ParameterSchemaValidator;
+import org.springframework.stereotype.Component;
+
+@Component
+public class DefaultParameterValidatorFactory implements ParameterValidatorFactory {
+
+  private final SchemaValidatorFactory schemaValidatorFactory;
+
+  private final MediaTypeValidatorFactory mediaTypeValidatorFactory;
+
+  public DefaultParameterValidatorFactory(
+      SchemaValidatorFactory schemaValidatorFactory,
+      MediaTypeValidatorFactory mediaTypeValidatorFactory) {
+    this.schemaValidatorFactory = schemaValidatorFactory;
+    this.mediaTypeValidatorFactory = mediaTypeValidatorFactory;
+  }
+
+  @Override
+  public List<ParameterValidator> create() {
+
+    List<ParameterValidator> validators = new ArrayList<>();
+
+    // skeletons
+    validators.add(new ParameterSchemaValidator(schemaValidatorFactory.create()));
+    validators.add(new ParameterContentValidator(mediaTypeValidatorFactory.create()));
+
+    // concretes
+    validators.add(new ParameterCookieLowerCamelCaseValidator());
+    validators.add(new ParameterHeaderUpperHyphenCaseValidator());
+    validators.add(new ParameterPathLowerCamelCaseValidator());
+    validators.add(new ParameterQueryLowerCamelCaseValidator());
+    validators.add(new ParameterDescriptionRequiredValidator());
+
+    return Collections.unmodifiableList(validators);
+  }
+}
diff --git a/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultPathItemValidatorFactory.java b/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultPathItemValidatorFactory.java
new file mode 100644
index 0000000..8698317
--- /dev/null
+++ b/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultPathItemValidatorFactory.java
@@ -0,0 +1,57 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compliance.factory;
+
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.List;
+
+import org.apache.servicecomb.toolkit.oasv.validation.api.PathItemValidator;
+import org.apache.servicecomb.toolkit.oasv.validation.factory.OperationValidatorFactory;
+import org.apache.servicecomb.toolkit.oasv.validation.factory.ParameterValidatorFactory;
+import org.apache.servicecomb.toolkit.oasv.validation.factory.PathItemValidatorFactory;
+import org.apache.servicecomb.toolkit.oasv.validation.skeleton.pathitem.PathItemOperationsValidator;
+import org.apache.servicecomb.toolkit.oasv.validation.skeleton.pathitem.PathItemParametersValidator;
+import org.springframework.stereotype.Component;
+
+@Component
+public class DefaultPathItemValidatorFactory implements PathItemValidatorFactory {
+
+  private final OperationValidatorFactory operationValidatorFactory;
+
+  private final ParameterValidatorFactory parameterValidatorFactory;
+
+  public DefaultPathItemValidatorFactory(
+      OperationValidatorFactory operationValidatorFactory,
+      ParameterValidatorFactory parameterValidatorFactory) {
+    this.operationValidatorFactory = operationValidatorFactory;
+    this.parameterValidatorFactory = parameterValidatorFactory;
+  }
+
+  @Override
+  public List<PathItemValidator> create() {
+    ArrayList<PathItemValidator> validators = new ArrayList<>();
+
+    // skeletons
+    new PathItemOperationsValidator(operationValidatorFactory.create());
+    new PathItemParametersValidator(parameterValidatorFactory.create());
+
+    return Collections.unmodifiableList(validators);
+  }
+
+}
diff --git a/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultPathsValidatorFactory.java b/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultPathsValidatorFactory.java
new file mode 100644
index 0000000..e92faf7
--- /dev/null
+++ b/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultPathsValidatorFactory.java
@@ -0,0 +1,54 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compliance.factory;
+
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.List;
+
+import org.apache.servicecomb.toolkit.oasv.compliance.validator.paths.PathsLowerCamelCaseValidator;
+import org.apache.servicecomb.toolkit.oasv.validation.api.PathsValidator;
+import org.apache.servicecomb.toolkit.oasv.validation.factory.PathItemValidatorFactory;
+import org.apache.servicecomb.toolkit.oasv.validation.factory.PathsValidatorFactory;
+import org.apache.servicecomb.toolkit.oasv.validation.skeleton.paths.PathsPathItemsValidator;
+import org.springframework.stereotype.Component;
+
+@Component
+public class DefaultPathsValidatorFactory implements PathsValidatorFactory {
+
+  private final PathItemValidatorFactory pathItemValidatorFactory;
+
+  public DefaultPathsValidatorFactory(
+      PathItemValidatorFactory pathItemValidatorFactory) {
+    this.pathItemValidatorFactory = pathItemValidatorFactory;
+  }
+
+  @Override
+  public List<PathsValidator> create() {
+    List<PathsValidator> validators = new ArrayList<>();
+
+    // skeletons
+    validators.add(new PathsPathItemsValidator(pathItemValidatorFactory.create()));
+
+    // concretes
+    validators.add(new PathsLowerCamelCaseValidator());
+
+    return Collections.unmodifiableList(validators);
+  }
+
+}
diff --git a/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultRequestBodyValidatorFactory.java b/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultRequestBodyValidatorFactory.java
new file mode 100644
index 0000000..08c9f1d
--- /dev/null
+++ b/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultRequestBodyValidatorFactory.java
@@ -0,0 +1,53 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compliance.factory;
+
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.List;
+
+import org.apache.servicecomb.toolkit.oasv.compliance.validator.requestbody.RequestBodyDescriptionRequiredValidator;
+import org.apache.servicecomb.toolkit.oasv.validation.api.RequestBodyValidator;
+import org.apache.servicecomb.toolkit.oasv.validation.factory.MediaTypeValidatorFactory;
+import org.apache.servicecomb.toolkit.oasv.validation.factory.RequestBodyValidatorFactory;
+import org.apache.servicecomb.toolkit.oasv.validation.skeleton.requestbody.RequestBodyContentValidator;
+import org.springframework.stereotype.Component;
+
+@Component
+public class DefaultRequestBodyValidatorFactory implements RequestBodyValidatorFactory {
+
+  private final MediaTypeValidatorFactory mediaTypeValidatorFactory;
+
+  public DefaultRequestBodyValidatorFactory(
+      MediaTypeValidatorFactory mediaTypeValidatorFactory) {
+    this.mediaTypeValidatorFactory = mediaTypeValidatorFactory;
+  }
+
+  @Override
+  public List<RequestBodyValidator> create() {
+
+    List<RequestBodyValidator> validators = new ArrayList<>();
+
+    // skeletons
+    validators.add(new RequestBodyContentValidator(mediaTypeValidatorFactory.create()));
+
+    // concretes
+    validators.add(new RequestBodyDescriptionRequiredValidator());
+    return Collections.unmodifiableList(validators);
+  }
+}
diff --git a/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultResponseValidatorFactory.java b/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultResponseValidatorFactory.java
new file mode 100644
index 0000000..b3823b3
--- /dev/null
+++ b/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultResponseValidatorFactory.java
@@ -0,0 +1,61 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compliance.factory;
+
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.List;
+
+import org.apache.servicecomb.toolkit.oasv.compliance.validator.response.ResponseKeysValidators;
+import org.apache.servicecomb.toolkit.oasv.validation.api.ResponseValidator;
+import org.apache.servicecomb.toolkit.oasv.validation.factory.HeaderValidatorFactory;
+import org.apache.servicecomb.toolkit.oasv.validation.factory.MediaTypeValidatorFactory;
+import org.apache.servicecomb.toolkit.oasv.validation.factory.ResponseValidatorFactory;
+import org.apache.servicecomb.toolkit.oasv.validation.skeleton.response.ResponseContentValidator;
+import org.apache.servicecomb.toolkit.oasv.validation.skeleton.response.ResponseHeadersValuesValidator;
+import org.springframework.stereotype.Component;
+
+@Component
+public class DefaultResponseValidatorFactory implements ResponseValidatorFactory {
+
+  private final MediaTypeValidatorFactory mediaTypeValidatorFactory;
+
+  private final HeaderValidatorFactory headerValidatorFactory;
+
+  public DefaultResponseValidatorFactory(
+      MediaTypeValidatorFactory mediaTypeValidatorFactory,
+      HeaderValidatorFactory headerValidatorFactory) {
+    this.mediaTypeValidatorFactory = mediaTypeValidatorFactory;
+    this.headerValidatorFactory = headerValidatorFactory;
+  }
+
+  @Override
+  public List<ResponseValidator> create() {
+
+    List<ResponseValidator> validators = new ArrayList<>();
+
+    // skeletons
+    validators.add(new ResponseContentValidator(mediaTypeValidatorFactory.create()));
+    validators.add(new ResponseHeadersValuesValidator(headerValidatorFactory.create()));
+
+    // concretes
+    validators.add(ResponseKeysValidators.HEADERS_UPPER_HYPHEN_CASE_VALIDATOR);
+
+    return Collections.unmodifiableList(validators);
+  }
+}
diff --git a/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultResponsesValidatorFactory.java b/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultResponsesValidatorFactory.java
new file mode 100644
index 0000000..6c55486
--- /dev/null
+++ b/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultResponsesValidatorFactory.java
@@ -0,0 +1,50 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compliance.factory;
+
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.List;
+
+import org.apache.servicecomb.toolkit.oasv.validation.api.ResponsesValidator;
+import org.apache.servicecomb.toolkit.oasv.validation.factory.ResponseValidatorFactory;
+import org.apache.servicecomb.toolkit.oasv.validation.factory.ResponsesValidatorFactory;
+import org.apache.servicecomb.toolkit.oasv.validation.skeleton.responses.ResponsesResponsesValidator;
+import org.springframework.stereotype.Component;
+
+@Component
+public class DefaultResponsesValidatorFactory implements ResponsesValidatorFactory {
+
+  private final ResponseValidatorFactory responseValidatorFactory;
+
+  public DefaultResponsesValidatorFactory(
+      ResponseValidatorFactory responseValidatorFactory) {
+    this.responseValidatorFactory = responseValidatorFactory;
+  }
+
+  @Override
+  public List<ResponsesValidator> create() {
+
+    List<ResponsesValidator> validators = new ArrayList<>();
+
+    // skeletons
+    validators.add(new ResponsesResponsesValidator(responseValidatorFactory.create()));
+
+    return Collections.unmodifiableList(validators);
+  }
+}
diff --git a/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultSchemaValidatorFactory.java b/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultSchemaValidatorFactory.java
new file mode 100644
index 0000000..7e099b0
--- /dev/null
+++ b/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultSchemaValidatorFactory.java
@@ -0,0 +1,43 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compliance.factory;
+
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.List;
+
+import org.apache.servicecomb.toolkit.oasv.compliance.validator.schema.SchemaKeysValidators;
+import org.apache.servicecomb.toolkit.oasv.compliance.validator.schema.SchemaTitleValidator;
+import org.apache.servicecomb.toolkit.oasv.validation.api.SchemaValidator;
+import org.apache.servicecomb.toolkit.oasv.validation.factory.SchemaValidatorFactory;
+import org.springframework.stereotype.Component;
+
+@Component
+public class DefaultSchemaValidatorFactory implements SchemaValidatorFactory {
+
+  @Override
+  public List<SchemaValidator> create() {
+    ArrayList<SchemaValidator> validators = new ArrayList<>();
+
+    // concretes
+    validators.add(new SchemaTitleValidator());
+    validators.add(SchemaKeysValidators.PROPERTIES_LOWER_CAMEL_CASE_VALIDATOR);
+
+    return Collections.unmodifiableList(validators);
+  }
+}
diff --git a/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultSecuritySchemeValidatorFactory.java b/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultSecuritySchemeValidatorFactory.java
new file mode 100644
index 0000000..5eec0e6
--- /dev/null
+++ b/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultSecuritySchemeValidatorFactory.java
@@ -0,0 +1,34 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compliance.factory;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.apache.servicecomb.toolkit.oasv.validation.api.SecuritySchemeValidator;
+import org.apache.servicecomb.toolkit.oasv.validation.factory.SecuritySchemeValidatorFactory;
+import org.springframework.stereotype.Component;
+
+@Component
+public class DefaultSecuritySchemeValidatorFactory implements SecuritySchemeValidatorFactory {
+
+  @Override
+  public List<SecuritySchemeValidator> create() {
+    return Collections.emptyList();
+  }
+}
diff --git a/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultServerValidatorFactory.java b/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultServerValidatorFactory.java
new file mode 100644
index 0000000..53f075a
--- /dev/null
+++ b/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultServerValidatorFactory.java
@@ -0,0 +1,35 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compliance.factory;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.apache.servicecomb.toolkit.oasv.validation.api.ServerValidator;
+import org.apache.servicecomb.toolkit.oasv.validation.factory.ServerValidatorFactory;
+import org.springframework.stereotype.Component;
+
+@Component
+public class DefaultServerValidatorFactory implements ServerValidatorFactory {
+
+  @Override
+  public List<ServerValidator> create() {
+    return Collections.emptyList();
+  }
+
+}
diff --git a/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultTagValidatorFactory.java b/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultTagValidatorFactory.java
new file mode 100644
index 0000000..2969779
--- /dev/null
+++ b/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultTagValidatorFactory.java
@@ -0,0 +1,45 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compliance.factory;
+
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.List;
+
+import org.apache.servicecomb.toolkit.oasv.compliance.validator.tag.TagDescriptionRequiredValidator;
+import org.apache.servicecomb.toolkit.oasv.compliance.validator.tag.TagNameUpperCamelCaseValidator;
+import org.apache.servicecomb.toolkit.oasv.compliance.validator.tag.TagReferenceValidator;
+import org.apache.servicecomb.toolkit.oasv.validation.api.TagValidator;
+import org.apache.servicecomb.toolkit.oasv.validation.factory.TagValidatorFactory;
+import org.springframework.stereotype.Component;
+
+@Component
+public class DefaultTagValidatorFactory implements TagValidatorFactory {
+
+  @Override
+  public List<TagValidator> create() {
+    ArrayList<TagValidator> validators = new ArrayList<>();
+
+    // concretes
+    validators.add(new TagDescriptionRequiredValidator());
+    validators.add(new TagNameUpperCamelCaseValidator());
+    validators.add(new TagReferenceValidator());
+
+    return Collections.unmodifiableList(validators);
+  }
+}
diff --git a/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/CallbackValidatorFactory.java b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/CallbackValidatorFactory.java
new file mode 100644
index 0000000..ea66e61
--- /dev/null
+++ b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/CallbackValidatorFactory.java
@@ -0,0 +1,23 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.validation.factory;
+
+import org.apache.servicecomb.toolkit.oasv.validation.api.CallbackValidator;
+
+public interface CallbackValidatorFactory extends OasObjectValidatorFactory<CallbackValidator> {
+}
diff --git a/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/ComponentsValidatorFactory.java b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/ComponentsValidatorFactory.java
new file mode 100644
index 0000000..af003d4
--- /dev/null
+++ b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/ComponentsValidatorFactory.java
@@ -0,0 +1,23 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.validation.factory;
+
+import org.apache.servicecomb.toolkit.oasv.validation.api.ComponentsValidator;
+
+public interface ComponentsValidatorFactory extends OasObjectValidatorFactory<ComponentsValidator> {
+}
diff --git a/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/EncodingValidatorFactory.java b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/EncodingValidatorFactory.java
new file mode 100644
index 0000000..2bc940d
--- /dev/null
+++ b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/EncodingValidatorFactory.java
@@ -0,0 +1,23 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.validation.factory;
+
+import org.apache.servicecomb.toolkit.oasv.validation.api.EncodingValidator;
+
+public interface EncodingValidatorFactory extends OasObjectValidatorFactory<EncodingValidator> {
+}
diff --git a/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/ExampleValidatorFactory.java b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/ExampleValidatorFactory.java
new file mode 100644
index 0000000..b748869
--- /dev/null
+++ b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/ExampleValidatorFactory.java
@@ -0,0 +1,23 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.validation.factory;
+
+import org.apache.servicecomb.toolkit.oasv.validation.api.ExampleValidator;
+
+public interface ExampleValidatorFactory extends OasObjectValidatorFactory<ExampleValidator> {
+}
diff --git a/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/HeaderValidatorFactory.java b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/HeaderValidatorFactory.java
new file mode 100644
index 0000000..e79a4e2
--- /dev/null
+++ b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/HeaderValidatorFactory.java
@@ -0,0 +1,23 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.validation.factory;
+
+import org.apache.servicecomb.toolkit.oasv.validation.api.HeaderValidator;
+
+public interface HeaderValidatorFactory extends OasObjectValidatorFactory<HeaderValidator> {
+}
diff --git a/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/InfoValidatorFactory.java b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/InfoValidatorFactory.java
new file mode 100644
index 0000000..77fb3b8
--- /dev/null
+++ b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/InfoValidatorFactory.java
@@ -0,0 +1,23 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.validation.factory;
+
+import org.apache.servicecomb.toolkit.oasv.validation.api.InfoValidator;
+
+public interface InfoValidatorFactory extends OasObjectValidatorFactory<InfoValidator> {
+}
diff --git a/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/LinkValidatorFactory.java b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/LinkValidatorFactory.java
new file mode 100644
index 0000000..380f16d
--- /dev/null
+++ b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/LinkValidatorFactory.java
@@ -0,0 +1,23 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.validation.factory;
+
+import org.apache.servicecomb.toolkit.oasv.validation.api.LinkValidator;
+
+public interface LinkValidatorFactory extends OasObjectValidatorFactory<LinkValidator> {
+}
diff --git a/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/MediaTypeValidatorFactory.java b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/MediaTypeValidatorFactory.java
new file mode 100644
index 0000000..0c0ee0f
--- /dev/null
+++ b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/MediaTypeValidatorFactory.java
@@ -0,0 +1,23 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.validation.factory;
+
+import org.apache.servicecomb.toolkit.oasv.validation.api.MediaTypeValidator;
+
+public interface MediaTypeValidatorFactory extends OasObjectValidatorFactory<MediaTypeValidator> {
+}
diff --git a/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/OasObjectValidatorFactory.java b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/OasObjectValidatorFactory.java
new file mode 100644
index 0000000..58942c0
--- /dev/null
+++ b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/OasObjectValidatorFactory.java
@@ -0,0 +1,28 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.validation.factory;
+
+import java.util.List;
+
+import org.apache.servicecomb.toolkit.oasv.validation.api.OasObjectValidator;
+
+public interface OasObjectValidatorFactory<T extends OasObjectValidator> {
+
+  List<T> create();
+
+}
diff --git a/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/OasSpecValidatorFactory.java b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/OasSpecValidatorFactory.java
new file mode 100644
index 0000000..c1a518c
--- /dev/null
+++ b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/OasSpecValidatorFactory.java
@@ -0,0 +1,24 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.validation.factory;
+
+import org.apache.servicecomb.toolkit.oasv.validation.api.OasSpecValidator;
+
+public interface OasSpecValidatorFactory {
+  OasSpecValidator create();
+}
diff --git a/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/OpenApiValidatorFactory.java b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/OpenApiValidatorFactory.java
new file mode 100644
index 0000000..3f0c85d
--- /dev/null
+++ b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/OpenApiValidatorFactory.java
@@ -0,0 +1,23 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.validation.factory;
+
+import org.apache.servicecomb.toolkit.oasv.validation.api.OpenApiValidator;
+
+public interface OpenApiValidatorFactory extends OasObjectValidatorFactory<OpenApiValidator> {
+}
diff --git a/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/OperationValidatorFactory.java b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/OperationValidatorFactory.java
new file mode 100644
index 0000000..343e8fc
--- /dev/null
+++ b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/OperationValidatorFactory.java
@@ -0,0 +1,23 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.validation.factory;
+
+import org.apache.servicecomb.toolkit.oasv.validation.api.OperationValidator;
+
+public interface OperationValidatorFactory extends OasObjectValidatorFactory<OperationValidator> {
+}
diff --git a/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/ParameterValidatorFactory.java b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/ParameterValidatorFactory.java
new file mode 100644
index 0000000..41b6c8f
--- /dev/null
+++ b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/ParameterValidatorFactory.java
@@ -0,0 +1,23 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.validation.factory;
+
+import org.apache.servicecomb.toolkit.oasv.validation.api.ParameterValidator;
+
+public interface ParameterValidatorFactory extends OasObjectValidatorFactory<ParameterValidator> {
+}
diff --git a/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/PathItemValidatorFactory.java b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/PathItemValidatorFactory.java
new file mode 100644
index 0000000..1f042b0
--- /dev/null
+++ b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/PathItemValidatorFactory.java
@@ -0,0 +1,23 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.validation.factory;
+
+import org.apache.servicecomb.toolkit.oasv.validation.api.PathItemValidator;
+
+public interface PathItemValidatorFactory extends OasObjectValidatorFactory<PathItemValidator> {
+}
diff --git a/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/PathsValidatorFactory.java b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/PathsValidatorFactory.java
new file mode 100644
index 0000000..3a6bc00
--- /dev/null
+++ b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/PathsValidatorFactory.java
@@ -0,0 +1,23 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.validation.factory;
+
+import org.apache.servicecomb.toolkit.oasv.validation.api.PathsValidator;
+
+public interface PathsValidatorFactory extends OasObjectValidatorFactory<PathsValidator> {
+}
diff --git a/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/RequestBodyValidatorFactory.java b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/RequestBodyValidatorFactory.java
new file mode 100644
index 0000000..617bf4a
--- /dev/null
+++ b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/RequestBodyValidatorFactory.java
@@ -0,0 +1,23 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.validation.factory;
+
+import org.apache.servicecomb.toolkit.oasv.validation.api.RequestBodyValidator;
+
+public interface RequestBodyValidatorFactory extends OasObjectValidatorFactory<RequestBodyValidator> {
+}
diff --git a/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/ResponseValidatorFactory.java b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/ResponseValidatorFactory.java
new file mode 100644
index 0000000..5a454f0
--- /dev/null
+++ b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/ResponseValidatorFactory.java
@@ -0,0 +1,23 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.validation.factory;
+
+import org.apache.servicecomb.toolkit.oasv.validation.api.ResponseValidator;
+
+public interface ResponseValidatorFactory extends OasObjectValidatorFactory<ResponseValidator> {
+}
diff --git a/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/ResponsesValidatorFactory.java b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/ResponsesValidatorFactory.java
new file mode 100644
index 0000000..3b5117c
--- /dev/null
+++ b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/ResponsesValidatorFactory.java
@@ -0,0 +1,23 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.validation.factory;
+
+import org.apache.servicecomb.toolkit.oasv.validation.api.ResponsesValidator;
+
+public interface ResponsesValidatorFactory extends OasObjectValidatorFactory<ResponsesValidator> {
+}
diff --git a/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/SchemaValidatorFactory.java b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/SchemaValidatorFactory.java
new file mode 100644
index 0000000..abc3c8b
--- /dev/null
+++ b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/SchemaValidatorFactory.java
@@ -0,0 +1,23 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.validation.factory;
+
+import org.apache.servicecomb.toolkit.oasv.validation.api.SchemaValidator;
+
+public interface SchemaValidatorFactory extends OasObjectValidatorFactory<SchemaValidator> {
+}
diff --git a/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/SecuritySchemeValidatorFactory.java b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/SecuritySchemeValidatorFactory.java
new file mode 100644
index 0000000..bafc35a
--- /dev/null
+++ b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/SecuritySchemeValidatorFactory.java
@@ -0,0 +1,23 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.validation.factory;
+
+import org.apache.servicecomb.toolkit.oasv.validation.api.SecuritySchemeValidator;
+
+public interface SecuritySchemeValidatorFactory extends OasObjectValidatorFactory<SecuritySchemeValidator> {
+}
diff --git a/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/ServerValidatorFactory.java b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/ServerValidatorFactory.java
new file mode 100644
index 0000000..c47826b
--- /dev/null
+++ b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/ServerValidatorFactory.java
@@ -0,0 +1,23 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.validation.factory;
+
+import org.apache.servicecomb.toolkit.oasv.validation.api.ServerValidator;
+
+public interface ServerValidatorFactory extends OasObjectValidatorFactory<ServerValidator> {
+}
diff --git a/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/TagValidatorFactory.java b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/TagValidatorFactory.java
new file mode 100644
index 0000000..e4470a2
--- /dev/null
+++ b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/validation/factory/TagValidatorFactory.java
@@ -0,0 +1,23 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.validation.factory;
+
+import org.apache.servicecomb.toolkit.oasv.validation.api.TagValidator;
+
+public interface TagValidatorFactory extends OasObjectValidatorFactory<TagValidator> {
+}


[servicecomb-toolkit] 14/26: SCB-1553 Integrate oas-validator compliance check to cli Fix license header missing issue

Posted by ni...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ningjiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/servicecomb-toolkit.git

commit fd90d8de826d4d71e2a3c37a78370a64f490c44f
Author: Daniel Qian <ch...@gmail.com>
AuthorDate: Sat Nov 2 09:00:57 2019 +0800

    SCB-1553 Integrate oas-validator compliance check to cli
    Fix license header missing issue
---
 .../oasv/compatibility/CompatibilityCheckParser.java    | 17 +++++++++++++++++
 .../toolkit/oasv/compliance/ComplianceCheckParser.java  | 17 +++++++++++++++++
 .../factory/DefaultOpenApiValidatorFactoryTest.java     | 17 +++++++++++++++++
 3 files changed, 51 insertions(+)

diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/CompatibilityCheckParser.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/CompatibilityCheckParser.java
index 18fa225..13a52f8 100644
--- a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/CompatibilityCheckParser.java
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/CompatibilityCheckParser.java
@@ -1,3 +1,20 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package org.apache.servicecomb.toolkit.oasv.compatibility;
 
 import static java.util.Collections.emptyList;
diff --git a/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/ComplianceCheckParser.java b/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/ComplianceCheckParser.java
index ad08cff..7f0bf4a 100644
--- a/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/ComplianceCheckParser.java
+++ b/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/ComplianceCheckParser.java
@@ -1,3 +1,20 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package org.apache.servicecomb.toolkit.oasv.compliance;
 
 import static java.util.Collections.emptyList;
diff --git a/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultOpenApiValidatorFactoryTest.java b/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultOpenApiValidatorFactoryTest.java
index 7b9f8ef..349efd5 100644
--- a/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultOpenApiValidatorFactoryTest.java
+++ b/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/factory/DefaultOpenApiValidatorFactoryTest.java
@@ -1,3 +1,20 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package org.apache.servicecomb.toolkit.oasv.compliance.factory;
 
 import static org.assertj.core.api.Assertions.assertThat;


[servicecomb-toolkit] 13/26: SCB-1553 Integrate oas-validator compliance check to cli Add oas-validator style check usage to README

Posted by ni...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ningjiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/servicecomb-toolkit.git

commit 5d64553aadb39cbc325a4e866ebf72be1dbe9ac0
Author: Daniel Qian <ch...@gmail.com>
AuthorDate: Fri Nov 1 17:03:07 2019 +0800

    SCB-1553 Integrate oas-validator compliance check to cli
    Add oas-validator style check usage to README
---
 README-ZH.md |  9 +++++++++
 README.md    | 17 ++++++++++++++---
 2 files changed, 23 insertions(+), 3 deletions(-)

diff --git a/README-ZH.md b/README-ZH.md
index 9514ce1..a791b7c 100644
--- a/README-ZH.md
+++ b/README-ZH.md
@@ -272,6 +272,15 @@ $ java -jar toolkit-cli-{version}.jar docgenerate -i swagger.yaml -o ./document
 * -f, --format : ๆŒ‡ๅฎš่พ“ๅ‡บๆ–‡ๆกฃ้ฃŽๆ ผ,็Žฐๆ”ฏๆŒswagger-ui
 ไพ‹๏ผš-f swagger-ui
 
+#### 3.3.3 ๅฅ‘็บฆ้ฃŽๆ ผๆฃ€ๆŸฅ
+
+```shell
+$ java -jar toolkit-cli-{version}.jar checkstyle openapi.yaml
+```
+
+> **checkstyle** Command argument
+* &lt;file&gt; OpenAPI v3 spec yamlๆ–‡ไปถ
+
 ### 3.4 ไฝฟ็”จๆกˆไพ‹
 ๅฏไปฅๅœจ[่ฟ™้‡Œ](./samples/README-ZH.md)ๆ‰พๅˆฐไฝฟ็”จๆ’ไปถ็š„ไธ€ไบ›็คบไพ‹ 
 
diff --git a/README.md b/README.md
index 5a0aabf..1a43352 100644
--- a/README.md
+++ b/README.md
@@ -261,13 +261,24 @@ $ java -jar toolkit-cli-{version}.jar docgenerate -i swagger.yaml -o ./document
 ```
 > **docgenerate** Command option
 * -i, --input. Specifies contract files that follow the OpenAPI specification, supports yaml and json formats, and supports specifying local and network files.
-ไพ‹๏ผš-i http://petstore.swagger.io/v2/swagger.json
+e.g๏ผš-i http://petstore.swagger.io/v2/swagger.json
 * -o, --output. Document output path.
-ไพ‹๏ผš-o ./document
+e.g๏ผš-o ./document
 * -f, --format. Specifies the output document format, now supports swagger-ui
-ไพ‹๏ผš-f swagger-ui
+e.g๏ผš-f swagger-ui
+
+#### 3.3.3 Service contract style checking
+
+```shell
+$ java -jar toolkit-cli-{version}.jar checkstyle openapi.yaml
+```
+
+> **checkstyle** Command argument
+* &lt;file&gt; OpenAPI v3 spec yaml file
+
 
 ### 3.4 Use case
+
 some example of using plugin can be found [here](./samples)
 
 ## 4 Contact us


[servicecomb-toolkit] 25/26: SCB-1555 Integrate oas-validator compability check to cli Remove useless ExampleDiffValidator

Posted by ni...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ningjiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/servicecomb-toolkit.git

commit b3e2995fadcb045179ff46ce795a812bb6e9994f
Author: Daniel Qian <ch...@gmail.com>
AuthorDate: Thu Nov 7 17:19:15 2019 +0800

    SCB-1555 Integrate oas-validator compability check to cli
    Remove useless ExampleDiffValidator
---
 .../DefaultComponentsDiffValidatorFactory.java     |  7 ---
 .../DefaultExampleDiffValidatorFactory.java        | 34 --------------
 .../DefaultExampleDiffValidatorFactoryTest.java    | 43 -----------------
 .../OasDiffValidatorsSkeletonConfiguration.java    | 47 ++++++++++++++-----
 .../diffvalidation/api/ExampleDiffValidator.java   | 23 ---------
 .../factory/ExampleDiffValidatorFactory.java       | 23 ---------
 .../ComponentsExamplesDiffValidator.java           | 54 ----------------------
 7 files changed, 36 insertions(+), 195 deletions(-)

diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultComponentsDiffValidatorFactory.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultComponentsDiffValidatorFactory.java
index 213d441..ab791ee 100644
--- a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultComponentsDiffValidatorFactory.java
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultComponentsDiffValidatorFactory.java
@@ -24,14 +24,12 @@ import java.util.List;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.ComponentsDiffValidator;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.factory.CallbackDiffValidatorFactory;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.factory.ComponentsDiffValidatorFactory;
-import org.apache.servicecomb.toolkit.oasv.diffvalidation.factory.ExampleDiffValidatorFactory;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.factory.HeaderDiffValidatorFactory;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.factory.LinkDiffValidatorFactory;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.factory.ParameterDiffValidatorFactory;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.factory.RequestBodyDiffValidatorFactory;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.factory.ResponseDiffValidatorFactory;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.skeleton.components.ComponentsCallbacksDiffValidator;
-import org.apache.servicecomb.toolkit.oasv.diffvalidation.skeleton.components.ComponentsExamplesDiffValidator;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.skeleton.components.ComponentsHeadersDiffValidator;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.skeleton.components.ComponentsLinksDiffValidator;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.skeleton.components.ComponentsParametersDiffValidator;
@@ -44,8 +42,6 @@ public class DefaultComponentsDiffValidatorFactory implements ComponentsDiffVali
 
   private final CallbackDiffValidatorFactory callbackDiffValidatorFactory;
 
-  private final ExampleDiffValidatorFactory exampleDiffValidatorFactory;
-
   private final HeaderDiffValidatorFactory headerDiffValidatorFactory;
 
   private final LinkDiffValidatorFactory linkDiffValidatorFactory;
@@ -58,14 +54,12 @@ public class DefaultComponentsDiffValidatorFactory implements ComponentsDiffVali
 
   public DefaultComponentsDiffValidatorFactory(
       CallbackDiffValidatorFactory callbackDiffValidatorFactory,
-      ExampleDiffValidatorFactory exampleDiffValidatorFactory,
       HeaderDiffValidatorFactory headerDiffValidatorFactory,
       LinkDiffValidatorFactory linkDiffValidatorFactory,
       ParameterDiffValidatorFactory parameterDiffValidatorFactory,
       RequestBodyDiffValidatorFactory requestBodyDiffValidatorFactory,
       ResponseDiffValidatorFactory responseDiffValidatorFactory) {
     this.callbackDiffValidatorFactory = callbackDiffValidatorFactory;
-    this.exampleDiffValidatorFactory = exampleDiffValidatorFactory;
     this.headerDiffValidatorFactory = headerDiffValidatorFactory;
     this.linkDiffValidatorFactory = linkDiffValidatorFactory;
     this.parameterDiffValidatorFactory = parameterDiffValidatorFactory;
@@ -80,7 +74,6 @@ public class DefaultComponentsDiffValidatorFactory implements ComponentsDiffVali
 
     // skeletons
     validators.add(new ComponentsCallbacksDiffValidator(callbackDiffValidatorFactory.create()));
-    validators.add(new ComponentsExamplesDiffValidator(exampleDiffValidatorFactory.create()));
     validators.add(new ComponentsHeadersDiffValidator(headerDiffValidatorFactory.create()));
     validators.add(new ComponentsLinksDiffValidator(linkDiffValidatorFactory.create()));
     validators.add(new ComponentsParametersDiffValidator(parameterDiffValidatorFactory.create()));
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultExampleDiffValidatorFactory.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultExampleDiffValidatorFactory.java
deleted file mode 100644
index 30d8190..0000000
--- a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultExampleDiffValidatorFactory.java
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.servicecomb.toolkit.oasv.compatibility.factory;
-
-import java.util.Collections;
-import java.util.List;
-
-import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.ExampleDiffValidator;
-import org.apache.servicecomb.toolkit.oasv.diffvalidation.factory.ExampleDiffValidatorFactory;
-import org.springframework.stereotype.Component;
-
-@Component
-public class DefaultExampleDiffValidatorFactory implements ExampleDiffValidatorFactory {
-
-  @Override
-  public List<ExampleDiffValidator> create() {
-    return Collections.emptyList();
-  }
-}
diff --git a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultExampleDiffValidatorFactoryTest.java b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultExampleDiffValidatorFactoryTest.java
deleted file mode 100644
index 989c4af..0000000
--- a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultExampleDiffValidatorFactoryTest.java
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.servicecomb.toolkit.oasv.compatibility.factory;
-
-import static org.assertj.core.api.Assertions.assertThat;
-
-import java.util.List;
-
-import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.ExampleDiffValidator;
-import org.junit.Test;
-import org.junit.runner.RunWith;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.test.context.ContextConfiguration;
-import org.springframework.test.context.junit4.SpringRunner;
-
-@RunWith(SpringRunner.class)
-@ContextConfiguration(classes = DiffValidatorFactoryTestConfiguration.class)
-public class DefaultExampleDiffValidatorFactoryTest {
-
-  @Autowired
-  private DefaultExampleDiffValidatorFactory validatorFactory;
-
-  @Test
-  public void create() {
-    List<ExampleDiffValidator> validators = validatorFactory.create();
-    assertThat(validators).isEmpty();
-  }
-}
diff --git a/oas-validator/oas-validator-core-spring/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/config/OasDiffValidatorsSkeletonConfiguration.java b/oas-validator/oas-validator-core-spring/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/config/OasDiffValidatorsSkeletonConfiguration.java
index 9d2b8eb..8518099 100755
--- a/oas-validator/oas-validator-core-spring/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/config/OasDiffValidatorsSkeletonConfiguration.java
+++ b/oas-validator/oas-validator-core-spring/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/config/OasDiffValidatorsSkeletonConfiguration.java
@@ -17,13 +17,46 @@
 
 package org.apache.servicecomb.toolkit.oasv.diffvalidation.config;
 
-import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.*;
-import org.apache.servicecomb.toolkit.oasv.diffvalidation.skeleton.components.*;
+import java.util.List;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.CallbackDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.ComponentsDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.DefaultOasSpecDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.EncodingDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.HeaderDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.InfoDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.LinkDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.MediaTypeDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasSpecDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OpenApiDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OperationDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.ParameterDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.PathItemDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.PathsDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.RequestBodyDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.ResponseDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.ResponsesDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.SchemaAddValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.SchemaCompareValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.SchemaDelValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.SchemaDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.ServerDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.TagDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.skeleton.components.ComponentsCallbacksDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.skeleton.components.ComponentsHeadersDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.skeleton.components.ComponentsLinksDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.skeleton.components.ComponentsParametersDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.skeleton.components.ComponentsRequestBodiesDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.skeleton.components.ComponentsResponsesDiffValidator;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.skeleton.encoding.EncodingHeadersDiffValidator;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.skeleton.header.HeaderSchemaDiffValidator;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.skeleton.mediatype.MediaTypeEncodingDiffValidator;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.skeleton.mediatype.MediaTypeSchemaDiffValidator;
-import org.apache.servicecomb.toolkit.oasv.diffvalidation.skeleton.openapi.*;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.skeleton.openapi.OpenApiComponentsDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.skeleton.openapi.OpenApiInfoDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.skeleton.openapi.OpenApiPathsDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.skeleton.openapi.OpenApiServersDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.skeleton.openapi.OpenApiTagsDiffValidator;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.skeleton.operation.OperationParametersDiffValidator;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.skeleton.operation.OperationRequestBodyDiffValidator;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.skeleton.operation.OperationResponsesDiffValidator;
@@ -40,8 +73,6 @@ import org.apache.servicecomb.toolkit.oasv.diffvalidation.skeleton.schema.Schema
 import org.springframework.context.annotation.Bean;
 import org.springframework.context.annotation.Configuration;
 
-import java.util.List;
-
 @Configuration
 public class OasDiffValidatorsSkeletonConfiguration {
 
@@ -57,12 +88,6 @@ public class OasDiffValidatorsSkeletonConfiguration {
   }
 
   @Bean
-  public ComponentsDiffValidator componentsExamplesDiffValidator(
-    List<ExampleDiffValidator> diffValidators) {
-    return new ComponentsExamplesDiffValidator(diffValidators);
-  }
-
-  @Bean
   public ComponentsDiffValidator componentsHeadersDiffValidator(
     List<HeaderDiffValidator> diffValidators) {
     return new ComponentsHeadersDiffValidator(diffValidators);
diff --git a/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/api/ExampleDiffValidator.java b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/api/ExampleDiffValidator.java
deleted file mode 100755
index 59fd890..0000000
--- a/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/api/ExampleDiffValidator.java
+++ /dev/null
@@ -1,23 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.servicecomb.toolkit.oasv.diffvalidation.api;
-
-import io.swagger.v3.oas.models.examples.Example;
-
-public interface ExampleDiffValidator extends OasObjectDiffValidator<Example> {
-}
diff --git a/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/ExampleDiffValidatorFactory.java b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/ExampleDiffValidatorFactory.java
deleted file mode 100755
index 237179c..0000000
--- a/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/ExampleDiffValidatorFactory.java
+++ /dev/null
@@ -1,23 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.servicecomb.toolkit.oasv.diffvalidation.factory;
-
-import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.ExampleDiffValidator;
-
-public interface ExampleDiffValidatorFactory extends OasObjectDiffValidatorFactory<ExampleDiffValidator> {
-}
diff --git a/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/skeleton/components/ComponentsExamplesDiffValidator.java b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/skeleton/components/ComponentsExamplesDiffValidator.java
deleted file mode 100755
index 42e86bb..0000000
--- a/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/skeleton/components/ComponentsExamplesDiffValidator.java
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.servicecomb.toolkit.oasv.diffvalidation.skeleton.components;
-
-import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.ComponentsDiffValidator;
-import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.ExampleDiffValidator;
-import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.MapPropertyDiffValidator;
-import org.apache.servicecomb.toolkit.oasv.common.OasObjectType;
-import io.swagger.v3.oas.models.Components;
-import io.swagger.v3.oas.models.examples.Example;
-
-import java.util.List;
-import java.util.Map;
-
-import static org.apache.servicecomb.toolkit.oasv.common.OasObjectType.EXAMPLE;
-
-public class ComponentsExamplesDiffValidator
-  extends MapPropertyDiffValidator<Components, Example>
-  implements ComponentsDiffValidator {
-
-  public ComponentsExamplesDiffValidator(List<ExampleDiffValidator> diffValidators) {
-    super(diffValidators);
-  }
-
-  @Override
-  protected Map<String, Example> getMapProperty(Components oasObject) {
-    return oasObject.getExamples();
-  }
-
-  @Override
-  protected String getMapPropertyName() {
-    return "examples";
-  }
-
-  @Override
-  protected OasObjectType getValueType() {
-    return EXAMPLE;
-  }
-}


[servicecomb-toolkit] 16/26: SCB-1553 Integrate oas-validator compliance check to cli Fix syntax check logical bug.

Posted by ni...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ningjiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/servicecomb-toolkit.git

commit 0927cd177ca8b9e88d25049252ff2a6149e30657
Author: Daniel Qian <ch...@gmail.com>
AuthorDate: Tue Nov 5 22:55:28 2019 +0800

    SCB-1553 Integrate oas-validator compliance check to cli
    Fix syntax check logical bug.
---
 .../compatibility/CompatibilityCheckParser.java    |  9 ----
 .../CompatibilityCheckParserTest.java}             | 40 +++++++----------
 .../toolkit/oasv/compatibility/parser-test.yaml    | 48 +++++++++++++++++++++
 .../oasv/compliance/ComplianceCheckParser.java     |  9 ----
 .../compliance/ComplianceCheckParserTest.java}     | 40 +++++++----------
 .../toolkit/oasv/compliance/parser-test.yaml       | 48 +++++++++++++++++++++
 .../toolkit/oasv/util/SyntaxChecker.java}          | 29 ++++++-------
 .../toolkit/oasv/util/SyntaxCheckerTest.java       | 50 ++++++++++++++++++++++
 .../servicecomb/toolkit/oasv/util/syntax-bad.yaml  | 48 +++++++++++++++++++++
 .../servicecomb/toolkit/oasv/util/syntax-good.yaml | 48 +++++++++++++++++++++
 .../api/controller/CompatibilityController.java    |  5 ++-
 .../web/api/controller/ComplianceController.java   |  3 +-
 12 files changed, 289 insertions(+), 88 deletions(-)

diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/CompatibilityCheckParser.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/CompatibilityCheckParser.java
index 13a52f8..4ca49f7 100644
--- a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/CompatibilityCheckParser.java
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/CompatibilityCheckParser.java
@@ -17,10 +17,6 @@
 
 package org.apache.servicecomb.toolkit.oasv.compatibility;
 
-import static java.util.Collections.emptyList;
-
-import java.util.List;
-
 import io.swagger.v3.parser.OpenAPIV3Parser;
 import io.swagger.v3.parser.core.models.ParseOptions;
 import io.swagger.v3.parser.core.models.SwaggerParseResult;
@@ -36,11 +32,6 @@ public abstract class CompatibilityCheckParser {
     return parser.readContents(yaml, null, createParseOptions());
   }
 
-  public static List<String> checkSyntax(String yaml) {
-    SwaggerParseResult result = parseYaml(yaml);
-    return result.getMessages() == null ? emptyList() : result.getMessages();
-  }
-
   private static ParseOptions createParseOptions() {
 
     ParseOptions parseOptions = new ParseOptions();
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/CompatibilityCheckParser.java b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/CompatibilityCheckParserTest.java
similarity index 50%
copy from oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/CompatibilityCheckParser.java
copy to oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/CompatibilityCheckParserTest.java
index 13a52f8..8846d29 100644
--- a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/CompatibilityCheckParser.java
+++ b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/CompatibilityCheckParserTest.java
@@ -17,37 +17,27 @@
 
 package org.apache.servicecomb.toolkit.oasv.compatibility;
 
-import static java.util.Collections.emptyList;
 
-import java.util.List;
+import static org.assertj.core.api.Assertions.assertThat;
 
-import io.swagger.v3.parser.OpenAPIV3Parser;
-import io.swagger.v3.parser.core.models.ParseOptions;
-import io.swagger.v3.parser.core.models.SwaggerParseResult;
-
-public abstract class CompatibilityCheckParser {
+import org.junit.Test;
 
-  private CompatibilityCheckParser() {
-    // singleton
-  }
+import io.swagger.v3.parser.core.models.SwaggerParseResult;
+import io.swagger.v3.parser.util.ClasspathHelper;
 
-  public static SwaggerParseResult parseYaml(String yaml) {
-    OpenAPIV3Parser parser = new OpenAPIV3Parser();
-    return parser.readContents(yaml, null, createParseOptions());
-  }
+public class CompatibilityCheckParserTest {
 
-  public static List<String> checkSyntax(String yaml) {
-    SwaggerParseResult result = parseYaml(yaml);
-    return result.getMessages() == null ? emptyList() : result.getMessages();
+  @Test
+  public void parseYaml() {
+    String yaml = loadRelative("parser-test.yaml");
+    SwaggerParseResult swaggerParseResult = CompatibilityCheckParser.parseYaml(yaml);
+    assertThat(swaggerParseResult).isNotNull();
+    assertThat(swaggerParseResult.getOpenAPI()).isNotNull();
+    assertThat(swaggerParseResult.getMessages()).isEmpty();
   }
 
-  private static ParseOptions createParseOptions() {
-
-    ParseOptions parseOptions = new ParseOptions();
-    parseOptions.setResolve(true);
-    parseOptions.setResolveCombinators(true);
-    parseOptions.setResolveFully(true);
-    parseOptions.setFlatten(false);
-    return parseOptions;
+  private String loadRelative(String filename) {
+    String basePath = getClass().getPackage().getName().replaceAll("\\.", "/");
+    return ClasspathHelper.loadFileFromClasspath(basePath + "/" + filename);
   }
 }
diff --git a/oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/parser-test.yaml b/oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/parser-test.yaml
new file mode 100644
index 0000000..f7b88b5
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/test/resources/org/apache/servicecomb/toolkit/oasv/compatibility/parser-test.yaml
@@ -0,0 +1,48 @@
+## ---------------------------------------------------------------------------
+## Licensed to the Apache Software Foundation (ASF) under one or more
+## contributor license agreements.  See the NOTICE file distributed with
+## this work for additional information regarding copyright ownership.
+## The ASF licenses this file to You under the Apache License, Version 2.0
+## (the "License"); you may not use this file except in compliance with
+## the License.  You may obtain a copy of the License at
+##
+##      http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+## ---------------------------------------------------------------------------
+openapi: "3.0.0"
+info:
+  version: 1.0.0
+  title: Pet petstore
+paths:
+  /pets:
+    get:
+      summary: List all pets
+      operationId: listpets
+      responses:
+        '200':
+          description: A paged array of pets
+
+    post:
+      summary: List all pets
+      operationId: foo
+      requestBody:
+        content:
+          application/x-www-form-urlencoded:
+            schema:
+              type: object
+              properties:
+                foo:
+                  type: string
+                bar:
+                  type: string
+            encoding:
+              foo:
+                contentType: 'application/octet-stream'
+      responses:
+        '200':
+          description: A paged array of pets
diff --git a/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/ComplianceCheckParser.java b/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/ComplianceCheckParser.java
index 7f0bf4a..f98e577 100644
--- a/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/ComplianceCheckParser.java
+++ b/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/ComplianceCheckParser.java
@@ -17,10 +17,6 @@
 
 package org.apache.servicecomb.toolkit.oasv.compliance;
 
-import static java.util.Collections.emptyList;
-
-import java.util.List;
-
 import io.swagger.v3.parser.OpenAPIV3Parser;
 import io.swagger.v3.parser.core.models.ParseOptions;
 import io.swagger.v3.parser.core.models.SwaggerParseResult;
@@ -36,11 +32,6 @@ public abstract class ComplianceCheckParser {
     return parser.readContents(yaml, null, createParseOptions());
   }
 
-  public static List<String> checkSyntax(String yaml) {
-    SwaggerParseResult result = parseYaml(yaml);
-    return result.getMessages() == null ? emptyList() : result.getMessages();
-  }
-
   private static ParseOptions createParseOptions() {
 
     ParseOptions parseOptions = new ParseOptions();
diff --git a/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/ComplianceCheckParser.java b/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/ComplianceCheckParserTest.java
similarity index 50%
copy from oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/ComplianceCheckParser.java
copy to oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/ComplianceCheckParserTest.java
index 7f0bf4a..9760dee 100644
--- a/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/ComplianceCheckParser.java
+++ b/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/ComplianceCheckParserTest.java
@@ -17,37 +17,27 @@
 
 package org.apache.servicecomb.toolkit.oasv.compliance;
 
-import static java.util.Collections.emptyList;
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.junit.Assert.*;
 
-import java.util.List;
+import org.junit.Test;
 
-import io.swagger.v3.parser.OpenAPIV3Parser;
-import io.swagger.v3.parser.core.models.ParseOptions;
 import io.swagger.v3.parser.core.models.SwaggerParseResult;
+import io.swagger.v3.parser.util.ClasspathHelper;
 
-public abstract class ComplianceCheckParser {
+public class ComplianceCheckParserTest {
 
-  private ComplianceCheckParser() {
-    // singleton
+  @Test
+  public void parseYaml() {
+    String yaml = loadRelative("parser-test.yaml");
+    SwaggerParseResult swaggerParseResult = ComplianceCheckParser.parseYaml(yaml);
+    assertThat(swaggerParseResult).isNotNull();
+    assertThat(swaggerParseResult.getOpenAPI()).isNotNull();
+    assertThat(swaggerParseResult.getMessages()).isEmpty();
   }
 
-  public static SwaggerParseResult parseYaml(String yaml) {
-    OpenAPIV3Parser parser = new OpenAPIV3Parser();
-    return parser.readContents(yaml, null, createParseOptions());
-  }
-
-  public static List<String> checkSyntax(String yaml) {
-    SwaggerParseResult result = parseYaml(yaml);
-    return result.getMessages() == null ? emptyList() : result.getMessages();
-  }
-
-  private static ParseOptions createParseOptions() {
-
-    ParseOptions parseOptions = new ParseOptions();
-    parseOptions.setResolve(true);
-    parseOptions.setResolveCombinators(false);
-    parseOptions.setResolveFully(false);
-    parseOptions.setFlatten(false);
-    return parseOptions;
+  private String loadRelative(String filename) {
+    String basePath = getClass().getPackage().getName().replaceAll("\\.", "/");
+    return ClasspathHelper.loadFileFromClasspath(basePath + "/" + filename);
   }
 }
diff --git a/oas-validator/oas-validator-compliance/src/test/resources/org/apache/servicecomb/toolkit/oasv/compliance/parser-test.yaml b/oas-validator/oas-validator-compliance/src/test/resources/org/apache/servicecomb/toolkit/oasv/compliance/parser-test.yaml
new file mode 100644
index 0000000..f7b88b5
--- /dev/null
+++ b/oas-validator/oas-validator-compliance/src/test/resources/org/apache/servicecomb/toolkit/oasv/compliance/parser-test.yaml
@@ -0,0 +1,48 @@
+## ---------------------------------------------------------------------------
+## Licensed to the Apache Software Foundation (ASF) under one or more
+## contributor license agreements.  See the NOTICE file distributed with
+## this work for additional information regarding copyright ownership.
+## The ASF licenses this file to You under the Apache License, Version 2.0
+## (the "License"); you may not use this file except in compliance with
+## the License.  You may obtain a copy of the License at
+##
+##      http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+## ---------------------------------------------------------------------------
+openapi: "3.0.0"
+info:
+  version: 1.0.0
+  title: Pet petstore
+paths:
+  /pets:
+    get:
+      summary: List all pets
+      operationId: listpets
+      responses:
+        '200':
+          description: A paged array of pets
+
+    post:
+      summary: List all pets
+      operationId: foo
+      requestBody:
+        content:
+          application/x-www-form-urlencoded:
+            schema:
+              type: object
+              properties:
+                foo:
+                  type: string
+                bar:
+                  type: string
+            encoding:
+              foo:
+                contentType: 'application/octet-stream'
+      responses:
+        '200':
+          description: A paged array of pets
diff --git a/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/ComplianceCheckParser.java b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/util/SyntaxChecker.java
similarity index 73%
copy from oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/ComplianceCheckParser.java
copy to oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/util/SyntaxChecker.java
index 7f0bf4a..e0dc645 100644
--- a/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/ComplianceCheckParser.java
+++ b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/util/SyntaxChecker.java
@@ -15,7 +15,7 @@
  * limitations under the License.
  */
 
-package org.apache.servicecomb.toolkit.oasv.compliance;
+package org.apache.servicecomb.toolkit.oasv.util;
 
 import static java.util.Collections.emptyList;
 
@@ -25,29 +25,24 @@ import io.swagger.v3.parser.OpenAPIV3Parser;
 import io.swagger.v3.parser.core.models.ParseOptions;
 import io.swagger.v3.parser.core.models.SwaggerParseResult;
 
-public abstract class ComplianceCheckParser {
+public class SyntaxChecker {
 
-  private ComplianceCheckParser() {
+  private SyntaxChecker() {
     // singleton
   }
 
-  public static SwaggerParseResult parseYaml(String yaml) {
-    OpenAPIV3Parser parser = new OpenAPIV3Parser();
-    return parser.readContents(yaml, null, createParseOptions());
-  }
-
-  public static List<String> checkSyntax(String yaml) {
-    SwaggerParseResult result = parseYaml(yaml);
-    return result.getMessages() == null ? emptyList() : result.getMessages();
-  }
-
-  private static ParseOptions createParseOptions() {
+  public static List<String> check(String oasSpecContent) {
 
     ParseOptions parseOptions = new ParseOptions();
-    parseOptions.setResolve(true);
-    parseOptions.setResolveCombinators(false);
+    parseOptions.setResolve(false);
     parseOptions.setResolveFully(false);
+    parseOptions.setResolveCombinators(false);
     parseOptions.setFlatten(false);
-    return parseOptions;
+
+    OpenAPIV3Parser parser = new OpenAPIV3Parser();
+    SwaggerParseResult result = parser.readContents(oasSpecContent, null, parseOptions);
+    return result.getMessages() == null ? emptyList() : result.getMessages();
+
   }
+
 }
diff --git a/oas-validator/oas-validator-core/src/test/java/org/apache/servicecomb/toolkit/oasv/util/SyntaxCheckerTest.java b/oas-validator/oas-validator-core/src/test/java/org/apache/servicecomb/toolkit/oasv/util/SyntaxCheckerTest.java
new file mode 100644
index 0000000..a7f7644
--- /dev/null
+++ b/oas-validator/oas-validator-core/src/test/java/org/apache/servicecomb/toolkit/oasv/util/SyntaxCheckerTest.java
@@ -0,0 +1,50 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.util;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.junit.Assert.*;
+
+import java.util.List;
+
+import org.junit.Test;
+
+import io.swagger.v3.parser.util.ClasspathHelper;
+
+public class SyntaxCheckerTest {
+
+  @Test
+  public void checkGood() {
+    String yaml = loadRelative("syntax-good.yaml");
+    List<String> errors = SyntaxChecker.check(yaml);
+    assertThat(errors).isEmpty();
+  }
+
+  @Test
+  public void checkBad() {
+    String yaml = loadRelative("syntax-bad.yaml");
+    List<String> errors = SyntaxChecker.check(yaml);
+    assertThat(errors).containsExactly("attribute paths.'/pets'(post).summary2 is unexpected");
+  }
+
+  private String loadRelative(String filename) {
+    String basePath = getClass().getPackage().getName().replaceAll("\\.", "/");
+    return ClasspathHelper.loadFileFromClasspath(basePath + "/" + filename);
+  }
+
+}
diff --git a/oas-validator/oas-validator-core/src/test/resources/org/apache/servicecomb/toolkit/oasv/util/syntax-bad.yaml b/oas-validator/oas-validator-core/src/test/resources/org/apache/servicecomb/toolkit/oasv/util/syntax-bad.yaml
new file mode 100644
index 0000000..46b822e
--- /dev/null
+++ b/oas-validator/oas-validator-core/src/test/resources/org/apache/servicecomb/toolkit/oasv/util/syntax-bad.yaml
@@ -0,0 +1,48 @@
+## ---------------------------------------------------------------------------
+## Licensed to the Apache Software Foundation (ASF) under one or more
+## contributor license agreements.  See the NOTICE file distributed with
+## this work for additional information regarding copyright ownership.
+## The ASF licenses this file to You under the Apache License, Version 2.0
+## (the "License"); you may not use this file except in compliance with
+## the License.  You may obtain a copy of the License at
+##
+##      http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+## ---------------------------------------------------------------------------
+openapi: "3.0.0"
+info:
+  version: 1.0.0
+  title: Pet petstore
+paths:
+  /pets:
+    get:
+      summary: List all pets
+      operationId: listpets
+      responses:
+        '200':
+          description: A paged array of pets
+
+    post:
+      summary2: List all pets
+      operationId: foo
+      requestBody:
+        content:
+          application/x-www-form-urlencoded:
+            schema:
+              type: object
+              properties:
+                foo:
+                  type: string
+                bar:
+                  type: string
+            encoding:
+              foo:
+                contentType: 'application/octet-stream'
+      responses:
+        '200':
+          description: A paged array of pets
diff --git a/oas-validator/oas-validator-core/src/test/resources/org/apache/servicecomb/toolkit/oasv/util/syntax-good.yaml b/oas-validator/oas-validator-core/src/test/resources/org/apache/servicecomb/toolkit/oasv/util/syntax-good.yaml
new file mode 100644
index 0000000..f7b88b5
--- /dev/null
+++ b/oas-validator/oas-validator-core/src/test/resources/org/apache/servicecomb/toolkit/oasv/util/syntax-good.yaml
@@ -0,0 +1,48 @@
+## ---------------------------------------------------------------------------
+## Licensed to the Apache Software Foundation (ASF) under one or more
+## contributor license agreements.  See the NOTICE file distributed with
+## this work for additional information regarding copyright ownership.
+## The ASF licenses this file to You under the Apache License, Version 2.0
+## (the "License"); you may not use this file except in compliance with
+## the License.  You may obtain a copy of the License at
+##
+##      http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+## ---------------------------------------------------------------------------
+openapi: "3.0.0"
+info:
+  version: 1.0.0
+  title: Pet petstore
+paths:
+  /pets:
+    get:
+      summary: List all pets
+      operationId: listpets
+      responses:
+        '200':
+          description: A paged array of pets
+
+    post:
+      summary: List all pets
+      operationId: foo
+      requestBody:
+        content:
+          application/x-www-form-urlencoded:
+            schema:
+              type: object
+              properties:
+                foo:
+                  type: string
+                bar:
+                  type: string
+            encoding:
+              foo:
+                contentType: 'application/octet-stream'
+      responses:
+        '200':
+          description: A paged array of pets
diff --git a/oas-validator/oas-validator-web/src/main/java/org/apache/servicecomb/toolkit/oasv/web/api/controller/CompatibilityController.java b/oas-validator/oas-validator-web/src/main/java/org/apache/servicecomb/toolkit/oasv/web/api/controller/CompatibilityController.java
index 5a045ee..f625789 100755
--- a/oas-validator/oas-validator-web/src/main/java/org/apache/servicecomb/toolkit/oasv/web/api/controller/CompatibilityController.java
+++ b/oas-validator/oas-validator-web/src/main/java/org/apache/servicecomb/toolkit/oasv/web/api/controller/CompatibilityController.java
@@ -27,6 +27,7 @@ import org.apache.servicecomb.toolkit.oasv.compatibility.CompatibilityCheckParse
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffValidationContext;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffViolation;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasSpecDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.util.SyntaxChecker;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.http.HttpStatus;
 import org.springframework.util.MimeTypeUtils;
@@ -66,8 +67,8 @@ public class CompatibilityController {
     String leftYaml = yaml.split("---\n")[0];
     String rightYaml = yaml.split("---\n")[1];
 
-    importError.addLeftParseErrors(CompatibilityCheckParser.checkSyntax(leftYaml));
-    importError.addRightParseErrors(CompatibilityCheckParser.checkSyntax(rightYaml));
+    importError.addLeftParseErrors(SyntaxChecker.check(leftYaml));
+    importError.addRightParseErrors(SyntaxChecker.check(rightYaml));
 
     if (importError.isNotEmpty()) {
       return importError;
diff --git a/oas-validator/oas-validator-web/src/main/java/org/apache/servicecomb/toolkit/oasv/web/api/controller/ComplianceController.java b/oas-validator/oas-validator-web/src/main/java/org/apache/servicecomb/toolkit/oasv/web/api/controller/ComplianceController.java
index e6b5c99..636b91c 100755
--- a/oas-validator/oas-validator-web/src/main/java/org/apache/servicecomb/toolkit/oasv/web/api/controller/ComplianceController.java
+++ b/oas-validator/oas-validator-web/src/main/java/org/apache/servicecomb/toolkit/oasv/web/api/controller/ComplianceController.java
@@ -24,6 +24,7 @@ import java.util.Map;
 import org.apache.commons.collections4.CollectionUtils;
 import org.apache.commons.lang3.StringUtils;
 import org.apache.servicecomb.toolkit.oasv.compliance.ComplianceCheckParser;
+import org.apache.servicecomb.toolkit.oasv.util.SyntaxChecker;
 import org.apache.servicecomb.toolkit.oasv.validation.api.OasSpecValidator;
 import org.apache.servicecomb.toolkit.oasv.validation.api.OasValidationContext;
 import org.apache.servicecomb.toolkit.oasv.validation.api.OasViolation;
@@ -64,7 +65,7 @@ public class ComplianceController {
   private ImportError doValidate(String yaml) {
 
     ImportError importError = new ImportError();
-    importError.addParseErrors(ComplianceCheckParser.checkSyntax(yaml));
+    importError.addParseErrors(SyntaxChecker.check(yaml));
     if (importError.isNotEmpty()) {
       return importError;
     }


[servicecomb-toolkit] 01/26: SCB-1548 import oas-validator

Posted by ni...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ningjiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/servicecomb-toolkit.git

commit 1a73501fa40f5e64653695569ae8a1293fc903e2
Author: Daniel Qian <ch...@gmail.com>
AuthorDate: Mon Oct 28 09:37:51 2019 +0800

    SCB-1548 import oas-validator
---
 oas-validator/.gitignore                           |  32 +
 oas-validator/.mvn/wrapper/maven-wrapper.jar       | Bin 0 -> 48336 bytes
 .../.mvn/wrapper/maven-wrapper.properties          |   1 +
 oas-validator/Jenkinsfile                          |  61 ++
 oas-validator/LICENSE                              | 201 ++++++
 oas-validator/README.md                            | 447 ++++++++++++
 oas-validator/distribution/pom.xml                 | 107 +++
 oas-validator/distribution/src/assembly/bin.xml    |  65 ++
 oas-validator/distribution/src/assembly/src.xml    |  66 ++
 oas-validator/distribution/src/release/LICENSE     | 437 ++++++++++++
 .../distribution/src/release/licenses/LICENSE-asm  |  27 +
 .../distribution/src/release/licenses/LICENSE-cc0  |  27 +
 .../src/release/licenses/LICENSE-cddl-gplv2        | 760 +++++++++++++++++++++
 .../src/release/licenses/LICENSE-cddl-v10          | 132 ++++
 .../src/release/licenses/LICENSE-epl-v10           |  86 +++
 .../src/release/licenses/LICENSE-hamcrest          |  27 +
 .../distribution/src/release/licenses/LICENSE-jopt |  22 +
 .../src/release/licenses/LICENSE-lombok            |  19 +
 .../distribution/src/release/licenses/LICENSE-mit  |  21 +
 .../src/release/licenses/LICENSE-mockito           |  21 +
 .../src/release/licenses/LICENSE-mpl-v20           | 373 ++++++++++
 .../distribution/src/release/licenses/LICENSE-qos  |  21 +
 .../src/release/licenses/LICENSE-slf4j             |  21 +
 .../src/release/licenses/LICENSE-webjars           |  21 +
 oas-validator/doc/INSTALLATION.MD                  |  36 +
 oas-validator/doc/USAGE.MD                         |  62 ++
 oas-validator/doc/compatibility-1.png              | Bin 0 -> 85796 bytes
 oas-validator/doc/compatibility-2.png              | Bin 0 -> 265492 bytes
 oas-validator/doc/compliance-1.png                 | Bin 0 -> 71215 bytes
 oas-validator/doc/compliance-2.png                 | Bin 0 -> 329424 bytes
 oas-validator/mvnw                                 | 227 ++++++
 oas-validator/mvnw.cmd                             | 145 ++++
 .../oas-validator-compatibility-spring/pom.xml     |  69 ++
 .../EncodingDiffValidatorsConfiguration.java       |  58 ++
 .../config/HeaderDiffValidatorsConfiguration.java  |  39 ++
 .../MediaTypeDiffValidatorsConfiguration.java      |  51 ++
 .../OperationDiffValidatorsConfiguration.java      |  39 ++
 .../ParameterDiffValidatorsConfiguration.java      |  59 ++
 .../PathItemDiffValidatorsConfiguration.java       |  33 +
 .../RequestBodyDiffValidatorsConfiguration.java    |  33 +
 .../ResponseDiffValidatorsConfiguration.java       |  33 +
 .../config/SchemaDiffValidatorsConfiguration.java  | 212 ++++++
 .../src/main/resources/META-INF/spring.factories   |  10 +
 oas-validator/oas-validator-compatibility/pom.xml  |  81 +++
 .../EncodingAddNotAllowedDiffValidator.java        |  38 ++
 ...EncodingAllowedReservedChangeDiffValidator.java |  58 ++
 .../EncodingContentTypeNotSameDiffValidator.java   |  51 ++
 .../EncodingDelNotAllowedDiffValidator.java        |  38 ++
 .../EncodingExplodeNotSameDiffValidator.java       |  51 ++
 .../EncodingStyleNotSameDiffValidator.java         |  52 ++
 ...derAddInRequestBodyNotAllowedDiffValidator.java |  45 ++
 ...HeaderDelInResponseNotAllowedDiffValidator.java |  45 ++
 ...aTypeAddInParameterNotAllowedDiffValidator.java |  46 ++
 ...aTypeDelInParameterNotAllowedDiffValidator.java |  46 ++
 ...ypeDelInRequestBodyNotAllowedDiffValidator.java |  46 ++
 ...iaTypeDelInResponseNotAllowedDiffValidator.java |  46 ++
 .../OperationDeleteNotAllowedDiffValidator.java    |  38 ++
 .../operation/OperationIdNotSameDiffValidator.java |  46 ++
 .../parameter/ParameterAddDiffValidator.java       |  55 ++
 ...arameterAllowEmptyValueChangeDiffValidator.java |  69 ++
 .../ParameterAllowReservedChangeDiffValidator.java |  68 ++
 .../ParameterExplodeNotSameDiffValidator.java      |  58 ++
 .../ParameterRequiredChangeDiffValidator.java      |  68 ++
 .../ParameterStyleNotSameDiffValidator.java        |  58 ++
 .../PathItemDeleteNotAllowedDiffValidator.java     |  39 ++
 .../RequestBodyRequiredChangeDiffValidator.java    |  61 ++
 .../ResponseAddNotAllowedDiffValidator.java        |  41 ++
 .../schema/SchemaDiscriminatorChangeValidator.java |  52 ++
 .../schema/SchemaPropertyChangeValidator.java      |  84 +++
 .../schema/SchemaReadOnlyChangeValidator.java      |  52 ++
 .../schema/SchemaTypeFormatChangeValidator.java    |  72 ++
 .../schema/SchemaWriteOnlyChangeValidator.java     |  52 ++
 .../schema/SchemaXmlChangeValidator.java           |  52 ++
 .../validators/schema/TypeFormat.java              |  68 ++
 .../SchemaEnumChangeInRequestValidator.java        |  58 ++
 ...maExclusiveMaximumChangeInRequestValidator.java |  60 ++
 ...maExclusiveMinimumChangeInRequestValidator.java |  58 ++
 .../SchemaMaxItemsChangeInRequestValidator.java    |  55 ++
 .../SchemaMaxLengthChangeInRequestValidator.java   |  55 ++
 ...chemaMaxPropertiesChangeInRequestValidator.java |  55 ++
 .../SchemaMaximumChangeInRequestValidator.java     |  57 ++
 .../SchemaMinItemsChangeInRequestValidator.java    |  55 ++
 .../SchemaMinLengthChangeInRequestValidator.java   |  55 ++
 ...chemaMinPropertiesChangeInRequestValidator.java |  55 ++
 .../SchemaMinimumChangeInRequestValidator.java     |  57 ++
 .../SchemaMultipleOfChangeInRequestValidator.java  |  56 ++
 .../SchemaNullableChangeInRequestValidator.java    |  58 ++
 .../SchemaRequiredChangeInRequestValidator.java    |  58 ++
 .../SchemaTypeFormatChangeInRequestValidator.java  |  75 ++
 .../SchemaUniqueItemsChangeInRequestValidator.java |  57 ++
 .../SchemaEnumChangeInResponseValidator.java       |  57 ++
 ...aExclusiveMaximumChangeInResponseValidator.java |  59 ++
 ...aExclusiveMinimumChangeInResponseValidator.java |  59 ++
 .../SchemaMaxItemsChangeInResponseValidator.java   |  54 ++
 .../SchemaMaxLengthChangeInResponseValidator.java  |  54 ++
 ...hemaMaxPropertiesChangeInResponseValidator.java |  54 ++
 .../SchemaMaximumChangeInResponseValidator.java    |  56 ++
 .../SchemaMinItemsChangeInResponseValidator.java   |  54 ++
 .../SchemaMinLengthChangeInResponseValidator.java  |  54 ++
 ...hemaMinPropertiesChangeInResponseValidator.java |  54 ++
 .../SchemaMinimumChangeInResponseValidator.java    |  56 ++
 .../SchemaMultipleOfChangeInResponseValidator.java |  55 ++
 .../SchemaNullableChangeInResponseValidator.java   |  57 ++
 .../SchemaRequiredChangeInResponseValidator.java   |  57 ++
 .../SchemaTypeFormatChangeInResponseValidator.java |  65 ++
 ...SchemaUniqueItemsChangeInResponseValidator.java |  56 ++
 .../validators/OasCompatibilityTestBase.java       |  37 +
 .../EncodingAddNotAllowedDiffValidatorTest.java    |  77 +++
 ...dingAllowedReservedChangeDiffValidatorTest.java |  89 +++
 ...ncodingContentTypeNotSameDiffValidatorTest.java |  88 +++
 .../EncodingDelNotAllowedDiffValidatorTest.java    |  77 +++
 .../EncodingExplodeNotSameDiffValidatorTest.java   |  88 +++
 .../EncodingStyleNotSameDiffValidatorTest.java     |  88 +++
 ...ddInRequestBodyNotAllowedDiffValidatorTest.java |  79 +++
 ...erDelInResponseNotAllowedDiffValidatorTest.java |  78 +++
 ...eAddInParameterNotAllowedDiffValidatorTest.java |  77 +++
 ...eDelInParameterNotAllowedDiffValidatorTest.java |  77 +++
 ...elInRequestBodyNotAllowedDiffValidatorTest.java |  77 +++
 ...peDelInResponseNotAllowedDiffValidatorTest.java |  78 +++
 ...OperationDeleteNotAllowedDiffValidatorTest.java |  74 ++
 .../OperationIdNotSameDiffValidatorTest.java       |  76 +++
 .../parameter/ParameterAddDiffValidatorTest.java   |  75 ++
 ...eterAllowEmptyValueChangeDiffValidatorTest.java |  83 +++
 ...ameterAllowReservedChangeDiffValidatorTest.java |  91 +++
 .../ParameterExplodeNotSameDiffValidatorTest.java  |  84 +++
 .../ParameterRequiredChangeDiffValidatorTest.java  |  83 +++
 .../ParameterStyleNotSameDiffValidatorTest.java    |  84 +++
 .../PathItemDeleteNotAllowedDiffValidatorTest.java |  72 ++
 ...RequestBodyRequiredChangeDiffValidatorTest.java |  76 +++
 .../ResponseAddNotAllowedDiffValidatorTest.java    |  83 +++
 .../SchemaDiscriminatorChangeValidatorTest.java    | 108 +++
 .../schema/SchemaReadOnlyChangeValidatorTest.java  | 108 +++
 .../schema/SchemaWriteOnlyChangeValidatorTest.java | 108 +++
 .../schema/SchemaXmlChangeValidatorTest.java       | 108 +++
 .../SchemaEnumChangeInRequestValidatorTest.java    |  92 +++
 ...clusiveMaximumChangeInRequestValidatorTest.java |  92 +++
 ...clusiveMinimumChangeInRequestValidatorTest.java |  92 +++
 ...SchemaMaxItemsChangeInRequestValidatorTest.java |  93 +++
 ...chemaMaxLengthChangeInRequestValidatorTest.java |  93 +++
 ...aMaxPropertiesChangeInRequestValidatorTest.java |  93 +++
 .../SchemaMaximumChangeInRequestValidatorTest.java |  93 +++
 ...SchemaMinItemsChangeInRequestValidatorTest.java |  93 +++
 ...chemaMinLengthChangeInRequestValidatorTest.java |  93 +++
 ...aMinPropertiesChangeInRequestValidatorTest.java |  93 +++
 .../SchemaMinimumChangeInRequestValidatorTest.java |  93 +++
 ...hemaMultipleOfChangeInRequestValidatorTest.java |  90 +++
 ...SchemaNullableChangeInRequestValidatorTest.java |  92 +++
 ...SchemaRequiredChangeInRequestValidatorTest.java |  90 +++
 ...hemaTypeFormatChangeInRequestValidatorTest.java |  91 +++
 ...emaUniqueItemsChangeInRequestValidatorTest.java |  92 +++
 .../SchemaEnumChangeInResponseValidatorTest.java   |  81 +++
 ...lusiveMaximumChangeInResponseValidatorTest.java |  81 +++
 ...lusiveMinimumChangeInResponseValidatorTest.java |  81 +++
 ...chemaMaxItemsChangeInResponseValidatorTest.java |  82 +++
 ...hemaMaxLengthChangeInResponseValidatorTest.java |  82 +++
 ...MaxPropertiesChangeInResponseValidatorTest.java |  82 +++
 ...SchemaMaximumChangeInResponseValidatorTest.java |  82 +++
 ...chemaMinItemsChangeInResponseValidatorTest.java |  82 +++
 ...hemaMinLengthChangeInResponseValidatorTest.java |  82 +++
 ...MinPropertiesChangeInResponseValidatorTest.java |  82 +++
 ...SchemaMinimumChangeInResponseValidatorTest.java |  82 +++
 ...emaMultipleOfChangeInResponseValidatorTest.java |  79 +++
 ...chemaNullableChangeInResponseValidatorTest.java |  81 +++
 ...chemaRequiredChangeInResponseValidatorTest.java |  80 +++
 ...emaTypeFormatChangeInResponseValidatorTest.java |  80 +++
 ...maUniqueItemsChangeInResponseValidatorTest.java |  81 +++
 .../encoding/petstore-encoding-add-a.yaml          |  52 ++
 .../encoding/petstore-encoding-add-b.yaml          |  54 ++
 .../petstore-encoding-allow-reserved-a.yaml        |  56 ++
 .../petstore-encoding-allow-reserved-b.yaml        |  56 ++
 .../encoding/petstore-encoding-content-type-a.yaml |  52 ++
 .../encoding/petstore-encoding-content-type-b.yaml |  52 ++
 .../encoding/petstore-encoding-del-a.yaml          |  54 ++
 .../encoding/petstore-encoding-del-b.yaml          |  52 ++
 .../encoding/petstore-encoding-explode-a.yaml      |  53 ++
 .../encoding/petstore-encoding-explode-b.yaml      |  53 ++
 .../encoding/petstore-encoding-style-a.yaml        |  53 ++
 .../encoding/petstore-encoding-style-b.yaml        |  53 ++
 .../petstore-header-add-in-request-body-a.yaml     |  52 ++
 .../petstore-header-add-in-request-body-b.yaml     |  56 ++
 .../header/petstore-header-del-in-response-a.yaml  |  46 ++
 .../header/petstore-header-del-in-response-b.yaml  |  43 ++
 .../petstore-media-type-add-in-parameter-a.yaml    |  42 ++
 .../petstore-media-type-add-in-parameter-b.yaml    |  46 ++
 .../petstore-media-type-del-in-parameter-a.yaml    |  46 ++
 .../petstore-media-type-del-in-parameter-b.yaml    |  42 ++
 .../petstore-media-type-del-in-request-body-a.yaml |  47 ++
 .../petstore-media-type-del-in-request-body-b.yaml |  44 ++
 .../petstore-media-type-del-in-response-a.yaml     |  46 ++
 .../petstore-media-type-del-in-response-b.yaml     |  43 ++
 .../operation/petstore-operation-delete-a.yaml     |  39 ++
 .../operation/petstore-operation-delete-b.yaml     |  32 +
 .../operation/petstore-operation-id-a.yaml         |  39 ++
 .../operation/petstore-operation-id-b.yaml         |  39 ++
 .../parameter/petstore-parameter-add-a.yaml        |  38 ++
 .../parameter/petstore-parameter-add-b.yaml        |  44 ++
 .../petstore-parameter-allow-empty-value-a.yaml    |  41 ++
 .../petstore-parameter-allow-empty-value-b.yaml    |  43 ++
 .../petstore-parameter-allow-reserved-a.yaml       |  41 ++
 .../petstore-parameter-allow-reserved-b.yaml       |  43 ++
 .../parameter/petstore-parameter-explode-a.yaml    |  41 ++
 .../parameter/petstore-parameter-explode-b.yaml    |  43 ++
 .../parameter/petstore-parameter-required-a.yaml   |  41 ++
 .../parameter/petstore-parameter-required-b.yaml   |  43 ++
 .../parameter/petstore-parameter-style-a.yaml      |  41 ++
 .../parameter/petstore-parameter-style-b.yaml      |  43 ++
 .../pathitem/petstore-path-item-delete-a.yaml      |  59 ++
 .../pathitem/petstore-path-item-delete-b.yaml      |  59 ++
 .../petstore-request-body-required-a.yaml          |  51 ++
 .../petstore-request-body-required-b.yaml          |  51 ++
 .../response/petstore-response-add-a.yaml          |  39 ++
 .../response/petstore-response-add-b.yaml          |  43 ++
 .../schema/petstore-schema-discriminator-a.yaml    | 108 +++
 .../schema/petstore-schema-discriminator-b.yaml    | 108 +++
 .../schema/petstore-schema-read-only-a.yaml        |  75 ++
 .../schema/petstore-schema-read-only-b.yaml        |  75 ++
 .../schema/petstore-schema-write-only-a.yaml       |  77 +++
 .../schema/petstore-schema-write-only-b.yaml       |  77 +++
 .../validators/schema/petstore-schema-xml-a.yaml   |  72 ++
 .../validators/schema/petstore-schema-xml-b.yaml   |  78 +++
 .../request/petstore-schema-enum-in-request-a.yaml |  69 ++
 .../request/petstore-schema-enum-in-request-b.yaml |  66 ++
 ...tore-schema-exclusive-maximum-in-request-a.yaml |  66 ++
 ...tore-schema-exclusive-maximum-in-request-b.yaml |  66 ++
 ...tore-schema-exclusive-minimum-in-request-a.yaml |  66 ++
 ...tore-schema-exclusive-minimum-in-request-b.yaml |  66 ++
 .../petstore-schema-max-items-in-request-a.yaml    |  72 ++
 .../petstore-schema-max-items-in-request-b.yaml    |  72 ++
 .../petstore-schema-max-length-in-request-a.yaml   |  64 ++
 .../petstore-schema-max-length-in-request-b.yaml   |  64 ++
 ...etstore-schema-max-properties-in-request-a.yaml |  64 ++
 ...etstore-schema-max-properties-in-request-b.yaml |  64 ++
 .../petstore-schema-maximum-in-request-a.yaml      |  64 ++
 .../petstore-schema-maximum-in-request-b.yaml      |  64 ++
 .../petstore-schema-min-items-in-request-a.yaml    |  72 ++
 .../petstore-schema-min-items-in-request-b.yaml    |  72 ++
 .../petstore-schema-min-length-in-request-a.yaml   |  64 ++
 .../petstore-schema-min-length-in-request-b.yaml   |  64 ++
 ...etstore-schema-min-properties-in-request-a.yaml |  64 ++
 ...etstore-schema-min-properties-in-request-b.yaml |  64 ++
 .../petstore-schema-minimum-in-request-a.yaml      |  64 ++
 .../petstore-schema-minimum-in-request-b.yaml      |  64 ++
 .../petstore-schema-multiple-of-in-request-a.yaml  |  65 ++
 .../petstore-schema-multiple-of-in-request-b.yaml  |  65 ++
 .../petstore-schema-nullable-in-request-a.yaml     |  63 ++
 .../petstore-schema-nullable-in-request-b.yaml     |  64 ++
 .../petstore-schema-required-in-request-a.yaml     |  62 ++
 .../petstore-schema-required-in-request-b.yaml     |  66 ++
 .../petstore-schema-type-format-in-request-a.yaml  |  62 ++
 .../petstore-schema-type-format-in-request-b.yaml  |  62 ++
 .../petstore-schema-unique-items-in-request-a.yaml |  73 ++
 .../petstore-schema-unique-items-in-request-b.yaml |  72 ++
 .../petstore-schema-enum-in-response-a.yaml        |  47 ++
 .../petstore-schema-enum-in-response-b.yaml        |  48 ++
 ...ore-schema-exclusive-maximum-in-response-a.yaml |  47 ++
 ...ore-schema-exclusive-maximum-in-response-b.yaml |  47 ++
 ...ore-schema-exclusive-minimum-in-response-a.yaml |  47 ++
 ...ore-schema-exclusive-minimum-in-response-b.yaml |  47 ++
 .../petstore-schema-max-items-in-response-a.yaml   |  50 ++
 .../petstore-schema-max-items-in-response-b.yaml   |  50 ++
 .../petstore-schema-max-length-in-response-a.yaml  |  46 ++
 .../petstore-schema-max-length-in-response-b.yaml  |  46 ++
 ...tstore-schema-max-properties-in-response-a.yaml |  46 ++
 ...tstore-schema-max-properties-in-response-b.yaml |  46 ++
 .../petstore-schema-maximum-in-response-a.yaml     |  46 ++
 .../petstore-schema-maximum-in-response-b.yaml     |  46 ++
 .../petstore-schema-min-items-in-response-a.yaml   |  50 ++
 .../petstore-schema-min-items-in-response-b.yaml   |  50 ++
 .../petstore-schema-min-length-in-response-a.yaml  |  46 ++
 .../petstore-schema-min-length-in-response-b.yaml  |  46 ++
 ...tstore-schema-min-properties-in-response-a.yaml |  46 ++
 ...tstore-schema-min-properties-in-response-b.yaml |  46 ++
 .../petstore-schema-minimum-in-response-a.yaml     |  46 ++
 .../petstore-schema-minimum-in-response-b.yaml     |  46 ++
 .../petstore-schema-multiple-of-in-response-a.yaml |  49 ++
 .../petstore-schema-multiple-of-in-response-b.yaml |  49 ++
 .../petstore-schema-nullable-in-response-a.yaml    |  46 ++
 .../petstore-schema-nullable-in-response-b.yaml    |  46 ++
 .../petstore-schema-required-in-response-a.yaml    |  49 ++
 .../petstore-schema-required-in-response-b.yaml    |  47 ++
 .../petstore-schema-type-format-in-response-a.yaml |  46 ++
 .../petstore-schema-type-format-in-response-b.yaml |  46 ++
 ...petstore-schema-unique-items-in-response-a.yaml |  50 ++
 ...petstore-schema-unique-items-in-response-b.yaml |  50 ++
 .../oas-validator-compliance-spring/pom.xml        |  68 ++
 .../config/ComponentsValidatorConfiguration.java   |  68 ++
 .../config/EncodingValidatorConfiguration.java     |  33 +
 .../config/HeaderValidatorConfiguration.java       |  33 +
 .../config/InfoValidatorConfiguration.java         |  33 +
 .../config/OpenApiValidatorConfiguration.java      |  45 ++
 .../config/OperationValidatorConfiguration.java    |  52 ++
 .../config/ParameterValidatorConfiguration.java    |  53 ++
 .../config/PathsValidatorConfiguration.java        |  33 +
 .../config/RequestBodyValidatorConfiguration.java  |  33 +
 .../config/ResponseValidatorConfiguration.java     |  33 +
 .../config/SchemaValidatorConfiguration.java       |  38 ++
 .../config/TagValidatorConfiguration.java          |  45 ++
 .../src/main/resources/META-INF/spring.factories   |  13 +
 oas-validator/oas-validator-compliance/pom.xml     |  78 +++
 .../components/ComponentsKeysValidators.java       |  59 ++
 .../validator/encoding/EncodingKeysValidators.java |  31 +
 .../header/HeaderDescriptionRequiredValidator.java |  56 ++
 .../info/InfoDescriptionRequiredValidator.java     |  56 ++
 .../openapi/OpenApiSecurityEmptyValidator.java     |  57 ++
 .../openapi/OpenApiTagNotEmptyValidator.java       |  53 ++
 .../validator/openapi/OpenApiVersionValidator.java |  53 ++
 .../OperationIdLowerCamelCaseValidator.java        |  47 ++
 .../operation/OperationServersEmptyValidator.java  |  50 ++
 .../OperationSummaryRequiredValidator.java         |  56 ++
 .../operation/OperationTagsOnlyOneValidator.java   |  54 ++
 .../operation/OperationTagsReferenceValidator.java |  76 +++
 .../ParameterCookieLowerCamelCaseValidator.java    |  57 ++
 .../ParameterDescriptionRequiredValidator.java     |  56 ++
 .../ParameterHeaderUpperHyphenCaseValidator.java   |  58 ++
 .../ParameterPathLowerCamelCaseValidator.java      |  57 ++
 .../ParameterQueryLowerCamelCaseValidator.java     |  57 ++
 .../paths/PathsLowerCamelCaseValidator.java        | 102 +++
 .../RequestBodyDescriptionRequiredValidator.java   |  56 ++
 .../validator/response/ResponseKeysValidators.java |  31 +
 .../validator/schema/SchemaKeysValidators.java     |  31 +
 .../validator/schema/SchemaTitleValidator.java     |  73 ++
 .../tag/TagDescriptionRequiredValidator.java       |  56 ++
 .../tag/TagNameUpperCamelCaseValidator.java        |  48 ++
 .../validator/tag/TagReferenceValidator.java       |  89 +++
 .../validator/OasComplianceTestBase.java           |  36 +
 ...onentsCallbacksUpperCamelCaseValidatorTest.java |  72 ++
 ...ponentsExamplesUpperCamelCaseValidatorTest.java |  72 ++
 ...mponentsHeadersUpperCamelCaseValidatorTest.java |  72 ++
 ...ComponentsLinksUpperCamelCaseValidatorTest.java |  72 ++
 ...nentsParametersUpperCamelCaseValidatorTest.java |  72 ++
 ...tsRequestBodiesUpperCamelCaseValidatorTest.java |  72 ++
 ...onentsResponsesUpperCamelCaseValidatorTest.java |  72 ++
 ...mponentsSchemasUpperCamelCaseValidatorTest.java |  72 ++
 .../HeaderDescriptionRequiredValidatorTest.java    |  81 +++
 .../info/InfoDescriptionRequiredValidatorTest.java |  62 ++
 .../openapi/OpenApiSecurityEmptyValidatorTest.java |  67 ++
 .../openapi/OpenApiTagsSizeValidatorTest.java      |  60 ++
 .../openapi/OpenApiVersionValidatorTest.java       |  61 ++
 .../OperationIdLowerCamelCaseValidatorTest.java    |  67 ++
 .../OperationServersEmptyValidatorTest.java        |  68 ++
 .../OperationSummaryRequiredValidatorTest.java     |  67 ++
 .../OperationTagsOnlyOneValidatorTest.java         |  66 ++
 .../OperationTagsReferenceValidatorTest.java       |  66 ++
 ...ParameterCookieLowerCamelCaseValidatorTest.java |  77 +++
 .../ParameterDescriptionRequiredValidatorTest.java |  76 +++
 ...arameterHeaderUpperHyphenCaseValidatorTest.java |  77 +++
 .../ParameterPathLowerCamelCaseValidatorTest.java  |  77 +++
 .../ParameterQueryLowerCamelCaseValidatorTest.java |  77 +++
 .../paths/PathsLowerCamelCaseValidatorTest.java    |  76 +++
 ...equestBodyDescriptionRequiredValidatorTest.java |  77 +++
 ...aPropertiesKeysLowerCamelCaseValidatorTest.java | 251 +++++++
 .../validator/schema/SchemaTitleValidatorTest.java | 104 +++
 .../tag/TagDescriptionRequiredValidatorTest.java   |  61 ++
 .../tag/TagNameUpperCamelCaseValidatorTest.java    |  63 ++
 .../validator/tag/TagReferenceValidatorTest.java   |  62 ++
 .../petstore-callbacks-upper-camel-case.yaml       | 124 ++++
 .../petstore-examples-upper-camel-case.yaml        |  90 +++
 .../petstore-headers-upper-camel-case.yaml         |  90 +++
 .../petstore-links-upper-camel-case.yaml           |  90 +++
 .../petstore-parameters-upper-camel-case.yaml      |  96 +++
 .../petstore-request-bodies-upper-camel-case.yaml  | 104 +++
 .../petstore-responses-upper-camel-case.yaml       |  90 +++
 .../petstore-schemas-upper-camel-case.yaml         |  91 +++
 .../validator/header/petstore-header-no-desc.yaml  | 143 ++++
 .../validator/info/petstore-info-no-desc.yaml      | 125 ++++
 .../validator/openapi/petstore-openapi-wrong.yaml  | 125 ++++
 .../openapi/petstore-security-empty-good.yaml      |  30 +
 .../validator/openapi/petstore-security-empty.yaml |  33 +
 .../openapi/petstore-tag-not-provided.yaml         | 125 ++++
 .../petstore-operation-id-lower-camel-case.yaml    | 125 ++++
 .../petstore-operation-servers-empty.yaml          |  38 ++
 .../petstore-operation-summary-required.yaml       | 124 ++++
 .../petstore-operation-tags-only-one.yaml          | 126 ++++
 .../petstore-operation-tags-reference.yaml         | 128 ++++
 ...petstore-parameter-cookie-lower-camel-case.yaml |  88 +++
 .../parameter/petstore-parameter-desc-none.yaml    |  84 +++
 ...etstore-parameter-header-upper-hyphen-case.yaml |  88 +++
 .../petstore-parameter-path-lower-camel-case.yaml  |  84 +++
 .../petstore-parameter-query-lower-camel-case.yaml |  88 +++
 .../paths/petstore-paths-lower-camel-case.yaml     | 127 ++++
 .../petstore-request-body-desc-required.yaml       | 105 +++
 ...tore-schema-p-keys-lower-camel-case-all-of.yaml |  40 ++
 ...tore-schema-p-keys-lower-camel-case-any-of.yaml |  40 ++
 ...store-schema-p-keys-lower-camel-case-array.yaml |  41 ++
 ...tstore-schema-p-keys-lower-camel-case-comp.yaml |  39 ++
 ...tore-schema-p-keys-lower-camel-case-nested.yaml |  42 ++
 ...tore-schema-p-keys-lower-camel-case-one-of.yaml |  40 ++
 ...ore-schema-p-keys-lower-camel-case-param-1.yaml |  39 ++
 ...ore-schema-p-keys-lower-camel-case-param-2.yaml |  41 ++
 ...store-schema-p-keys-lower-camel-case-req-1.yaml |  40 ++
 ...store-schema-p-keys-lower-camel-case-req-2.yaml |  42 ++
 ...tore-schema-p-keys-lower-camel-case-resp-1.yaml |  39 ++
 ...tore-schema-p-keys-lower-camel-case-resp-2.yaml |  44 ++
 .../schema/petstore-schema-title-comp.yaml         |  37 +
 .../schema/petstore-schema-title-nested.yaml       |  42 ++
 .../schema/petstore-schema-title-param.yaml        |  37 +
 .../schema/petstore-schema-title-req.yaml          |  38 ++
 .../schema/petstore-schema-title-resp.yaml         |  37 +
 .../petstore-tag-name-not-upper-camel-case.yaml    | 127 ++++
 .../validator/tag/petstore-tag-no-desc.yaml        | 127 ++++
 .../validator/tag/petstore-tag-redundant.yaml      | 128 ++++
 oas-validator/oas-validator-core-spring/pom.xml    |  63 ++
 .../OasDiffValidatorsSkeletonConfiguration.java    | 229 +++++++
 .../config/OasValidatorsSkeletonConfiguration.java | 218 ++++++
 .../src/main/resources/META-INF/spring.factories   |   3 +
 oas-validator/oas-validator-core/pom.xml           |  74 ++
 .../toolkit/oasv/common/OasObjectProperty.java     |  76 +++
 .../oasv/common/OasObjectPropertyLocation.java     | 120 ++++
 .../toolkit/oasv/common/OasObjectType.java         |  57 ++
 .../diffvalidation/api/CallbackDiffValidator.java  |  23 +
 .../api/ComponentsDiffValidator.java               |  23 +
 .../api/DefaultOasSpecDiffValidator.java           |  49 ++
 .../diffvalidation/api/DiffViolationMessages.java  |  29 +
 .../diffvalidation/api/EncodingDiffValidator.java  |  23 +
 .../diffvalidation/api/ExampleDiffValidator.java   |  23 +
 .../diffvalidation/api/HeaderDiffValidator.java    |  23 +
 .../oasv/diffvalidation/api/InfoDiffValidator.java |  23 +
 .../oasv/diffvalidation/api/LinkDiffValidator.java |  23 +
 .../api/ListPropertyDiffValidator.java             |  66 ++
 .../api/MapPropertyDiffValidator.java              |  60 ++
 .../diffvalidation/api/MediaTypeDiffValidator.java |  23 +
 .../api/OasDiffValidationContext.java              |  58 ++
 .../api/OasDiffValidationException.java            |  40 ++
 .../oasv/diffvalidation/api/OasDiffViolation.java  |  90 +++
 .../diffvalidation/api/OasObjectDiffValidator.java |  45 ++
 .../api/OasObjectDiffValidatorTemplate.java        |  86 +++
 .../diffvalidation/api/OasSpecDiffValidator.java   |  31 +
 .../api/ObjectPropertyDiffValidator.java           |  70 ++
 .../diffvalidation/api/OpenApiDiffValidator.java   |  23 +
 .../diffvalidation/api/OperationDiffValidator.java |  23 +
 .../diffvalidation/api/ParameterDiffValidator.java |  23 +
 .../diffvalidation/api/PathItemDiffValidator.java  |  23 +
 .../diffvalidation/api/PathsDiffValidator.java     |  23 +
 .../api/RequestBodyDiffValidator.java              |  23 +
 .../diffvalidation/api/ResponseDiffValidator.java  |  23 +
 .../diffvalidation/api/ResponsesDiffValidator.java |  23 +
 .../diffvalidation/api/SchemaAddValidator.java     |  38 ++
 .../diffvalidation/api/SchemaCompareValidator.java |  46 ++
 .../diffvalidation/api/SchemaDelValidator.java     |  38 ++
 .../diffvalidation/api/SchemaDiffValidator.java    |  23 +
 .../api/SecuritySchemeDiffValidator.java           |  23 +
 .../diffvalidation/api/ServerDiffValidator.java    |  23 +
 .../oasv/diffvalidation/api/TagDiffValidator.java  |  23 +
 .../ComponentsCallbacksDiffValidator.java          |  54 ++
 .../ComponentsExamplesDiffValidator.java           |  54 ++
 .../components/ComponentsHeadersDiffValidator.java |  54 ++
 .../components/ComponentsLinksDiffValidator.java   |  54 ++
 .../ComponentsParametersDiffValidator.java         |  54 ++
 .../ComponentsRequestBodiesDiffValidator.java      |  54 ++
 .../ComponentsResponsesDiffValidator.java          |  54 ++
 .../encoding/EncodingHeadersDiffValidator.java     |  54 ++
 .../skeleton/header/HeaderSchemaDiffValidator.java |  53 ++
 .../mediatype/MediaTypeEncodingDiffValidator.java  |  64 ++
 .../mediatype/MediaTypeSchemaDiffValidator.java    |  53 ++
 .../openapi/OpenApiComponentsDiffValidator.java    |  55 ++
 .../skeleton/openapi/OpenApiInfoDiffValidator.java |  54 ++
 .../openapi/OpenApiPathsDiffValidator.java         |  54 ++
 .../openapi/OpenApiServersDiffValidator.java       |  53 ++
 .../skeleton/openapi/OpenApiTagsDiffValidator.java |  53 ++
 .../OperationParametersDiffValidator.java          |  52 ++
 .../OperationRequestBodyDiffValidator.java         |  55 ++
 .../operation/OperationResponsesDiffValidator.java |  54 ++
 .../parameter/ParameterContentDiffValidator.java   |  68 ++
 .../parameter/ParameterSchemaDiffValidator.java    |  67 ++
 .../pathitem/PathItemOperationsDiffValidator.java  | 118 ++++
 .../pathitem/PathItemParametersDiffValidator.java  |  58 ++
 .../paths/PathsPathItemsDiffValidator.java         |  77 +++
 .../RequestBodyContentDiffValidator.java           |  68 ++
 .../response/ResponseContentDiffValidator.java     |  68 ++
 .../response/ResponseHeadersDiffValidator.java     |  69 ++
 .../responses/ResponsesResponsesDiffValidator.java | 102 +++
 .../skeleton/schema/SchemaDiffValidatorEngine.java | 222 ++++++
 .../diffvalidation/util/ChangeRangeCheckUtils.java |  38 ++
 .../util/OasDiffValidationContextUtils.java        |  64 ++
 .../util/OasObjectDiffValidatorUtils.java          | 264 +++++++
 .../oasv/diffvalidation/util/ParameterUtils.java   |  33 +
 .../oasv/util/DefaultOasSpecSyntaxChecker.java     |  42 ++
 .../toolkit/oasv/util/OasSpecParseException.java   |  39 ++
 .../toolkit/oasv/util/OasSpecParser.java           |  36 +
 .../toolkit/oasv/util/OasSpecSyntaxChecker.java    |  36 +
 .../toolkit/oasv/util/StringCaseUtils.java         |  57 ++
 .../oasv/validation/api/CallbackValidator.java     |  26 +
 .../oasv/validation/api/ComponentsValidator.java   |  26 +
 .../validation/api/DefaultOasSpecValidator.java    |  47 ++
 .../oasv/validation/api/EncodingValidator.java     |  26 +
 .../oasv/validation/api/ExampleValidator.java      |  26 +
 .../oasv/validation/api/HeaderValidator.java       |  26 +
 .../toolkit/oasv/validation/api/InfoValidator.java |  27 +
 .../toolkit/oasv/validation/api/LinkValidator.java |  26 +
 .../api/ListPropertyRequiredValidator.java         |  56 ++
 .../oasv/validation/api/ListPropertyValidator.java |  62 ++
 .../validation/api/MapPropertyKeysValidator.java   |  67 ++
 .../validation/api/MapPropertyValuesValidator.java |  63 ++
 .../oasv/validation/api/MediaTypeValidator.java    |  27 +
 .../oasv/validation/api/OasObjectValidator.java    |  38 ++
 .../oasv/validation/api/OasSpecValidator.java      |  31 +
 .../oasv/validation/api/OasValidationContext.java  |  47 ++
 .../toolkit/oasv/validation/api/OasViolation.java  |  74 ++
 .../api/ObjectPropertyRequiredValidator.java       |  62 ++
 .../validation/api/ObjectPropertyValidator.java    |  67 ++
 .../oasv/validation/api/OpenApiValidator.java      |  27 +
 .../oasv/validation/api/OperationValidator.java    |  26 +
 .../oasv/validation/api/ParameterValidator.java    |  26 +
 .../oasv/validation/api/PathItemValidator.java     |  26 +
 .../oasv/validation/api/PathsValidator.java        |  26 +
 .../oasv/validation/api/RequestBodyValidator.java  |  26 +
 .../oasv/validation/api/ResponseValidator.java     |  27 +
 .../oasv/validation/api/ResponsesValidator.java    |  27 +
 .../oasv/validation/api/SchemaValidator.java       |  27 +
 .../validation/api/SecuritySchemeValidator.java    |  26 +
 .../oasv/validation/api/ServerValidator.java       |  27 +
 .../toolkit/oasv/validation/api/TagValidator.java  |  26 +
 .../oasv/validation/api/ViolationMessages.java     |  34 +
 .../ComponentsCallbacksKeysValidator.java          |  55 ++
 .../ComponentsCallbacksValuesValidator.java        |  59 ++
 .../ComponentsExamplesKeysValidator.java           |  53 ++
 .../ComponentsExamplesValuesValidator.java         |  57 ++
 .../components/ComponentsHeadersKeysValidator.java |  49 ++
 .../ComponentsHeadersValuesValidator.java          |  57 ++
 .../components/ComponentsLinksKeysValidator.java   |  49 ++
 .../components/ComponentsLinksValuesValidator.java |  59 ++
 .../ComponentsParametersKeysValidator.java         |  49 ++
 .../ComponentsParametersValuesValidator.java       |  57 ++
 .../ComponentsRequestBodiesKeysValidator.java      |  49 ++
 .../ComponentsRequestBodiesValuesValidator.java    |  57 ++
 .../ComponentsResponsesKeysValidator.java          |  49 ++
 .../ComponentsResponsesValuesValidator.java        |  57 ++
 .../components/ComponentsSchemasKeysValidator.java |  49 ++
 .../ComponentsSchemasValuesValidator.java          |  57 ++
 .../ComponentsSecuritySchemesKeysValidator.java    |  49 ++
 .../ComponentsSecuritySchemesValuesValidator.java  |  57 ++
 .../encoding/EncodingHeadersKeysValidator.java     |  55 ++
 .../encoding/EncodingHeadersValuesValidator.java   |  59 ++
 .../skeleton/header/HeaderSchemaValidator.java     |  60 ++
 .../mediatype/MediaTypeEncodingValidator.java      |  63 ++
 .../mediatype/MediaTypeSchemaValidator.java        |  62 ++
 .../openapi/OpenApiComponentsValidator.java        |  64 ++
 .../skeleton/openapi/OpenApiInfoValidator.java     |  60 ++
 .../skeleton/openapi/OpenApiPathsValidator.java    |  63 ++
 .../skeleton/openapi/OpenApiServersValidator.java  |  62 ++
 .../skeleton/openapi/OpenApiTagsValidator.java     |  62 ++
 .../operation/OperationParametersValidator.java    |  62 ++
 .../operation/OperationRequestBodyValidator.java   |  63 ++
 .../operation/OperationResponsesValidator.java     |  62 ++
 .../parameter/ParameterContentValidator.java       |  63 ++
 .../parameter/ParameterSchemaValidator.java        |  63 ++
 .../pathitem/PathItemOperationsValidator.java      |  67 ++
 .../pathitem/PathItemParametersValidator.java      |  62 ++
 .../skeleton/paths/PathsPathItemsValidator.java    |  61 ++
 .../requestbody/RequestBodyContentValidator.java   |  64 ++
 .../response/ResponseContentValidator.java         |  63 ++
 .../response/ResponseHeadersKeysValidator.java     |  55 ++
 .../response/ResponseHeadersValuesValidator.java   |  59 ++
 .../responses/ResponsesResponsesValidator.java     |  62 ++
 .../schema/SchemaPropertiesKeysValidator.java      |  71 ++
 .../schema/SchemaRecursiveValidatorTemplate.java   | 127 ++++
 .../validation/util/OasObjectValidatorUtils.java   | 169 +++++
 .../toolkit/oasv/util/StringCaseUtilsTest.java     | 175 +++++
 oas-validator/oas-validator-test/pom.xml           |  63 ++
 .../servicecomb/toolkit/oasv/OasSpecLoader.java    |  71 ++
 .../test/OasDiffValidatorTestBase.java             |  80 +++
 .../oasv/validation/test/OasValidatorTestBase.java |  52 ++
 oas-validator/oas-validator-web/pom.xml            | 130 ++++
 .../servicecomb/toolkit/oasv/web/Application.java  |  48 ++
 .../api/controller/CompatibilityController.java    | 125 ++++
 .../web/api/controller/ComplianceController.java   | 119 ++++
 .../oasv/web/api/controller/ImportError.java       |  84 +++
 .../oasv/web/api/controller/ImportError2.java      |  74 ++
 .../oasv/web/page/controller/EditorController.java |  36 +
 .../oasv/web/page/controller/IndexController.java  |  34 +
 .../web/page/controller/ValidatorController.java   |  52 ++
 .../oasv/web/page/controller/ViewerController.java |  36 +
 .../src/main/resources/application.properties      |  30 +
 .../resources/samples/petstore-openapi-wrong.yaml  | 125 ++++
 .../src/main/resources/static/doc/validator.html   | 587 ++++++++++++++++
 .../src/main/resources/templates/index.html        |  77 +++
 .../templates/validator/compatibility.html         | 165 +++++
 .../resources/templates/validator/compliance.html  | 164 +++++
 oas-validator/pom.xml                              | 315 +++++++++
 579 files changed, 38363 insertions(+)

diff --git a/oas-validator/.gitignore b/oas-validator/.gitignore
new file mode 100755
index 0000000..a8d4d48
--- /dev/null
+++ b/oas-validator/.gitignore
@@ -0,0 +1,32 @@
+HELP.md
+/target/
+!.mvn/wrapper/maven-wrapper.jar
+
+### STS ###
+.apt_generated
+.classpath
+.factorypath
+.project
+.settings
+.springBeans
+.sts4-cache
+
+### IntelliJ IDEA ###
+.idea
+*.iws
+*.iml
+*.ipr
+
+### NetBeans ###
+/nbproject/private/
+/nbbuild/
+/dist/
+/nbdist/
+/.nb-gradle/
+/build/
+
+### VS Code ###
+.vscode/
+
+*/target
+*.class
\ No newline at end of file
diff --git a/oas-validator/.mvn/wrapper/maven-wrapper.jar b/oas-validator/.mvn/wrapper/maven-wrapper.jar
new file mode 100755
index 0000000..f775b1c
Binary files /dev/null and b/oas-validator/.mvn/wrapper/maven-wrapper.jar differ
diff --git a/oas-validator/.mvn/wrapper/maven-wrapper.properties b/oas-validator/.mvn/wrapper/maven-wrapper.properties
new file mode 100755
index 0000000..eb91947
--- /dev/null
+++ b/oas-validator/.mvn/wrapper/maven-wrapper.properties
@@ -0,0 +1 @@
+distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.3/apache-maven-3.3.3-bin.zip
\ No newline at end of file
diff --git a/oas-validator/Jenkinsfile b/oas-validator/Jenkinsfile
new file mode 100755
index 0000000..ea54d66
--- /dev/null
+++ b/oas-validator/Jenkinsfile
@@ -0,0 +1,61 @@
+pipeline {
+  agent any
+
+  triggers {
+    // ๆฏ30ๅˆ†้’Ÿๆฃ€ๆŸฅไธ€ไธ‹GITไป“ๅบ“
+    pollSCM '*/30 * * * *'
+  }
+
+  options {
+    // ็ฆๆญขๅ› Multibranch pipeline indexๅŠจไฝœ่งฆๅ‘ๆž„ๅปบ
+    overrideIndexTriggers false
+    // ็ฆๆญขๅนถๅ‘ๆž„ๅปบ
+    disableConcurrentBuilds()
+    // ๆž„ๅปบ็ป“ๆžœไฟ็•™ๅคฉๆ•ฐ10ๅคฉ๏ผŒๆœ€ๅคšไฟ็•™10ไธช
+    buildDiscarder logRotator(daysToKeepStr: '30', numToKeepStr: '10')
+    // ๆŽงๅˆถๅฐๆ‰“ๅ‡บๆ—ถ้—ดๆˆณ
+    // timestamps()
+    // ๆž„ๅปบ่ถ…ๆ—ถ่ฎพ็ฝฎ๏ผš15ๅˆ†้’Ÿ
+    timeout(30)
+  }
+
+  stages {
+
+    stage('Build & Test') {
+
+      steps {
+        withMaven(
+          // Jenkinsๅ…จๅฑ€ๅทฅๅ…ท่ฎพ็ฝฎ็š„Maven็š„ๅๅญ—
+          maven: 'Maven3',
+          // Jenkinsๅ…จๅฑ€ๅทฅๅ…ท่ฎพ็ฝฎ็š„JDK็š„ๅๅญ—๏ผŒๆœ‰JDK6๏ผŒJDK7๏ผŒJDK8ๅฏ้€‰
+          jdk: 'JDK8',
+          // ๆŒ‡ๅฎšmavenๆœฌๅœฐไป“ๅบ“่ทฏๅพ„ไธบ้กน็›ฎworking dirไธ‹็š„.local-m2-reop๏ผŒๅฏไปฅ้ฟๅ…ๅ› ๅนถๅ‘ๆž„ๅปบๅฏผ่‡ดๆœฌๅœฐไป“ๅบ“ๆททไนฑ็š„้—ฎ้ข˜
+          mavenLocalRepo: '.local-m2-repo'
+        ) {
+          sh 'mvn -f ./ clean install'
+        }
+      }
+
+    }
+
+
+  }
+
+  post {
+    always {
+      // ๅ‘้€้‚ฎไปถๅˆฐๆœฌๆฌกchangeๆ‰€ๅŒ…ๅซ็š„committer
+      emailext recipientProviders: [developers()],
+        subject: "Pipeline [${currentBuild.fullDisplayName}] built ${currentBuild.currentResult}",
+        body: "More details: ${currentBuild.absoluteUrl}"
+
+    }
+    cleanup {
+      // ๆธ…็ฉบworkspace๏ผŒ่Š‚็œJenkinsๆœๅŠกๅ™จ็ฃ็›˜็ฉบ้—ด
+      echo 'Cleanup workspace'
+      withMaven(maven: 'Maven3', jdk: 'JDK8', mavenLocalRepo: '.local-m2-repo', publisherStrategy: 'EXPLICIT') {
+        sh 'mvn -f ./ clean'
+      }
+
+    }
+  }
+}
diff --git a/oas-validator/LICENSE b/oas-validator/LICENSE
new file mode 100755
index 0000000..261eeb9
--- /dev/null
+++ b/oas-validator/LICENSE
@@ -0,0 +1,201 @@
+                                 Apache License
+                           Version 2.0, January 2004
+                        http://www.apache.org/licenses/
+
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+   1. Definitions.
+
+      "License" shall mean the terms and conditions for use, reproduction,
+      and distribution as defined by Sections 1 through 9 of this document.
+
+      "Licensor" shall mean the copyright owner or entity authorized by
+      the copyright owner that is granting the License.
+
+      "Legal Entity" shall mean the union of the acting entity and all
+      other entities that control, are controlled by, or are under common
+      control with that entity. For the purposes of this definition,
+      "control" means (i) the power, direct or indirect, to cause the
+      direction or management of such entity, whether by contract or
+      otherwise, or (ii) ownership of fifty percent (50%) or more of the
+      outstanding shares, or (iii) beneficial ownership of such entity.
+
+      "You" (or "Your") shall mean an individual or Legal Entity
+      exercising permissions granted by this License.
+
+      "Source" form shall mean the preferred form for making modifications,
+      including but not limited to software source code, documentation
+      source, and configuration files.
+
+      "Object" form shall mean any form resulting from mechanical
+      transformation or translation of a Source form, including but
+      not limited to compiled object code, generated documentation,
+      and conversions to other media types.
+
+      "Work" shall mean the work of authorship, whether in Source or
+      Object form, made available under the License, as indicated by a
+      copyright notice that is included in or attached to the work
+      (an example is provided in the Appendix below).
+
+      "Derivative Works" shall mean any work, whether in Source or Object
+      form, that is based on (or derived from) the Work and for which the
+      editorial revisions, annotations, elaborations, or other modifications
+      represent, as a whole, an original work of authorship. For the purposes
+      of this License, Derivative Works shall not include works that remain
+      separable from, or merely link (or bind by name) to the interfaces of,
+      the Work and Derivative Works thereof.
+
+      "Contribution" shall mean any work of authorship, including
+      the original version of the Work and any modifications or additions
+      to that Work or Derivative Works thereof, that is intentionally
+      submitted to Licensor for inclusion in the Work by the copyright owner
+      or by an individual or Legal Entity authorized to submit on behalf of
+      the copyright owner. For the purposes of this definition, "submitted"
+      means any form of electronic, verbal, or written communication sent
+      to the Licensor or its representatives, including but not limited to
+      communication on electronic mailing lists, source code control systems,
+      and issue tracking systems that are managed by, or on behalf of, the
+      Licensor for the purpose of discussing and improving the Work, but
+      excluding communication that is conspicuously marked or otherwise
+      designated in writing by the copyright owner as "Not a Contribution."
+
+      "Contributor" shall mean Licensor and any individual or Legal Entity
+      on behalf of whom a Contribution has been received by Licensor and
+      subsequently incorporated within the Work.
+
+   2. Grant of Copyright License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      copyright license to reproduce, prepare Derivative Works of,
+      publicly display, publicly perform, sublicense, and distribute the
+      Work and such Derivative Works in Source or Object form.
+
+   3. Grant of Patent License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      (except as stated in this section) patent license to make, have made,
+      use, offer to sell, sell, import, and otherwise transfer the Work,
+      where such license applies only to those patent claims licensable
+      by such Contributor that are necessarily infringed by their
+      Contribution(s) alone or by combination of their Contribution(s)
+      with the Work to which such Contribution(s) was submitted. If You
+      institute patent litigation against any entity (including a
+      cross-claim or counterclaim in a lawsuit) alleging that the Work
+      or a Contribution incorporated within the Work constitutes direct
+      or contributory patent infringement, then any patent licenses
+      granted to You under this License for that Work shall terminate
+      as of the date such litigation is filed.
+
+   4. Redistribution. You may reproduce and distribute copies of the
+      Work or Derivative Works thereof in any medium, with or without
+      modifications, and in Source or Object form, provided that You
+      meet the following conditions:
+
+      (a) You must give any other recipients of the Work or
+          Derivative Works a copy of this License; and
+
+      (b) You must cause any modified files to carry prominent notices
+          stating that You changed the files; and
+
+      (c) You must retain, in the Source form of any Derivative Works
+          that You distribute, all copyright, patent, trademark, and
+          attribution notices from the Source form of the Work,
+          excluding those notices that do not pertain to any part of
+          the Derivative Works; and
+
+      (d) If the Work includes a "NOTICE" text file as part of its
+          distribution, then any Derivative Works that You distribute must
+          include a readable copy of the attribution notices contained
+          within such NOTICE file, excluding those notices that do not
+          pertain to any part of the Derivative Works, in at least one
+          of the following places: within a NOTICE text file distributed
+          as part of the Derivative Works; within the Source form or
+          documentation, if provided along with the Derivative Works; or,
+          within a display generated by the Derivative Works, if and
+          wherever such third-party notices normally appear. The contents
+          of the NOTICE file are for informational purposes only and
+          do not modify the License. You may add Your own attribution
+          notices within Derivative Works that You distribute, alongside
+          or as an addendum to the NOTICE text from the Work, provided
+          that such additional attribution notices cannot be construed
+          as modifying the License.
+
+      You may add Your own copyright statement to Your modifications and
+      may provide additional or different license terms and conditions
+      for use, reproduction, or distribution of Your modifications, or
+      for any such Derivative Works as a whole, provided Your use,
+      reproduction, and distribution of the Work otherwise complies with
+      the conditions stated in this License.
+
+   5. Submission of Contributions. Unless You explicitly state otherwise,
+      any Contribution intentionally submitted for inclusion in the Work
+      by You to the Licensor shall be under the terms and conditions of
+      this License, without any additional terms or conditions.
+      Notwithstanding the above, nothing herein shall supersede or modify
+      the terms of any separate license agreement you may have executed
+      with Licensor regarding such Contributions.
+
+   6. Trademarks. This License does not grant permission to use the trade
+      names, trademarks, service marks, or product names of the Licensor,
+      except as required for reasonable and customary use in describing the
+      origin of the Work and reproducing the content of the NOTICE file.
+
+   7. Disclaimer of Warranty. Unless required by applicable law or
+      agreed to in writing, Licensor provides the Work (and each
+      Contributor provides its Contributions) on an "AS IS" BASIS,
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+      implied, including, without limitation, any warranties or conditions
+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+      PARTICULAR PURPOSE. You are solely responsible for determining the
+      appropriateness of using or redistributing the Work and assume any
+      risks associated with Your exercise of permissions under this License.
+
+   8. Limitation of Liability. In no event and under no legal theory,
+      whether in tort (including negligence), contract, or otherwise,
+      unless required by applicable law (such as deliberate and grossly
+      negligent acts) or agreed to in writing, shall any Contributor be
+      liable to You for damages, including any direct, indirect, special,
+      incidental, or consequential damages of any character arising as a
+      result of this License or out of the use or inability to use the
+      Work (including but not limited to damages for loss of goodwill,
+      work stoppage, computer failure or malfunction, or any and all
+      other commercial damages or losses), even if such Contributor
+      has been advised of the possibility of such damages.
+
+   9. Accepting Warranty or Additional Liability. While redistributing
+      the Work or Derivative Works thereof, You may choose to offer,
+      and charge a fee for, acceptance of support, warranty, indemnity,
+      or other liability obligations and/or rights consistent with this
+      License. However, in accepting such obligations, You may act only
+      on Your own behalf and on Your sole responsibility, not on behalf
+      of any other Contributor, and only if You agree to indemnify,
+      defend, and hold each Contributor harmless for any liability
+      incurred by, or claims asserted against, such Contributor by reason
+      of your accepting any such warranty or additional liability.
+
+   END OF TERMS AND CONDITIONS
+
+   APPENDIX: How to apply the Apache License to your work.
+
+      To apply the Apache License to your work, attach the following
+      boilerplate notice, with the fields enclosed by brackets "[]"
+      replaced with your own identifying information. (Don't include
+      the brackets!)  The text should be enclosed in the appropriate
+      comment syntax for the file format. We also recommend that a
+      file or class name and description of purpose be included on the
+      same "printed page" as the copyright notice for easier
+      identification within third-party archives.
+
+   Copyright [yyyy] [name of copyright owner]
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
diff --git a/oas-validator/README.md b/oas-validator/README.md
new file mode 100755
index 0000000..c9b5e07
--- /dev/null
+++ b/oas-validator/README.md
@@ -0,0 +1,447 @@
+# OAS Validator
+
+OpenAPI V3 Specๆ ก้ชŒๅทฅๅ…ทใ€‚
+
+[TOC]
+
+## ้กน็›ฎ็ป“ๆž„
+
+* oas-validator-core๏ผŒๆ ธๅฟƒAPIๅŠ้ชจๆžถๅฎž็Žฐ
+* oas-validator-core-spring๏ผŒ้ชจๆžถ็š„Spring Boot Autoconfiguration
+* oas-validator-test๏ผŒๆ ธๅฟƒAPI็š„ๆต‹่ฏ•ๅธฎๅŠฉ็ฑป
+* oas-validator-compliance๏ผŒๅˆ่ง„ๆ€งๆ ก้ชŒๅฎž็Žฐ
+* oas-validator-compliance-spring๏ผŒๅˆ่ง„ๆ€งๆ ก้ชŒ็š„Spring Boot Autoconfiguration
+* oas-validator-compatibility๏ผŒๅ…ผๅฎนๆ€งๆ ก้ชŒๅฎž็Žฐ
+* oas-validator-compatibility-spring๏ผŒๅ…ผๅฎนๆ€งๆ ก้ชŒๅฎž็Žฐ็š„Spring Boot Autoconfiguration
+* oas-validator-web๏ผŒๆ ก้ชŒๅทฅๅ…ท็š„ๆ“ไฝœUI
+
+
+
+## ๆ ก้ชŒๅทฅๅ…ทๅฎ‰่ฃ…
+
+[ๅฎ‰่ฃ…ๆ–‡ๆกฃ](./doc/INSTALLATION.MD)
+
+
+
+## ๆ ก้ชŒๅทฅๅ…ทไฝฟ็”จ
+
+[ไฝฟ็”จๆ–‡ๆกฃ](./doc/USAGE.MD)
+
+
+
+## ๅˆ่ง„ๆ€งๆ ก้ชŒ
+
+OASๅฟ…้กป็ฌฆๅˆ[OAS 3.0.2่ง„่Œƒ][openapi-3.0.2]๏ผˆๆฏ”ๅฆ‚ๅฑžๆ€ง็š„ๅ็งฐใ€REQUIED่ฆๆฑ‚๏ผ‰ใ€‚้™คๆญคไน‹ๅค–ๅˆ™ๆ˜ฏๆˆ‘ไปฌ่‡ชๅทฑ็š„ๅฎšไน‰็š„ๅˆ่ง„ๆ€งๆฃ€ๆŸฅใ€‚
+
+### ไธ€ไบ›ๅญ—็ฌฆไธฒๅŒน้…่ง„ๅˆ™
+
+* <a name="lower-camel-case"></a>Lower Camel Case๏ผš้ฆ–ๅญ—ๆฏๅฐๅ†™็š„้ฉผๅณฐ๏ผŒๅฏนๅบ”็š„ๆญฃๅˆ™`^[a-z]+((\d)|([A-Z0-9][a-z0-9]+))*([A-Z])?$`
+* <a name="upper-camel-case"></a>Upper Camel Case๏ผš้ฆ–ๅญ—ๆฏๅคงๅ†™็š„้ฉผๅณฐ๏ผŒๅฏนๅบ”็š„ๆญฃๅˆ™`^[A-Z]([a-z0-9]+[A-Z]?)*$`
+* <a name="upper-hyphen-case"></a>Upper Hyphen Case๏ผšๅ•่ฏ้ฆ–ๅญ—ๆฏๅคงๅ†™๏ผŒๅคšไธชๅ•่ฏ็”จ`-`่ฟžๆŽฅ๏ผŒๆฏ”ๅฆ‚`Content-Type`ใ€`Accept`ใ€`X-Rate-Limit-Limit`ใ€‚ๅฏนๅบ”็š„ๆญฃๅˆ™๏ผš`^([A-Z][a-z0-9]*-)*([A-Z][a-z0-9]*)$`
+
+### OpenAPI Object [doc][spec-openapi]
+
+<a name="openapi-compliance"></a>
+
+* `openapi`ๅฑžๆ€งๅฟ…้กปไธบ3.0.xไธ”>=3.0.2
+* `info`ๅฑžๆ€ง่ง[Info Objectๅˆ่ง„ๆ€งๆฃ€ๆŸฅ](#info-compliance)
+* `paths`ๅฑžๆ€ง๏ผŒๅฟ…้กปๆไพ›่ง[Paths Objectๅˆ่ง„ๆ€งๆฃ€ๆŸฅ](#paths-compliance)
+* `components`ๅฑžๆ€ง่ง[Components Objectๅˆ่ง„ๆ€งๆฃ€ๆŸฅ](#components-compliance)
+* `tags`ๅฑžๆ€ง๏ผŒ่‡ณๅฐ‘ๆไพ›ไธ€ไธช[Tag Object][spec-tag]
+  * ่ง[Tag Objectๅˆ่ง„ๆ€งๆฃ€ๆŸฅ](#tag-compliance)
+* `security`ๅฑžๆ€ง๏ผŒไธๅ…่ฎธๆไพ›
+
+### Info Object [doc][spec-info]
+
+<a name="info-compliance"></a>
+
+* `description`ๅฑžๆ€ง๏ผŒๅฟ…้กปๅกซๅ†™
+
+### Tag Object [doc][spec-tag]
+
+<a name="tag-compliance"></a>
+
+- `name`ๅฑžๆ€ง๏ผŒๅฟ…้กปๆ˜ฏ[Upper Camel Case](#upper-camel-case)
+- `description`ๅฑžๆ€ง๏ผŒๅฟ…้กปๅกซๅ†™
+- ไธๅพ—ๅญ˜ๅœจ[Operation Object][spec-operation]ๆฒกๆœ‰ๅผ•็”จ่ฟ‡็š„tag
+
+### Paths Object [doc][spec-paths]
+
+<a name="paths-compliance"></a>
+
+* pathๅฟ…้กปๆ˜ฏ[Lower Camel Case](#lower-camel-case)๏ผŒๅŒ…ๆ‹ฌ[Path Templating][spec-path-templating]ไธญ็š„ๅ˜้‡
+  * ่ง[Path Item Objectๅˆ่ง„ๆ€งๆฃ€ๆŸฅ](#path-item-compliance)
+
+### Path Item Object [doc][spec-path-item]
+
+<a name="path-item-compliance"></a>
+
+* `get/post/put/delete/...`ๅฑžๆ€ง๏ผŒ่ง[Operation Objectๅˆ่ง„ๆ€งๆฃ€ๆŸฅ](operation-compliance)
+* `parameters`ๅฑžๆ€ง๏ผŒ่ง[Parameter Objectๅˆ่ง„ๆ€งๆฃ€ๆŸฅ](#parameter-compliance)
+
+### Operation Object [doc][spec-operation]
+
+<a name="operation-compliance"></a>
+
+* `summary`ๅฑžๆ€งใ€ๅฟ…้กปๅกซๅ†™
+* `operationId`ๅฑžๆ€ง๏ผŒไธ”[Lower Camel Case](#lower-camel-case)
+* `parameters`ๅฑžๆ€ง๏ผŒ่ง[Parameter Objectๅˆ่ง„ๆ€งๆฃ€ๆŸฅ](#parameter-compliance)
+* `requestBody`ๅฑžๆ€ง๏ผŒ่ง[Request Body Objectๅˆ่ง„ๆ€งๆฃ€ๆŸฅ](#request-body-compliance)
+* `responses`ๅฑžๆ€ง๏ผŒ่ง[Responses Objectๅˆ่ง„ๆ€งๆฃ€ๆŸฅ](#responses-compliance)
+* `tags`ๅฑžๆ€ง๏ผŒไธ”ๅช่ƒฝๅ†™ไธ€ไธชtag๏ผŒไธ”ๅฟ…้กปๅœจ[OpenAPI Object][spec-openapi] ็š„ `tags`ๅฑžๆ€ง้‡Œๆ‰€ๅฎšไน‰็š„่Œƒๅ›ดๅ†…
+  
+* `servers`ๅฑžๆ€ง๏ผŒไธๅ…่ฎธๆไพ›
+
+### Parameter Object [doc][spec-parameter]
+
+<a name="parameter-compliance"></a>
+
+* `description`ๅฑžๆ€ง๏ผŒๅฟ…้กปๅกซๅ†™
+* `name`ๅฑžๆ€ง
+  * ๅฆ‚ๆžœ`in`ไธบpathใ€queryใ€cookie๏ผŒๅˆ™้‚ฃไนˆๅฟ…้กปๆ˜ฏ[Lower Camel Case](#lower-camel-case)
+  * ๅฆ‚ๆžœ`in`ไธบheader๏ผŒๅˆ™้‚ฃไนˆๅฟ…้กปๆ˜ฏ[Upper Hyphen Case](#upper-hyphen-case)
+* `schema`ๅฑžๆ€ง๏ผŒ่ง[Schema Objectๅˆ่ง„ๆ€งๆฃ€ๆŸฅ](#schema-compliance)
+* `content`ๅฑžๆ€ง๏ผŒ่ง[Media Type Objectๅˆ่ง„ๆ€งๆฃ€ๆŸฅ](#media-type-compliance)
+
+### Request Body Object [doc][spec-request-body]
+
+<a name="request-body-compliance"></a>
+
+* `description`ๅฑžๆ€ง๏ผŒๅฟ…้กปๅกซๅ†™
+* `content`ๅฑžๆ€ง๏ผŒ่ง[Media Type Objectๅˆ่ง„ๆ€งๆฃ€ๆŸฅ](#media-type-compliance)
+
+### Media Type Object [doc][spec-media-type]
+
+<a name="media-type-compliance"></a>
+
+* `schema`ๅฑžๆ€ง๏ผŒๅฟ…้กปๅกซๅ†™ใ€‚่ง[Schema Objectๅˆ่ง„ๆ€งๆฃ€ๆŸฅ](#schema-compliance)
+* `encoding`ๅฑžๆ€ง๏ผŒ่ง[Encoding Objectๅˆ่ง„ๆ€งๆฃ€ๆŸฅ](#encoding-compliance)
+
+### Responses Object [doc][spec-responses]
+
+<a name="responses-compliance"></a>
+
+* ่ง[Response Objectๅˆ่ง„ๆ€งๆฃ€ๆŸฅ](#response-compliance)
+
+### Response Object [doc][spec-response]
+
+<a name="response-compliance"></a>
+
+* `description`ๅฑžๆ€ง๏ผŒๅฟ…้กปๅกซๅ†™
+* `headers`ๅฑžๆ€ง๏ผŒname๏ผˆ`headers`็š„key๏ผ‰ๅฟ…้กปๆ˜ฏ[Upper Hyphen Case](#upper-hyphen-case)
+  * ่ง[Header Objectๅˆ่ง„ๆ€งๆฃ€ๆŸฅ](#header-compliance)
+* `content`ๅฑžๆ€ง๏ผŒ่ง[Media Type Objectๅˆ่ง„ๆ€งๆฃ€ๆŸฅ](#media-type-compliance)
+
+### Schema Object [doc][spec-schema]
+
+<a name="schema-compliance"></a>
+
+* `title`ๅฑžๆ€ง๏ผŒๅฆ‚ๆžœไธŠ็บงๆ˜ฏ[Schema Object][spec-schema]ๆˆ–[Components Object][spec-components]๏ผŒ้‚ฃไนˆๅฟ…้กปๅกซๅ†™
+* `properties`ๅฑžๆ€ง๏ผŒname๏ผˆ`properties`็š„key๏ผ‰ๅฟ…้กปๆ˜ฏ[Lower Camel Case](#lower-camel-case)
+  * Sub Schema่ง[Schema Objectๅˆ่ง„ๆ€งๆฃ€ๆŸฅ](#schema-compliance)
+
+### Encoding Object [doc][spec-encoding]
+
+<a name="encoding-compliance"></a>
+
+* `headers`ๅฑžๆ€ง๏ผŒname๏ผˆ`headers`็š„key๏ผ‰ๅฟ…้กปๆ˜ฏ[Upper Hyphen Case](#upper-hyphen-case)
+  * ่ง[Header Objectๅˆ่ง„ๆ€งๆฃ€ๆŸฅ](#header-compliance)
+
+### Header Object [doc][spec-header]
+
+<a name="header-compliance"></a>
+
+* `description`ๅฑžๆ€ง๏ผŒๅฟ…้กปๅกซๅ†™
+* `schema`ๅฑžๆ€ง๏ผŒ่ง[Schema Objectๅˆ่ง„ๆ€งๆฃ€ๆŸฅ](#schema-compliance)
+* `content`ๅฑžๆ€ง๏ผŒ่ง[Media Type Objectๅˆ่ง„ๆ€งๆฃ€ๆŸฅ](#media-type-compliance)
+
+### Components Object [doc][spec-components]
+
+<a name="components-compliance"></a>
+
+* `schemas`ๅฑžๆ€ง๏ผŒnameๅฟ…้กปๆ˜ฏ[Upper Camel Case](#upper-camel-case)
+  * ่ง[Schema Objectๅˆ่ง„ๆ€งๆฃ€ๆŸฅ](#schema-compliance)
+* `responses`ๅฑžๆ€ง๏ผŒnameๅฟ…้กปๆ˜ฏ[Upper Camel Case](#upper-camel-case)
+  * ่ง[Response Objectๅˆ่ง„ๆ€งๆฃ€ๆŸฅ](#response-compliance)
+* `parameters`ๅฑžๆ€ง๏ผŒnameๅฟ…้กปๆ˜ฏ[Upper Camel Case](#upper-camel-case)
+  * ่ง[Parameter Objectๅˆ่ง„ๆ€งๆฃ€ๆŸฅ](#parameter-compliance)
+* `examples`ๅฑžๆ€ง๏ผŒnameๅฟ…้กปๆ˜ฏ[Upper Camel Case](#upper-camel-case)
+* `requestBodies`ๅฑžๆ€ง๏ผŒnameๅฟ…้กปๆ˜ฏ[Upper Camel Case](#upper-camel-case)
+  * ่ง[Request Bodyๅˆ่ง„ๆ€งๆฃ€ๆŸฅ](#request-body-compliance)
+* `headers`ๅฑžๆ€ง๏ผŒnameๅฟ…้กปๆ˜ฏ[Upper Hyphen Case](#upper-hyphen-case)
+  * ่ง[Headerๅˆ่ง„ๆ€งๆฃ€ๆŸฅ](#header-compliance)
+* `links`ๅฑžๆ€ง๏ผŒnameๅฟ…้กปๆ˜ฏ[Upper Camel Case](#upper-camel-case)
+* `callbacks`ๅฑžๆ€ง๏ผŒnameๅฟ…้กปๆ˜ฏ[Upper Camel Case](#upper-camel-case)
+
+## ๅ…ผๅฎนๆ€งๆฃ€ๆŸฅ
+
+ๅฏนๆ–ฐๆ—งไธคไธช็‰ˆๆœฌ็š„OASๅšๅ…ผๅฎนๆ€งๆฃ€ๆŸฅใ€‚
+
+OASๅฏไปฅไฝฟ็”จ[Reference Object][spec-reference]ๆฅๆ่ฟฐSpec๏ผŒไธคไธชไธๅŒ็š„OASไผšๅ‡บ็Žฐๆ่ฟฐไธๅŒไฝ†่ฏญไน‰็›ธๅŒ็š„ๆƒ…ๅ†ตใ€‚ๆฏ”ๅฆ‚ไธ‹้ข็š„ๆ—งOASๆฒกๆœ‰ไฝฟ็”จ[Reference Object][spec-reference]๏ผŒ่€Œๆ–ฐOASๅˆ™ไฝฟ็”จไบ†็š„ๆƒ…ๅ†ต๏ผš
+
+ๆ—งOAS
+
+```yaml
+openapi: "3.0.0"
+info:
+  version: 1.0.0
+  title: Swagger Petstore
+  license:
+    name: MIT
+servers:
+  - url: http://petstore.swagger.io/v1
+paths:
+  /pets:
+    post:
+      summary: List all pets
+      operationId: listPets
+      requestBody:
+        content:
+          application/json:
+            schema:
+              type: array
+              items:
+                type: object
+                properties:
+                  Foo:
+                    type: string
+      responses:
+        '200':
+          description: A paged array of pets
+```
+
+ๆ–ฐOAS
+
+```yaml
+paths:
+  /pets:
+    post:
+      operationId: listPets
+      requestBody:
+        content:
+          application/json: 
+            schema:
+              $ref: '#/components/schemas/Foo'
+      responses:
+        '200':
+          description: A paged array of pets
+components:
+  schemas:
+    Foo:
+      type: array
+      items:
+        type: object
+        properties:
+          Foo:
+            type: string
+```
+
+ๅ› ๆญคๅœจๆฃ€ๆŸฅๅ…ผๅฎนๆ€ง็š„ๆ—ถๅ€™ไผšๅฐ†ๆ–ฐๆ—งOAS็š„[Reference Object][spec-reference]ๅš่งฃๆž๏ผŒ็„ถๅŽๅ†ๆฃ€ๆŸฅ๏ผŒไธ‹้ขๆ˜ฏไธ€ๆฎต[swagger-parser][swagger-parser]็š„ไพ‹ๅญ๏ผš
+
+```java
+OpenAPIV3Parser parser = new OpenAPIV3Parser();
+
+ParseOptions parseOptions = new ParseOptions();
+parseOptions.setResolve(true);
+parseOptions.setResolveCombinators(true);
+parseOptions.setResolveFully(true);
+parseOptions.setFlatten(false);
+
+SwaggerParseResult parseResult = parser.readContents(content, null, parseOptions);
+```
+
+ๅ› ๆญค๏ผŒๆฃ€ๆŸฅไธ‹ๆฅๅฆ‚ๆžœๅ‘็Žฐไธๅ…ผๅฎน๏ผŒ้‚ฃไนˆๆ‰€ๆŠฅๅ‘Š็š„ไฝ็ฝฎไผšๅ’ŒๅŽŸๆ–‡ๆกฃๆœ‰ๆ‰€ไธๅŒใ€‚
+
+### Paths Object [doc][spec-paths]
+
+<a name="paths-compatibility"></a>
+
+* ๆ–ฐOASๅฟ…้กปๅŒ…ๅซๆ—งOAS็š„ๆ‰€ๆœ‰็š„`path`๏ผŒๅฆ‚ๆžœ`path`ไฝฟ็”จไบ†[Path Templating][spec-path-templating]๏ผŒๅช่ฆๅ˜้‡ๅๅ‘็”Ÿไบ†ๅ˜ๅŒ–๏ผŒ้‚ฃไนˆๅณไฝฟ่ฏญไน‰ไธŠ็›ธๅŒไนŸไผš่ขซ่ฎคไธบไธๅŒ๏ผŒๆฏ”ๅฆ‚`/pets/{foo}`ๅ’Œ`/pets/{bar}`ไผš่ขซ่ฎคๅฎšไธบไธๅŒใ€‚
+  * ่ง[Path Item Objectๅ…ผๅฎนๆ€งๆฃ€ๆŸฅ](#path-item-compatibility)
+
+### Path Item Object [doc][spec-path-item]
+
+<a name="path-item-compatibility"></a>
+
+* ๆ–ฐOASๅฟ…้กปๅŒ…ๅซๆ—งOAS็š„ๆ‰€ๆœ‰็š„get/put/post/delete/...[Operation Object][spec-operation]
+
+### Operation Object [doc][spec-operation]
+
+<a name="operation-compatibility"></a>
+
+* `operationId`ๅฑžๆ€ง๏ผŒๆ–ฐๆ—งOASๅฟ…้กปๅฎŒๅ…จไธ€่‡ดใ€‚
+* `parameters`ๅฑžๆ€ง๏ผŒๅฏนๅฎƒๆฃ€ๆŸฅ้กปๅœจ่€ƒ่™‘ๅˆฐ[Path Item Object parametersๅฑžๆ€ง][spec-path-item-parameters]็š„ๆƒ…ๅ†ตไธ‹่ฟ›่กŒ๏ผš
+  * ๆ–ฐOASๅฏไปฅๆ–ฐๅขž[Parameter Object][spec-parameter]๏ผŒไฝ†ๆ˜ฏๆ–ฐๅขž็š„[Parameter Object][spec-parameter]็š„`required`ๅฑžๆ€งๅฟ…้กปไธบ`false`
+  * ๆ–ฐOASๅฏไปฅๅˆ ้™ค[Parameter Object][spec-parameter]
+  * ้’ˆๅฏนๅ•ไธช[Parameter Object][spec-parameter]็š„ไฟฎๆ”น็š„ๆฃ€ๆŸฅ่ง[Parameter Objectๅ…ผๅฎนๆ€งๆฃ€ๆŸฅ](#parameter-compatibility)๏ผˆๅœจๅŒไธ€ไธช[Operation Object][spec-operation]ไธ‹[Parameter Object][spec-parameter]ไพ้ `name`ๅ’Œ`in`ไธคไธชๅฑžๆ€งไฝœไธบID๏ผ‰ใ€‚
+* `requestBody`ๅฑžๆ€ง๏ผŒ่ง[Request Body Objectๅ…ผๅฎนๆ€งๆฃ€ๆŸฅ](#request-body-compatibility)
+* `responses`ๅฑžๆ€ง๏ผŒ่ง[Responses Objectๅ…ผๅฎนๆ€งๆฃ€ๆŸฅ](#responses-compatibility)
+
+### Parameter Object [doc][spec-parameter]
+
+<a name="parameter-compatibility"></a>
+
+* `required`ๅฑžๆ€ง๏ผŒๅชๅ…่ฎธ`true(ๆ—ง) -> false(ๆ–ฐ)`
+* `allowEmptyValue`ๅฑžๆ€ง๏ผŒๅชๅ…่ฎธ`false(ๆ—ง) -> true(ๆ–ฐ)`็š„ๅ˜ๅŒ–
+* `style`ๅฑžๆ€ง๏ผŒๆ–ฐๆ—งOASๅฟ…้กปไฟๆŒไธ€่‡ด
+* `explode`ๅฑžๆ€ง๏ผŒๆ–ฐๆ—งOASๅฟ…้กปไฟๆŒไธ€่‡ด
+* `allowReserved`ๅฑžๆ€ง๏ผŒๅชๅ…่ฎธ`false(ๆ—ง) -> true(ๆ–ฐ)`็š„ๅ˜ๅŒ–
+* `schema`ๅฑžๆ€ง๏ผŒ่ง[Schema Objectๅ…ผๅฎนๆ€งๆฃ€ๆŸฅ](#schema-compatibility)
+* `content`ๅฑžๆ€ง๏ผŒๆ–ฐOASๅฟ…้กปๅŒ…ๅซๆ—งOAS็š„ๆ‰€ๆœ‰media type๏ผˆ`content`็š„key๏ผ‰๏ผŒไธ”ไธ่ƒฝๆ–ฐๅขžmedia type
+  * ่ง[Media Type Objectๅ…ผๅฎนๆ€งๆฃ€ๆŸฅ](#media-type-compatibility)
+
+### Request Body Object [doc][spec-request-body]
+
+<a name="request-body-compatibility"></a>
+
+* `content`ๅฑžๆ€ง๏ผŒๆ–ฐOASๅฟ…้กปๅŒ…ๅซๆ—งOAS็š„ๆ‰€ๆœ‰media type๏ผˆ`content`็š„key๏ผ‰
+  * ่ง[Media Type Objectๅ…ผๅฎนๆ€งๆฃ€ๆŸฅ](#media-type-compatibility)
+* `required`ๅฑžๆ€ง๏ผŒๅชๅ…่ฎธ`true(ๆ—ง) -> false(ๆ–ฐ)`็š„ๅ˜ๅŒ–
+
+### Media Type Object [doc][spec-media-type]
+
+<a name="media-type-compatibility"></a>
+
+* `schema`ๅฑžๆ€ง๏ผŒ่ง[Schema Objectๅ…ผๅฎนๆ€งๆฃ€ๆŸฅ](#schema-compatibility)
+* `encoding`ๅฑžๆ€ง๏ผŒ่ฏฅๅฑžๆ€งไป…้€‚็”จไบŽ`requestBody`๏ผŒๅ› ๆญคๆ–ฐๆ—งOAS็š„property name๏ผˆ`encoding`็š„key๏ผ‰ๅฟ…้กปๅฎŒๅ…จไธ€่‡ด
+  * ่ง[Encoding Objectๅ…ผๅฎนๆ€งๆฃ€ๆŸฅ](#encoding-compatibility)
+
+### Responses Object [doc][spec-responses]
+
+<a name="responses-compatibility"></a>
+
+* `default`ๅฑžๆ€ง๏ผŒๅฆ‚ๆžœๆ—งOASๆฒกๆœ‰ๅฎšไน‰`default`๏ผŒ้‚ฃไนˆๆ–ฐOASไนŸไธ่ƒฝๅฎšไน‰`default`ใ€‚
+* `{Http Status Code}`ๅฑžๆ€ง๏ผŒๆ–ฐOASไธๅ…่ฎธๆ–ฐๅขžใ€‚
+* ่ง[Response Objectๅ…ผๅฎนๆ€งๆฃ€ๆŸฅ](#response-compatibility)
+
+### Response Object [doc][spec-response]
+
+<a name="response-compatibility"></a>
+
+* `headers`ๅฑžๆ€ง๏ผŒๆ–ฐOASๅฟ…้กปๅŒ…ๅซๆ—งOAS็š„ๆ‰€ๆœ‰header name๏ผˆ`headers`็š„key๏ผ‰๏ผŒๅฏไปฅๆ–ฐๅขžheader name
+  * [Header Object][spec-header]่ง[Header Objectๅ…ผๅฎนๆ€งๆฃ€ๆŸฅ](#header-compatibility)
+* `content`ๅฑžๆ€ง๏ผŒๆ–ฐOASๅฟ…้กปๅŒ…ๅซๆ—งOAS็š„ๆ‰€ๆœ‰media type๏ผˆ`content`็š„key๏ผ‰๏ผŒๅฏไปฅๆ–ฐๅขžmedia type
+  - [Media Type Object][spec-media-type]่ง[Media Type Objectๅ…ผๅฎนๆ€งๆฃ€ๆŸฅ](#media-type-compatibility)
+
+### Schema Object [doc][spec-schema]
+
+<a name="schema-compatibility"></a>
+
+OASไธญๅฎšไน‰๏ผŒSchema Objectๅฏไปฅ็›ดๆŽฅๆˆ–้—ดๆŽฅ็”จๅœจ๏ผš
+
+* ่ฏทๆฑ‚็ฑป๏ผš[Parameter Object][spec-parameter]ใ€[Request Body Object][spec-request-body]ใ€[Header Object][spec-header]
+* ๅ“ๅบ”็ฑป๏ผš[Header Object][spec-header]ใ€[Response Object][spec-response]
+
+ไธๅŒ็”จ้€”็š„ๅ…ผๅฎนๆ€งๆฃ€ๆŸฅ่ง„ๅˆ™ๆœ‰ๆ‰€ไธๅŒใ€‚
+
+### ็”จๅš่ฏทๆฑ‚ๆ—ถ
+
+ๅŽŸๅˆ™ไธŠ๏ผŒๅฝ“Schema Object็”จๅœจ่ฏทๆฑ‚ๆ—ถ๏ผŒๅชๅ…่ฎธไปŽ็ดงๅˆฐๆพ็š„ๅ˜ๅŒ–ใ€‚
+
+* `type, format`็ป„ๅˆๆ‰€ๅ…่ฎธ็š„ๅ˜ๅŒ–่Œƒๅ›ด
+
+| ๆ—ง(type,format)  | ๆ–ฐ(type,format)                                              |
+| ---------------- | ------------------------------------------------------------ |
+| integer, null    | integer, int64<br />number, double<br />number, null         |
+| integer, int32   | integer, int64<br />integer, null<br />number, float<br />number, double<br />number, null |
+| integer, int64   | integer, null<br />number, double<br />number, null          |
+| number, null     | number, double                                               |
+| number, float    | number, null<br />number, double                             |
+| number, double   | number, null                                                 |
+| string, null     | string, password                                             |
+| string, password | string, null                                                 |
+
+* `allOf`ใ€`oneOf`ใ€`anyOf`ๅฑžๆ€ง๏ผŒๅœจcombineไน‹ๅŽๅ†ๅšๆฃ€ๆŸฅ
+* `multipleOf`ๅฑžๆ€ง๏ผŒๅฆ‚ๆžœๆ—งOASไธบnullใ€‚ๆ–ฐOASๅฟ…้กป==ๆ—งOASๆˆ–่€…ๆ–ฐOASๆ˜ฏๆ—งOAS็š„ๅ› ๅญ๏ผŒๆฏ”ๅฆ‚6(ๆ—ง)->3(ๆ–ฐ)
+* `maximum`ใ€`maxLength`ใ€`maxItems`ใ€`maxProperties`๏ผŒๅฆ‚ๆžœๆ—งOASไธบnull๏ผŒ้‚ฃไนˆๆ–ฐOASไนŸๅฟ…้กปๆ˜ฏnullใ€‚ๅ…ถไป–ๆƒ…ๅ†ต๏ผŒๆ–ฐOASๅฟ…้กป>=ๆ—งOASใ€‚
+* `minimum`ใ€`minLenght`ใ€`minItems`ใ€`minProperties`๏ผŒๅฆ‚ๆžœๆ—งOASไธบnull๏ผŒ้‚ฃไนˆๆ–ฐOASไนŸๅฟ…้กปๆ˜ฏnullใ€‚ๅ…ถไป–ๆƒ…ๅ†ต๏ผŒๆ–ฐOASๅฟ…้กป<=ๆ—งOASใ€‚
+* `exclusiveMaximum`ใ€`exclusiveMinimum`ๅฑžๆ€ง๏ผŒไป…ๅ…่ฎธ`true(ๆ—ง)->false(ๆ–ฐ)`็š„ๅ˜ๅŒ–
+* `uniqueItems`ๅฑžๆ€ง๏ผŒๅชๅ…่ฎธ`true(ๆ—ง)->false(ๆ–ฐ)`็š„ๅ˜ๅŒ–ใ€‚
+* `required`ๅฑžๆ€ง๏ผŒๆ–ฐOASๅฟ…้กป==ๆ—งOAS๏ผŒๆˆ–่€…ๆ–ฐOASๆ˜ฏๆ—งOAS็š„ๅญ้›†ใ€‚
+* `enum`ๅฑžๆ€ง๏ผŒๆ–ฐOASๅฟ…้กป==ๆ—งOAS๏ผŒๆˆ–่€…ๆ–ฐOASๆ˜ฏๆ—งOAS็š„่ถ…้›†ใ€‚
+* `properties`ๅฑžๆ€ง๏ผŒๆ–ฐOASๅฏไปฅๆ–ฐๅขžproperty name๏ผˆ`properties`็š„key๏ผ‰ๆˆ–่€…ๅ‡ๅฐ‘property nameใ€‚
+* `nullable`ๅฑžๆ€ง๏ผŒๅชๅ…่ฎธ`false(ๆ—ง)->true(ๆ–ฐ)`็š„ๅ˜ๅŒ–ใ€‚
+* `discriminator`ๅฑžๆ€ง๏ผŒๆ–ฐๆ—งOASๅฟ…้กปๅฎŒๅ…จไธ€่‡ดใ€‚
+* `xml`ๅฑžๆ€ง๏ผŒๆ–ฐๆ—งOASๅฟ…้กปๅฎŒๅ…จไธ€่‡ดใ€‚
+* `readOnly`ใ€`writeOnly`๏ผŒๆ–ฐๆ—งOASๅฟ…้กปๅฎŒๅ…จไธ€่‡ดใ€‚
+
+### ็”จๅšๅ“ๅบ”ๆ—ถ
+
+ๅŽŸๅˆ™ไธŠ๏ผŒๅฝ“Schema Object็”จๅœจๅ“ๅบ”ๆ—ถ๏ผŒๅชๅ…่ฎธไปŽๆพๅˆฐ็ดง็š„ๅ˜ๅŒ–ใ€‚
+
+* `type, format`็ป„ๅˆๆ‰€ๅ…่ฎธ็š„ๅ˜ๅŒ–่Œƒๅ›ด
+
+| ๆ—ง(type,format)  | ๆ–ฐ(type,format)                    |
+| ---------------- | ---------------------------------- |
+| integer, null    | integer, int64<br />integer, int32 |
+| integer, int64   | integer, null<br />interger, int32 |
+| number, null     | number, double<br />number, float  |
+| number, double   | number, null<br />number, float    |
+| string, null     | string, password                   |
+| string, password | string, null                       |
+
+* `allOf`ใ€`oneOf`ใ€`anyOf`ๅฑžๆ€ง๏ผŒๅœจcombineไน‹ๅŽๅ†ๅšๆฃ€ๆŸฅ
+* `multipleOf`ๅฑžๆ€ง๏ผŒๅฆ‚ๆžœๆ—งOASไธบnullใ€‚ๆ–ฐOASๅฟ…้กป==ๆ—งOASๆˆ–่€…ๆ–ฐOASๆ˜ฏๆ—งOAS็š„ๅ€ๆ•ฐ๏ผŒๆฏ”ๅฆ‚3(ๆ—ง)->6(ๆ–ฐ)
+* `maximum`ใ€`maxLength`ใ€`maxItems`ใ€`maxProperties`๏ผŒๅฆ‚ๆžœๆ—งOASไธบnull๏ผŒ้‚ฃไนˆๆ–ฐOASไนŸๅฟ…้กปๆ˜ฏnullใ€‚ๅ…ถไป–ๆƒ…ๅ†ต๏ผŒๆ–ฐOASๅฟ…้กป<=ๆ—งOASใ€‚
+* `minimum`ใ€`minLenght`ใ€`minItems`ใ€`minProperties`๏ผŒๅฆ‚ๆžœๆ—งOASไธบnull๏ผŒ้‚ฃไนˆๆ–ฐOASไนŸๅฟ…้กปๆ˜ฏnullใ€‚ๅ…ถไป–ๆƒ…ๅ†ต๏ผŒๆ–ฐOASๅฟ…้กป>=ๆ—งOASใ€‚
+* `exclusiveMaximum`ใ€`exclusiveMinimum`ๅฑžๆ€ง๏ผŒไป…ๅ…่ฎธ`false(ๆ—ง)->true(ๆ–ฐ)`็š„ๅ˜ๅŒ–
+* `uniqueItems`ๅฑžๆ€ง๏ผŒๅชๅ…่ฎธ`false(ๆ—ง)->true(ๆ–ฐ)`็š„ๅ˜ๅŒ–ใ€‚
+* `required`ๅฑžๆ€ง๏ผŒๆ–ฐOASๅฟ…้กป==ๆ—งOASๆˆ–่€…๏ผŒๆ–ฐOASๆ˜ฏๆ—งOAS็š„่ถ…้›†ใ€‚
+* `enum`ๅฑžๆ€ง๏ผŒๆ–ฐOASๅฟ…้กป==ๆ—งOAS๏ผŒๆˆ–่€…ๆ–ฐOASๆ˜ฏๆ—งOAS็š„ๅญ้›†ใ€‚
+* `properties`ๅฑžๆ€ง๏ผŒๆ–ฐOASๅฏไปฅๆ–ฐๅขžproperty name๏ผˆ`properties`็š„key๏ผ‰ๆˆ–่€…ๅ‡ๅฐ‘property nameใ€‚
+* `nullable`ๅฑžๆ€ง๏ผŒๅชๅ…่ฎธ`true(ๆ—ง)->false(ๆ–ฐ)`็š„ๅ˜ๅŒ–ใ€‚
+* `discriminator`ๅฑžๆ€ง๏ผŒๆ–ฐๆ—งOASๅฟ…้กปๅฎŒๅ…จไธ€่‡ดใ€‚
+* `xml`ๅฑžๆ€ง๏ผŒๆ–ฐๆ—งOASๅฟ…้กปๅฎŒๅ…จไธ€่‡ดใ€‚
+* `readOnly`ใ€`writeOnly`๏ผŒๆ–ฐๆ—งOASๅฟ…้กปๅฎŒๅ…จไธ€่‡ดใ€‚
+
+### Encoding Object [doc][spec-encoding]
+
+<a name="encoding-compatibility"></a>
+
+PS. Encoding Objectไป…้’ˆๅฏนRequest Body Objectๆœ‰็”จ
+
+* `contentType`ๅฑžๆ€ง๏ผŒๆ–ฐๆ—งOASๅฟ…้กปไฟๆŒไธ€่‡ด
+* `headers`ๅฑžๆ€ง๏ผŒๆ–ฐOASๅฟ…้กปๅŒ…ๅซๆ—งOAS็š„ๆ‰€ๆœ‰header name๏ผˆ`headers`็š„key๏ผ‰๏ผŒไธ”ไธ่ƒฝๆ–ฐๅขžheader name๏ผŒไฝ†ๆ˜ฏๅฏไปฅๅ‡ๅฐ‘header name
+  * [Header Object][spec-header]่ง[Header Objectๅ…ผๅฎนๆ€งๆฃ€ๆŸฅ](#header-compatibility)
+* `style`ๅฑžๆ€ง๏ผŒๆ–ฐๆ—งOASๅฟ…้กปไฟๆŒไธ€่‡ด
+* `explode`ๅฑžๆ€ง๏ผŒๆ–ฐๆ—งOASๅฟ…้กปไฟๆŒไธ€่‡ด
+* `allowReserved`ๅฑžๆ€ง๏ผŒๅชๅ…่ฎธ`false(ๆ—ง) -> true(ๆ–ฐ)`็š„ๅ˜ๅŒ–
+
+### Header Object [doc][spec-header]
+
+<a name="header-compatibility"></a>
+
+- `schema`ๅฑžๆ€ง๏ผŒ่ง[Schema Objectๅ…ผๅฎนๆ€งๆฃ€ๆŸฅ](#schema-compatibility)
+
+### Components Object [doc][spec-components]
+
+<a name="components-compatibility"></a>
+
+[Components Object][spec-components]ๅฎšไน‰็š„้ƒฝๆ˜ฏๅฏๅค็”จOAS Object๏ผŒ่€Œๅœจๆฃ€ๆŸฅๅ…ผๅฎนๆ€ง็š„ๆ—ถๅ€™ๆ‰€ๆœ‰`$ref`้ƒฝๅทฒ่ขซ่งฃๆžไบ†๏ผŒๅ› ๆญคไธ้œ€่ฆๅฏน[Components Object][spec-components]็š„ๅฑžๆ€งๅšๅ…ผๅฎนๆ€งๆฃ€ๆŸฅใ€‚
+
+
+[spec-operation]: https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#operationObject
+[openapi-3.0.2]: https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md
+[spec-openapi]: https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#openapi-object
+[spec-server]: https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#serverObject
+[spec-info]: https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#infoObject
+[spec-paths]: https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#paths-object
+[spec-path-item]: https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#pathItemObject
+[spec-parameter]: https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#parameterObject
+[spec-request-body]: https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#requestBodyObject
+[spec-security-scheme]: https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#securitySchemeObject
+[spec-components]: https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#components-object
+[spec-tag]: https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#tagObject
+[spec-schema]: https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#schemaObject
+
+[spec-media-type]: https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#media-type-object
+[spec-response]: https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#response-object
+[spec-path-templating]: https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#path-templating
+[spec-parameterIn]: https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#parameterIn
+[spec-encoding]: https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#encodingObject
+[spec-header]: https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#header-object
+[spec-info]: https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#infoObject
+[spec-reference]: https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#reference-object
+[swagger-parser]: https://github.com/swagger-api/swagger-parser
+[spec-path-item-parameters]: https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#user-content-pathitemparameters
+[spec-responses]: https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#responsesObject
\ No newline at end of file
diff --git a/oas-validator/distribution/pom.xml b/oas-validator/distribution/pom.xml
new file mode 100755
index 0000000..2e7cf98
--- /dev/null
+++ b/oas-validator/distribution/pom.xml
@@ -0,0 +1,107 @@
+<?xml version="1.0"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one or more
+  ~ contributor license agreements.  See the NOTICE file distributed with
+  ~ this work for additional information regarding copyright ownership.
+  ~ The ASF licenses this file to You under the Apache License, Version 2.0
+  ~ (the "License"); you may not use this file except in compliance with
+  ~ the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing, software
+  ~ distributed under the License is distributed on an "AS IS" BASIS,
+  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  ~ See the License for the specific language governing permissions and
+  ~ limitations under the License.
+  -->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+  <parent>
+    <groupId>org.apache.servicecomb.toolkit</groupId>
+    <artifactId>oas-validator-parent</artifactId>
+    <version>0.2.0-SNAPSHOT</version>
+  </parent>
+  <artifactId>oas-validator-distribution</artifactId>
+  <packaging>pom</packaging>
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.servicecomb.toolkit</groupId>
+      <artifactId>oas-validator-core</artifactId>
+      <version>0.2.0-SNAPSHOT</version>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.servicecomb.toolkit</groupId>
+      <artifactId>oas-validator-core-spring</artifactId>
+      <version>0.2.0-SNAPSHOT</version>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.servicecomb.toolkit</groupId>
+      <artifactId>oas-validator-test</artifactId>
+      <version>0.2.0-SNAPSHOT</version>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.servicecomb.toolkit</groupId>
+      <artifactId>oas-validator-compliance</artifactId>
+      <version>0.2.0-SNAPSHOT</version>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.servicecomb.toolkit</groupId>
+      <artifactId>oas-validator-compliance-spring</artifactId>
+      <version>0.2.0-SNAPSHOT</version>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.servicecomb.toolkit</groupId>
+      <artifactId>oas-validator-compatibility</artifactId>
+      <version>0.2.0-SNAPSHOT</version>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.servicecomb.toolkit</groupId>
+      <artifactId>oas-validator-compatibility-spring</artifactId>
+      <version>0.2.0-SNAPSHOT</version>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.servicecomb.toolkit</groupId>
+      <artifactId>oas-validator-web</artifactId>
+      <version>0.2.0-SNAPSHOT</version>
+    </dependency>
+  </dependencies>
+  <profiles>
+    <profile>
+      <id>release</id>
+      <build>
+        <plugins>
+          <plugin>
+            <artifactId>maven-assembly-plugin</artifactId>
+            <executions>
+              <execution>
+                <id>bin</id>
+                <phase>package</phase>
+                <goals>
+                  <goal>single</goal>
+                </goals>
+                <configuration>
+                  <descriptors>
+                    <descriptor>src/assembly/bin.xml</descriptor>
+                  </descriptors>
+                </configuration>
+              </execution>
+              <execution>
+                <id>src</id>
+                <phase>package</phase>
+                <goals>
+                  <goal>single</goal>
+                </goals>
+                <configuration>
+                  <descriptors>
+                    <descriptor>src/assembly/src.xml</descriptor>
+                  </descriptors>
+                </configuration>
+              </execution>
+            </executions>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+  </profiles>
+</project>
diff --git a/oas-validator/distribution/src/assembly/bin.xml b/oas-validator/distribution/src/assembly/bin.xml
new file mode 100755
index 0000000..cb908a3
--- /dev/null
+++ b/oas-validator/distribution/src/assembly/bin.xml
@@ -0,0 +1,65 @@
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one or more
+  ~ contributor license agreements.  See the NOTICE file distributed with
+  ~ this work for additional information regarding copyright ownership.
+  ~ The ASF licenses this file to You under the Apache License, Version 2.0
+  ~ (the "License"); you may not use this file except in compliance with
+  ~ the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing, software
+  ~ distributed under the License is distributed on an "AS IS" BASIS,
+  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  ~ See the License for the specific language governing permissions and
+  ~ limitations under the License.
+  -->
+
+<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
+    <includeBaseDirectory>true</includeBaseDirectory>
+    <baseDirectory>${project.build.finalName}-bin</baseDirectory>
+    <id>bin</id>
+    <formats>
+        <format>zip</format>
+    </formats>
+    <fileSets>
+        <fileSet>
+            <directory>../doc</directory>
+            <outputDirectory>/doc</outputDirectory>
+        </fileSet>
+        <fileSet>
+            <directory>../</directory>
+            <outputDirectory>/</outputDirectory>
+            <includes>
+                <include>README.md</include>
+            </includes>
+        </fileSet>
+        <!-- include the LICENSE file from release directory -->
+        <fileSet>
+            <directory>src/release</directory>
+            <outputDirectory>/</outputDirectory>
+            <includes>
+                <include>LICENSE</include>
+                <include>licenses/**</include>
+            </includes>
+        </fileSet>
+        <!-- include alpha server exec into bin directory -->
+        <fileSet>
+            <directory>../oas-validator-web//target</directory>
+            <outputDirectory>/</outputDirectory>
+            <includes>
+                <include>oas-validator-web-exec.jar</include>
+            </includes>
+            <fileMode>0755</fileMode>
+        </fileSet>
+    </fileSets>
+    <dependencySets>
+        <dependencySet>
+            <useProjectArtifact>true</useProjectArtifact>
+            <unpack>false</unpack>
+            <outputDirectory>/libs</outputDirectory>
+            <scope>runtime</scope>
+        </dependencySet>
+    </dependencySets>
+</assembly>
diff --git a/oas-validator/distribution/src/assembly/src.xml b/oas-validator/distribution/src/assembly/src.xml
new file mode 100755
index 0000000..b365db5
--- /dev/null
+++ b/oas-validator/distribution/src/assembly/src.xml
@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+
+         http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+
+-->
+<assembly>
+  <id>src</id>
+  <formats>
+    <format>zip</format>
+  </formats>
+  <includeBaseDirectory>true</includeBaseDirectory>
+  <baseDirectory>${project.build.finalName}-src</baseDirectory>
+  <fileSets>
+    <!-- Binary Files -->
+    <fileSet>
+      <directory>..</directory>
+      <outputDirectory></outputDirectory>
+      <includes>
+        <include>**/*</include>
+      </includes>
+      <!-- excludes the binary files -->
+      <excludes>
+        <!-- exclude the mvn wrapper in the source artifact -->
+        <exclude>Jenkinsfile</exclude>
+        <exclude>mvnw*</exclude>
+        <exclude>.mvn/**</exclude>
+
+        <exclude>**/eclipse-classes/**</exclude>
+        <exclude>**/target/**</exclude>
+        <exclude>**/build/**</exclude>
+        <exclude>**/eclipse-classes/**</exclude>
+        <exclude>**/.*</exclude>
+        <exclude>**/.*/**</exclude>
+        <exclude>*.enc</exclude>
+        <exclude>*.gpg</exclude>
+        <exclude>random_seed</exclude>
+        <exclude>**/surefire*</exclude>
+        <exclude>**/svn-commit*</exclude>
+
+        <exclude>**/.idea/**</exclude>
+        <exclude>**/*.iml</exclude>
+        <exclude>**/*.ipr</exclude>
+        <exclude>**/*.iws</exclude>
+
+        <exclude>**/cobertura.ser</exclude>
+
+        <exclude>**/node_modules/**</exclude>
+      </excludes>
+    </fileSet>
+
+  </fileSets>
+</assembly>
diff --git a/oas-validator/distribution/src/release/LICENSE b/oas-validator/distribution/src/release/LICENSE
new file mode 100755
index 0000000..d649bec
--- /dev/null
+++ b/oas-validator/distribution/src/release/LICENSE
@@ -0,0 +1,437 @@
+                                 Apache License
+                           Version 2.0, January 2004
+                        http://www.apache.org/licenses/
+
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+   1. Definitions.
+
+      "License" shall mean the terms and conditions for use, reproduction,
+      and distribution as defined by Sections 1 through 9 of this document.
+
+      "Licensor" shall mean the copyright owner or entity authorized by
+      the copyright owner that is granting the License.
+
+      "Legal Entity" shall mean the union of the acting entity and all
+      other entities that control, are controlled by, or are under common
+      control with that entity. For the purposes of this definition,
+      "control" means (i) the power, direct or indirect, to cause the
+      direction or management of such entity, whether by contract or
+      otherwise, or (ii) ownership of fifty percent (50%) or more of the
+      outstanding shares, or (iii) beneficial ownership of such entity.
+
+      "You" (or "Your") shall mean an individual or Legal Entity
+      exercising permissions granted by this License.
+
+      "Source" form shall mean the preferred form for making modifications,
+      including but not limited to software source code, documentation
+      source, and configuration files.
+
+      "Object" form shall mean any form resulting from mechanical
+      transformation or translation of a Source form, including but
+      not limited to compiled object code, generated documentation,
+      and conversions to other media types.
+
+      "Work" shall mean the work of authorship, whether in Source or
+      Object form, made available under the License, as indicated by a
+      copyright notice that is included in or attached to the work
+      (an example is provided in the Appendix below).
+
+      "Derivative Works" shall mean any work, whether in Source or Object
+      form, that is based on (or derived from) the Work and for which the
+      editorial revisions, annotations, elaborations, or other modifications
+      represent, as a whole, an original work of authorship. For the purposes
+      of this License, Derivative Works shall not include works that remain
+      separable from, or merely link (or bind by name) to the interfaces of,
+      the Work and Derivative Works thereof.
+
+      "Contribution" shall mean any work of authorship, including
+      the original version of the Work and any modifications or additions
+      to that Work or Derivative Works thereof, that is intentionally
+      submitted to Licensor for inclusion in the Work by the copyright owner
+      or by an individual or Legal Entity authorized to submit on behalf of
+      the copyright owner. For the purposes of this definition, "submitted"
+      means any form of electronic, verbal, or written communication sent
+      to the Licensor or its representatives, including but not limited to
+      communication on electronic mailing lists, source code control systems,
+      and issue tracking systems that are managed by, or on behalf of, the
+      Licensor for the purpose of discussing and improving the Work, but
+      excluding communication that is conspicuously marked or otherwise
+      designated in writing by the copyright owner as "Not a Contribution."
+
+      "Contributor" shall mean Licensor and any individual or Legal Entity
+      on behalf of whom a Contribution has been received by Licensor and
+      subsequently incorporated within the Work.
+
+   2. Grant of Copyright License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      copyright license to reproduce, prepare Derivative Works of,
+      publicly display, publicly perform, sublicense, and distribute the
+      Work and such Derivative Works in Source or Object form.
+
+   3. Grant of Patent License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      (except as stated in this section) patent license to make, have made,
+      use, offer to sell, sell, import, and otherwise transfer the Work,
+      where such license applies only to those patent claims licensable
+      by such Contributor that are necessarily infringed by their
+      Contribution(s) alone or by combination of their Contribution(s)
+      with the Work to which such Contribution(s) was submitted. If You
+      institute patent litigation against any entity (including a
+      cross-claim or counterclaim in a lawsuit) alleging that the Work
+      or a Contribution incorporated within the Work constitutes direct
+      or contributory patent infringement, then any patent licenses
+      granted to You under this License for that Work shall terminate
+      as of the date such litigation is filed.
+
+   4. Redistribution. You may reproduce and distribute copies of the
+      Work or Derivative Works thereof in any medium, with or without
+      modifications, and in Source or Object form, provided that You
+      meet the following conditions:
+
+      (a) You must give any other recipients of the Work or
+          Derivative Works a copy of this License; and
+
+      (b) You must cause any modified files to carry prominent notices
+          stating that You changed the files; and
+
+      (c) You must retain, in the Source form of any Derivative Works
+          that You distribute, all copyright, patent, trademark, and
+          attribution notices from the Source form of the Work,
+          excluding those notices that do not pertain to any part of
+          the Derivative Works; and
+
+      (d) If the Work includes a "NOTICE" text file as part of its
+          distribution, then any Derivative Works that You distribute must
+          include a readable copy of the attribution notices contained
+          within such NOTICE file, excluding those notices that do not
+          pertain to any part of the Derivative Works, in at least one
+          of the following places: within a NOTICE text file distributed
+          as part of the Derivative Works; within the Source form or
+          documentation, if provided along with the Derivative Works; or,
+          within a display generated by the Derivative Works, if and
+          wherever such third-party notices normally appear. The contents
+          of the NOTICE file are for informational purposes only and
+          do not modify the License. You may add Your own attribution
+          notices within Derivative Works that You distribute, alongside
+          or as an addendum to the NOTICE text from the Work, provided
+          that such additional attribution notices cannot be construed
+          as modifying the License.
+
+      You may add Your own copyright statement to Your modifications and
+      may provide additional or different license terms and conditions
+      for use, reproduction, or distribution of Your modifications, or
+      for any such Derivative Works as a whole, provided Your use,
+      reproduction, and distribution of the Work otherwise complies with
+      the conditions stated in this License.
+
+   5. Submission of Contributions. Unless You explicitly state otherwise,
+      any Contribution intentionally submitted for inclusion in the Work
+      by You to the Licensor shall be under the terms and conditions of
+      this License, without any additional terms or conditions.
+      Notwithstanding the above, nothing herein shall supersede or modify
+      the terms of any separate license agreement you may have executed
+      with Licensor regarding such Contributions.
+
+   6. Trademarks. This License does not grant permission to use the trade
+      names, trademarks, service marks, or product names of the Licensor,
+      except as required for reasonable and customary use in describing the
+      origin of the Work and reproducing the content of the NOTICE file.
+
+   7. Disclaimer of Warranty. Unless required by applicable law or
+      agreed to in writing, Licensor provides the Work (and each
+      Contributor provides its Contributions) on an "AS IS" BASIS,
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+      implied, including, without limitation, any warranties or conditions
+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+      PARTICULAR PURPOSE. You are solely responsible for determining the
+      appropriateness of using or redistributing the Work and assume any
+      risks associated with Your exercise of permissions under this License.
+
+   8. Limitation of Liability. In no event and under no legal theory,
+      whether in tort (including negligence), contract, or otherwise,
+      unless required by applicable law (such as deliberate and grossly
+      negligent acts) or agreed to in writing, shall any Contributor be
+      liable to You for damages, including any direct, indirect, special,
+      incidental, or consequential damages of any character arising as a
+      result of this License or out of the use or inability to use the
+      Work (including but not limited to damages for loss of goodwill,
+      work stoppage, computer failure or malfunction, or any and all
+      other commercial damages or losses), even if such Contributor
+      has been advised of the possibility of such damages.
+
+   9. Accepting Warranty or Additional Liability. While redistributing
+      the Work or Derivative Works thereof, You may choose to offer,
+      and charge a fee for, acceptance of support, warranty, indemnity,
+      or other liability obligations and/or rights consistent with this
+      License. However, in accepting such obligations, You may act only
+      on Your own behalf and on Your sole responsibility, not on behalf
+      of any other Contributor, and only if You agree to indemnify,
+      defend, and hold each Contributor harmless for any liability
+      incurred by, or claims asserted against, such Contributor by reason
+      of your accepting any such warranty or additional liability.
+
+   END OF TERMS AND CONDITIONS
+
+   APPENDIX: How to apply the Apache License to your work.
+
+      To apply the Apache License to your work, attach the following
+      boilerplate notice, with the fields enclosed by brackets "[]"
+      replaced with your own identifying information. (Don't include
+      the brackets!)  The text should be enclosed in the appropriate
+      comment syntax for the file format. We also recommend that a
+      file or class name and description of purpose be included on the
+      same "printed page" as the copyright notice for easier
+      identification within third-party archives.
+
+   Copyright [yyyy] [name of copyright owner]
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+
+================================================================
+This product bundles the following libraries which are licensed
+under the Apache License v2.
+For details, see their respective project links.
+
+* Apache Commons Codec (commons-codec:commons-codec:1.9 - http://commons.apache.org/proper/commons-codec/)
+* Apache Commons Collections (org.apache.commons:commons-collections4:4.3 - http://commons.apache.org/proper/commons-collections/)
+* Apache Commons Lang (org.apache.commons:commons-lang3:3.8.1 - http://commons.apache.org/proper/commons-lang/)
+* Apache Commons Logging (commons-logging:commons-logging:1.2 - http://commons.apache.org/proper/commons-logging/)
+* Apache HttpClient (org.apache.httpcomponents:httpclient:4.5.2 - http://hc.apache.org/httpcomponents-client)
+* Apache HttpCore (org.apache.httpcomponents:httpcore:4.4.4 - http://hc.apache.org/httpcomponents-core-ga)
+* Apache Log4j API (org.apache.logging.log4j:log4j-api:2.11.2 - https://logging.apache.org/log4j/2.x/log4j-api/)
+* Apache Log4j to SLF4J Adapter (org.apache.logging.log4j:log4j-to-slf4j:2.11.2 - https://logging.apache.org/log4j/2.x/log4j-to-slf4j/)
+* ASM based accessors helper used by json-smart (net.minidev:accessors-smart:1.2 - http://www.minidev.net/)
+* AssertJ fluent assertions (org.assertj:assertj-core:3.11.1 - http://assertj.org/assertj-core)
+* attoparser (org.attoparser:attoparser:2.0.5.RELEASE - http://www.attoparser.org)
+* Bean Validation API (javax.validation:validation-api:1.1.0.Final - http://beanvalidation.org)
+* Bean Validation API (javax.validation:validation-api:2.0.1.Final - http://beanvalidation.org)
+* Bootstrap (org.webjars:bootstrap:4.3.1 - http://webjars.org)
+* Byte Buddy (without dependencies) (net.bytebuddy:byte-buddy:1.9.3 - http://bytebuddy.net/byte-buddy)
+* Byte Buddy Java agent (net.bytebuddy:byte-buddy-agent:1.9.3 - http://bytebuddy.net/byte-buddy-agent)
+* ClassMate (com.fasterxml:classmate:1.3.4 - http://github.com/FasterXML/java-classmate)
+* Commons IO (commons-io:commons-io:2.4 - http://commons.apache.org/io/)
+* error-prone annotations (com.google.errorprone:error_prone_annotations:2.2.0 - http://nexus.sonatype.org/oss-repository-hosting.html/error_prone_parent/error_prone_annotations)
+* FindBugs-jsr305 (com.google.code.findbugs:jsr305:3.0.1 - http://findbugs.sourceforge.net/)
+* Guava: Google Core Libraries for Java (com.google.guava:guava:27.0.1-android - https://github.com/google/guava/guava)
+* Guava InternalFutureFailureAccess and InternalFutures (com.google.guava:failureaccess:1.0.1 - https://github.com/google/guava/failureaccess)
+* Guava ListenableFuture only (com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava - https://github.com/google/guava/listenablefuture)
+* Hibernate Validator Engine (org.hibernate.validator:hibernate-validator:6.0.16.Final - http://hibernate.org/validator/hibernate-validator)
+* J2ObjC Annotations (com.google.j2objc:j2objc-annotations:1.1 - https://github.com/google/j2objc/)
+* Jackson-annotations (com.fasterxml.jackson.core:jackson-annotations:2.9.0 - http://github.com/FasterXML/jackson)
+* Jackson-annotations (com.fasterxml.jackson.core:jackson-annotations:2.9.8 - http://github.com/FasterXML/jackson)
+* Jackson-core (com.fasterxml.jackson.core:jackson-core:2.9.8 - https://github.com/FasterXML/jackson-core)
+* jackson-databind (com.fasterxml.jackson.core:jackson-databind:2.9.8 - http://github.com/FasterXML/jackson)
+* Jackson-dataformat-YAML (com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.9.8 - https://github.com/FasterXML/jackson-dataformats-text)
+* Jackson datatype: jdk8 (com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.9.8 - https://github.com/FasterXML/jackson-modules-java8/jackson-datatype-jdk8)
+* Jackson datatype: JSR310 (com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.9.8 - https://github.com/FasterXML/jackson-modules-java8/jackson-datatype-jsr310)
+* Jackson-module-parameter-names (com.fasterxml.jackson.module:jackson-module-parameter-names:2.9.8 - https://github.com/FasterXML/jackson-modules-java8/jackson-module-parameter-names)
+* JBoss Logging 3 (org.jboss.logging:jboss-logging:3.3.2.Final - http://www.jboss.org)
+* Joda-Time (joda-time:joda-time:2.9.7 - http://www.joda.org/joda-time/)
+* JSONassert (org.skyscreamer:jsonassert:1.5.0 - https://github.com/skyscreamer/JSONassert)
+* JSON library from Android SDK (com.vaadin.external.google:android-json:0.0.20131108.vaadin1 - http://developer.android.com/sdk)
+* JSON Small and Fast Parser (net.minidev:json-smart:2.3 - http://www.minidev.net/)
+* libphonenumber (com.googlecode.libphonenumber:libphonenumber:8.0.0 - https://github.com/googlei18n/libphonenumber/)
+* micrometer-core (io.micrometer:micrometer-core:1.1.4 - https://github.com/micrometer-metrics/micrometer)
+* oas-validator-compatibility (org.apache.servicecomb.toolkit:oas-validator-compatibility:0.2.0-SNAPSHOT - no url defined)
+* oas-validator-compatibility-spring (org.apache.servicecomb.toolkit:oas-validator-compatibility-spring:0.2.0-SNAPSHOT - no url defined)
+* oas-validator-compliance (org.apache.servicecomb.toolkit:oas-validator-compliance:0.2.0-SNAPSHOT - no url defined)
+* oas-validator-compliance-spring (org.apache.servicecomb.toolkit:oas-validator-compliance-spring:0.2.0-SNAPSHOT - no url defined)
+* oas-validator-core (org.apache.servicecomb.toolkit:oas-validator-core:0.2.0-SNAPSHOT - no url defined)
+* oas-validator-core-spring (org.apache.servicecomb.toolkit:oas-validator-core-spring:0.2.0-SNAPSHOT - no url defined)
+* oas-validator-test (org.apache.servicecomb.toolkit:oas-validator-test:0.2.0-SNAPSHOT - no url defined)
+* Objenesis (org.objenesis:objenesis:2.6 - http://objenesis.org)
+* org.xmlunit:xmlunit-core (org.xmlunit:xmlunit-core:2.6.2 - https://www.xmlunit.org/)
+* project ':json-path' (com.jayway.jsonpath:json-path:2.4.0 - https://github.com/jayway/JsonPath)
+* SnakeYAML (org.yaml:snakeyaml:1.23 - http://www.snakeyaml.org)
+* Spring AOP (org.springframework:spring-aop:5.1.6.RELEASE - https://github.com/spring-projects/spring-framework)
+* Spring Beans (org.springframework:spring-beans:5.1.6.RELEASE - https://github.com/spring-projects/spring-framework)
+* Spring Boot (org.springframework.boot:spring-boot:2.1.4.RELEASE - https://projects.spring.io/spring-boot/#/spring-boot-parent/spring-boot)
+* Spring Boot Actuator (org.springframework.boot:spring-boot-actuator:2.1.4.RELEASE - https://projects.spring.io/spring-boot/#/spring-boot-parent/spring-boot-actuator)
+* Spring Boot Actuator AutoConfigure (org.springframework.boot:spring-boot-actuator-autoconfigure:2.1.4.RELEASE - https://projects.spring.io/spring-boot/#/spring-boot-parent/spring-boot-actuator-autoconfigure)
+* Spring Boot Actuator Starter (org.springframework.boot:spring-boot-starter-actuator:2.1.4.RELEASE - https://projects.spring.io/spring-boot/#/spring-boot-parent/spring-boot-starters/spring-boot-starter-actuator)
+* Spring Boot AutoConfigure (org.springframework.boot:spring-boot-autoconfigure:2.1.4.RELEASE - https://projects.spring.io/spring-boot/#/spring-boot-parent/spring-boot-autoconfigure)
+* Spring Boot Json Starter (org.springframework.boot:spring-boot-starter-json:2.1.4.RELEASE - https://projects.spring.io/spring-boot/#/spring-boot-parent/spring-boot-starters/spring-boot-starter-json)
+* Spring Boot Logging Starter (org.springframework.boot:spring-boot-starter-logging:2.1.4.RELEASE - https://projects.spring.io/spring-boot/#/spring-boot-parent/spring-boot-starters/spring-boot-starter-logging)
+* Spring Boot Starter (org.springframework.boot:spring-boot-starter:2.1.4.RELEASE - https://projects.spring.io/spring-boot/#/spring-boot-parent/spring-boot-starters/spring-boot-starter)
+* Spring Boot Test (org.springframework.boot:spring-boot-test:2.1.4.RELEASE - https://projects.spring.io/spring-boot/#/spring-boot-parent/spring-boot-test)
+* Spring Boot Test Auto-Configure (org.springframework.boot:spring-boot-test-autoconfigure:2.1.4.RELEASE - https://projects.spring.io/spring-boot/#/spring-boot-parent/spring-boot-test-autoconfigure)
+* Spring Boot Test Starter (org.springframework.boot:spring-boot-starter-test:2.1.4.RELEASE - https://projects.spring.io/spring-boot/#/spring-boot-parent/spring-boot-starters/spring-boot-starter-test)
+* Spring Boot Thymeleaf Starter (org.springframework.boot:spring-boot-starter-thymeleaf:2.1.4.RELEASE - https://projects.spring.io/spring-boot/#/spring-boot-parent/spring-boot-starters/spring-boot-starter-thymeleaf)
+* Spring Boot Tomcat Starter (org.springframework.boot:spring-boot-starter-tomcat:2.1.4.RELEASE - https://projects.spring.io/spring-boot/#/spring-boot-parent/spring-boot-starters/spring-boot-starter-tomcat)
+* Spring Boot Web Starter (org.springframework.boot:spring-boot-starter-web:2.1.4.RELEASE - https://projects.spring.io/spring-boot/#/spring-boot-parent/spring-boot-starters/spring-boot-starter-web)
+* Spring Commons Logging Bridge (org.springframework:spring-jcl:5.1.6.RELEASE - https://github.com/spring-projects/spring-framework)
+* Spring Context (org.springframework:spring-context:5.1.6.RELEASE - https://github.com/spring-projects/spring-framework)
+* Spring Core (org.springframework:spring-core:5.1.6.RELEASE - https://github.com/spring-projects/spring-framework)
+* Spring Expression Language (SpEL) (org.springframework:spring-expression:5.1.6.RELEASE - https://github.com/spring-projects/spring-framework)
+* Spring TestContext Framework (org.springframework:spring-test:5.1.6.RELEASE - https://github.com/spring-projects/spring-framework)
+* Spring Web (org.springframework:spring-web:5.1.6.RELEASE - https://github.com/spring-projects/spring-framework)
+* Spring Web MVC (org.springframework:spring-webmvc:5.1.6.RELEASE - https://github.com/spring-projects/spring-framework)
+* swagger-annotations (io.swagger:swagger-annotations:1.5.22 - https://github.com/swagger-api/swagger-core/modules/swagger-annotations)
+* swagger-annotations (io.swagger.core.v3:swagger-annotations:2.0.8 - https://github.com/swagger-api/swagger-core/modules/swagger-annotations)
+* swagger-compat-spec-parser (io.swagger:swagger-compat-spec-parser:1.0.44 - http://nexus.sonatype.org/oss-repository-hosting.html/swagger-parser-project/modules/swagger-compat-spec-parser)
+* swagger-core (io.swagger:swagger-core:1.5.22 - https://github.com/swagger-api/swagger-core/modules/swagger-core)
+* swagger-core (io.swagger.core.v3:swagger-core:2.0.8 - https://github.com/swagger-api/swagger-core/modules/swagger-core)
+* swagger-models (io.swagger:swagger-models:1.5.22 - https://github.com/swagger-api/swagger-core/modules/swagger-models)
+* swagger-models (io.swagger.core.v3:swagger-models:2.0.8 - https://github.com/swagger-api/swagger-core/modules/swagger-models)
+* swagger-parser (io.swagger:swagger-parser:1.0.44 - http://nexus.sonatype.org/oss-repository-hosting.html/swagger-parser-project/modules/swagger-parser)
+* swagger-parser (io.swagger.parser.v3:swagger-parser:2.0.12 - http://nexus.sonatype.org/oss-repository-hosting.html/swagger-parser-project/modules/swagger-parser)
+* swagger-parser (io.swagger.parser.v3:swagger-parser-core:2.0.12 - http://nexus.sonatype.org/oss-repository-hosting.html/swagger-parser-project/modules/swagger-parser-core)
+* swagger-parser-v2-converter (io.swagger.parser.v3:swagger-parser-v2-converter:2.0.12 - http://nexus.sonatype.org/oss-repository-hosting.html/swagger-parser-project/modules/swagger-parser-v2-converter)
+* swagger-parser-v3 (io.swagger.parser.v3:swagger-parser-v3:2.0.12 - http://nexus.sonatype.org/oss-repository-hosting.html/swagger-parser-project/modules/swagger-parser-v3)
+* thymeleaf (org.thymeleaf:thymeleaf:3.0.11.RELEASE - http://www.thymeleaf.org)
+* thymeleaf-extras-java8time (org.thymeleaf.extras:thymeleaf-extras-java8time:3.0.4.RELEASE - http://www.thymeleaf.org)
+* thymeleaf-spring5 (org.thymeleaf:thymeleaf-spring5:3.0.11.RELEASE - http://www.thymeleaf.org)
+* tomcat-embed-core (org.apache.tomcat.embed:tomcat-embed-core:9.0.17 - https://tomcat.apache.org/)
+* tomcat-embed-el (org.apache.tomcat.embed:tomcat-embed-el:9.0.17 - https://tomcat.apache.org/)
+* tomcat-embed-websocket (org.apache.tomcat.embed:tomcat-embed-websocket:9.0.17 - https://tomcat.apache.org/)
+* unbescape (org.unbescape:unbescape:1.1.6.RELEASE - http://www.unbescape.org)
+* json-schema-core (com.github.java-json-tools:json-schema-core:1.2.8 - https://github.com/java-json-tools/json-schema-core)
+* json-schema-validator (com.github.java-json-tools:json-schema-validator:2.2.8 - https://github.com/box-metadata/json-schema-validator)
+* com.github.fge:btf (com.github.fge:btf:1.2 - https://github.com/fge/btf)
+* com.github.fge:jackson-coreutils (com.github.fge:jackson-coreutils:1.6 - https://github.com/fge/jackson-coreutils)
+* com.github.fge:json-patch (com.github.fge:json-patch:1.6 - https://github.com/fge/json-patch)
+* com.github.fge:msg-simple (com.github.fge:msg-simple:1.1 - https://github.com/fge/msg-simple)
+* com.github.fge:uri-template (com.github.fge:uri-template:0.9 - https://github.com/fge/uri-template)
+
+===========================================================================
+This product bundles JavaBeans Activation Framework which are licensed under the
+COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) v1.0.
+For details, see http://java.sun.com/products/javabeans/jaf/index.jsp
+You can find a copy of the License at licenses/LICENSE-cddl-v10
+
+* JavaBeans Activation Framework (JAF) (javax.activation:activation:1.1 - http://java.sun.com/products/javabeans/jaf/index.jsp)
+
+===========================================================================
+This product bundles the following libraries which are licensed under the
+CDDL + GPLv2 with classpath exception.
+For details, see their respective project links.
+You can find a copy of the License at licenses/LICENSE-cddl-gplv2
+
+* javax.annotation API (javax.annotation:javax.annotation-api:1.3.2 - http://jcp.org/en/jsr/detail?id=250)
+* jaxb-api (javax.xml.bind:jaxb-api:2.3.0 - https://github.com/javaee/jaxb-spec/jaxb-api)
+* JavaMail API jar (javax.mail:mailapi:1.4.3 - http://java.sun.com/projects/javamail/mailapi)
+
+===========================================================================
+This product bundles Mozilla Rhino which is licensed under the
+Mozilla Public License, Version 2.0.
+For details, see https://developer.mozilla.org/en/Rhino
+You can find a copy of the License at licenses/LICENSE-mpl-v20
+
+* Mozilla Rhino (org.mozilla:rhino:1.7R4 - https://developer.mozilla.org/en/Rhino)
+
+===========================================================================
+This product bundles Webjars which is licensed under the
+MIT License.
+For details, see their respective project links.
+You can find a copy of the License at licenses/LICENSE-webjars
+
+* Popper.js (org.webjars:popper.js:1.14.3 - http://webjars.org)
+* jquery (org.webjars:jquery:3.0.0 - http://webjars.org)
+
+===========================================================================
+This product bundles Animal Sniffer Annotations which is licensed under the
+MIT License.
+For details, see http://www.mojohaus.org/animal-sniffer/animal-sniffer-annotations
+You can find a copy of the License at licenses/LICENSE-mit-unknown
+
+* Animal Sniffer Annotations (org.codehaus.mojo:animal-sniffer-annotations:1.17 - http://www.mojohaus.org/animal-sniffer/animal-sniffer-annotations)
+
+===========================================================================
+This product bundles Checker Qual which is licensed under the
+MIT License.
+For details, see https://checkerframework.org
+You can find a copy of the License at licenses/LICENSE-mit-unknown
+
+* Checker Qual (org.checkerframework:checker-compat-qual:2.5.2 - https://checkerframework.org)
+
+===========================================================================
+This product bundles Mockito which is licensed under the
+MIT License.
+For details, see https://github.com/mockito/mockito
+You can find a copy of the License at licenses/LICENSE-mockito
+
+* mockito-core (org.mockito:mockito-core:2.23.4 - https://github.com/mockito/mockito)
+
+===========================================================================
+This product bundles SLF4J which is licensed under the
+MIT License.
+For details, see http://www.slf4j.org
+You can find a copy of the License at licenses/LICENSE-slf4j
+
+* JUL to SLF4J bridge (org.slf4j:jul-to-slf4j:1.7.26 - http://www.slf4j.org)
+* SLF4J API Module (org.slf4j:slf4j-api:1.6.3 - http://www.slf4j.org)
+* SLF4J API Module (org.slf4j:slf4j-api:1.7.25 - http://www.slf4j.org)
+* SLF4J Extensions Module (org.slf4j:slf4j-ext:1.6.3 - http://www.slf4j.org)
+
+===========================================================================
+This product bundles Project Lombok which is licensed under the
+MIT License.
+For details, see https://projectlombok.org
+You can find a copy of the License at licenses/LICENSE-lombok
+
+* Project Lombok (org.projectlombok:lombok:1.18.6 - https://projectlombok.org)
+
+===========================================================================
+This product bundles JOpt Simple which is licensed under the
+MIT License.
+For details, see http://pholser.github.io/jopt-simple
+You can find a copy of the License at licenses/LICENSE-jopt
+
+* JOpt Simple (net.sf.jopt-simple:jopt-simple:5.0.3 - http://pholser.github.io/jopt-simple)
+
+===========================================================================
+This product bundles CAL10N which is licensed under the
+MIT License.
+For details, see http://cal10n.qos.ch/cal10n-api
+You can find a copy of the License at licenses/LICENSE-qos
+
+* Compiler assisted localization library (CAL10N) -    API (ch.qos.cal10n:cal10n-api:0.7.4 - http://cal10n.qos.ch/cal10n-api)
+
+===========================================================================
+This product bundles following libraries which is licensed under the
+Public Domain, per Creative Commons CC0.
+For details, see their respective project links.
+You can find a copy of the License at licenses/LICENSE-cc0
+
+* HdrHistogram (org.hdrhistogram:HdrHistogram:2.1.9 - http://hdrhistogram.github.io/HdrHistogram/)
+* LatencyUtils (org.latencyutils:LatencyUtils:2.0.3 - http://latencyutils.github.io/LatencyUtils/)
+
+===========================================================================
+This product bundles following libraries which is licensed under the
+Eclipse Public License v1.0.
+For details, see their respective project links.
+You can find a copy of the License at licenses/LICENSE-epl-v10
+
+* Logback Classic Module (ch.qos.logback:logback-classic:1.2.3 - http://logback.qos.ch/logback-classic)
+* Logback Core Module (ch.qos.logback:logback-core:1.2.3 - http://logback.qos.ch/logback-core)
+* JUnit (junit:junit:4.12 - http://junit.org)
+
+===========================================================================
+This product bundles Hamcrest which is licensed under the
+2-Clause BSD.
+For details, see https://github.com/hamcrest/JavaHamcrest
+You can find a copy of the License at licenses/LICENSE-hamcrest
+
+* Hamcrest Core (org.hamcrest:hamcrest-core:1.3 - https://github.com/hamcrest/JavaHamcrest/hamcrest-core)
+* Hamcrest library (org.hamcrest:hamcrest-library:1.3 - https://github.com/hamcrest/JavaHamcrest/hamcrest-library)
+
+===========================================================================
+This product bundles ASM Core which is licensed under the
+3-Clause BSD.
+For details, see http://asm.objectweb.org/asm/
+You can find a copy of the License at licenses/LICENSE-asm
+
+* ASM Core (org.ow2.asm:asm:5.0.4 - http://asm.objectweb.org/asm/)
diff --git a/oas-validator/distribution/src/release/licenses/LICENSE-asm b/oas-validator/distribution/src/release/licenses/LICENSE-asm
new file mode 100755
index 0000000..c71bb7b
--- /dev/null
+++ b/oas-validator/distribution/src/release/licenses/LICENSE-asm
@@ -0,0 +1,27 @@
+ASM: a very small and fast Java bytecode manipulation framework
+Copyright (c) 2000-2011 INRIA, France Telecom
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+1. Redistributions of source code must retain the above copyright
+  notice, this list of conditions and the following disclaimer.
+2. Redistributions in binary form must reproduce the above copyright
+  notice, this list of conditions and the following disclaimer in the
+  documentation and/or other materials provided with the distribution.
+3. Neither the name of the copyright holders nor the names of its
+  contributors may be used to endorse or promote products derived from
+  this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
+THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/oas-validator/distribution/src/release/licenses/LICENSE-cc0 b/oas-validator/distribution/src/release/licenses/LICENSE-cc0
new file mode 100755
index 0000000..2dbc2c0
--- /dev/null
+++ b/oas-validator/distribution/src/release/licenses/LICENSE-cc0
@@ -0,0 +1,27 @@
+CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED HEREUNDER.
+Statement of Purpose
+The laws of most jurisdictions throughout the world automatically confer exclusive Copyright and Related Rights (defined below) upon the creator and subsequent owner(s) (each and all, an "owner") of an original work of authorship and/or a database (each, a "Work").
+
+Certain owners wish to permanently relinquish those rights to a Work for the purpose of contributing to a commons of creative, cultural and scientific works ("Commons") that the public can reliably and without fear of later claims of infringement build upon, modify, incorporate in other works, reuse and redistribute as freely as possible in any form whatsoever and for any purposes, including without limitation commercial purposes. These owners may contribute to the Commons to promote the [...]
+
+For these and/or other purposes and motivations, and without any expectation of additional consideration or compensation, the person associating CC0 with a Work (the "Affirmer"), to the extent that he or she is an owner of Copyright and Related Rights in the Work, voluntarily elects to apply CC0 to the Work and publicly distribute the Work under its terms, with knowledge of his or her Copyright and Related Rights in the Work and the meaning and intended legal effect of CC0 on those rights.
+
+1. Copyright and Related Rights. A Work made available under CC0 may be protected by copyright and related or neighboring rights ("Copyright and Related Rights"). Copyright and Related Rights include, but are not limited to, the following:
+
+the right to reproduce, adapt, distribute, perform, display, communicate, and translate a Work;
+moral rights retained by the original author(s) and/or performer(s);
+publicity and privacy rights pertaining to a person's image or likeness depicted in a Work;
+rights protecting against unfair competition in regards to a Work, subject to the limitations in paragraph 4(a), below;
+rights protecting the extraction, dissemination, use and reuse of data in a Work;
+database rights (such as those arising under Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, and under any national implementation thereof, including any amended or successor version of such directive); and
+other similar, equivalent or corresponding rights throughout the world based on applicable law or treaty, and any national implementations thereof.
+2. Waiver. To the greatest extent permitted by, but not in contravention of, applicable law, Affirmer hereby overtly, fully, permanently, irrevocably and unconditionally waives, abandons, and surrenders all of Affirmer's Copyright and Related Rights and associated claims and causes of action, whether now known or unknown (including existing as well as future claims and causes of action), in the Work (i) in all territories worldwide, (ii) for the maximum duration provided by applicable la [...]
+
+3. Public License Fallback. Should any part of the Waiver for any reason be judged legally invalid or ineffective under applicable law, then the Waiver shall be preserved to the maximum extent permitted taking into account Affirmer's express Statement of Purpose. In addition, to the extent the Waiver is so judged Affirmer hereby grants to each affected person a royalty-free, non transferable, non sublicensable, non exclusive, irrevocable and unconditional license to exercise Affirmer's C [...]
+
+4. Limitations and Disclaimers.
+
+No trademark or patent rights held by Affirmer are waived, abandoned, surrendered, licensed or otherwise affected by this document.
+Affirmer offers the Work as-is and makes no representations or warranties of any kind concerning the Work, express, implied, statutory or otherwise, including without limitation warranties of title, merchantability, fitness for a particular purpose, non infringement, or the absence of latent or other defects, accuracy, or the present or absence of errors, whether or not discoverable, all to the greatest extent permissible under applicable law.
+Affirmer disclaims responsibility for clearing rights of other persons that may apply to the Work or any use thereof, including without limitation any person's Copyright and Related Rights in the Work. Further, Affirmer disclaims responsibility for obtaining any necessary consents, permissions or other rights required for any use of the Work.
+Affirmer understands and acknowledges that Creative Commons is not a party to this document and has no duty or obligation with respect to this CC0 or use of the Work.
diff --git a/oas-validator/distribution/src/release/licenses/LICENSE-cddl-gplv2 b/oas-validator/distribution/src/release/licenses/LICENSE-cddl-gplv2
new file mode 100755
index 0000000..4b156e6
--- /dev/null
+++ b/oas-validator/distribution/src/release/licenses/LICENSE-cddl-gplv2
@@ -0,0 +1,760 @@
+COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.1
+
+1. Definitions.
+
+    1.1. "Contributor" means each individual or entity that creates or
+    contributes to the creation of Modifications.
+
+    1.2. "Contributor Version" means the combination of the Original
+    Software, prior Modifications used by a Contributor (if any), and
+    the Modifications made by that particular Contributor.
+
+    1.3. "Covered Software" means (a) the Original Software, or (b)
+    Modifications, or (c) the combination of files containing Original
+    Software with files containing Modifications, in each case including
+    portions thereof.
+
+    1.4. "Executable" means the Covered Software in any form other than
+    Source Code.
+
+    1.5. "Initial Developer" means the individual or entity that first
+    makes Original Software available under this License.
+
+    1.6. "Larger Work" means a work which combines Covered Software or
+    portions thereof with code not governed by the terms of this License.
+
+    1.7. "License" means this document.
+
+    1.8. "Licensable" means having the right to grant, to the maximum
+    extent possible, whether at the time of the initial grant or
+    subsequently acquired, any and all of the rights conveyed herein.
+
+    1.9. "Modifications" means the Source Code and Executable form of
+    any of the following:
+
+    A. Any file that results from an addition to, deletion from or
+    modification of the contents of a file containing Original Software
+    or previous Modifications;
+
+    B. Any new file that contains any part of the Original Software or
+    previous Modification; or
+
+    C. Any new file that is contributed or otherwise made available
+    under the terms of this License.
+
+    1.10. "Original Software" means the Source Code and Executable form
+    of computer software code that is originally released under this
+    License.
+
+    1.11. "Patent Claims" means any patent claim(s), now owned or
+    hereafter acquired, including without limitation, method, process,
+    and apparatus claims, in any patent Licensable by grantor.
+
+    1.12. "Source Code" means (a) the common form of computer software
+    code in which modifications are made and (b) associated
+    documentation included in or with such code.
+
+    1.13. "You" (or "Your") means an individual or a legal entity
+    exercising rights under, and complying with all of the terms of,
+    this License. For legal entities, "You" includes any entity which
+    controls, is controlled by, or is under common control with You. For
+    purposes of this definition, "control" means (a) the power, direct
+    or indirect, to cause the direction or management of such entity,
+    whether by contract or otherwise, or (b) ownership of more than
+    fifty percent (50%) of the outstanding shares or beneficial
+    ownership of such entity.
+
+2. License Grants.
+
+    2.1. The Initial Developer Grant.
+
+    Conditioned upon Your compliance with Section 3.1 below and subject
+    to third party intellectual property claims, the Initial Developer
+    hereby grants You a world-wide, royalty-free, non-exclusive license:
+
+    (a) under intellectual property rights (other than patent or
+    trademark) Licensable by Initial Developer, to use, reproduce,
+    modify, display, perform, sublicense and distribute the Original
+    Software (or portions thereof), with or without Modifications,
+    and/or as part of a Larger Work; and
+
+    (b) under Patent Claims infringed by the making, using or selling of
+    Original Software, to make, have made, use, practice, sell, and
+    offer for sale, and/or otherwise dispose of the Original Software
+    (or portions thereof).
+
+    (c) The licenses granted in Sections 2.1(a) and (b) are effective on
+    the date Initial Developer first distributes or otherwise makes the
+    Original Software available to a third party under the terms of this
+    License.
+
+    (d) Notwithstanding Section 2.1(b) above, no patent license is
+    granted: (1) for code that You delete from the Original Software, or
+    (2) for infringements caused by: (i) the modification of the
+    Original Software, or (ii) the combination of the Original Software
+    with other software or devices.
+
+    2.2. Contributor Grant.
+
+    Conditioned upon Your compliance with Section 3.1 below and subject
+    to third party intellectual property claims, each Contributor hereby
+    grants You a world-wide, royalty-free, non-exclusive license:
+
+    (a) under intellectual property rights (other than patent or
+    trademark) Licensable by Contributor to use, reproduce, modify,
+    display, perform, sublicense and distribute the Modifications
+    created by such Contributor (or portions thereof), either on an
+    unmodified basis, with other Modifications, as Covered Software
+    and/or as part of a Larger Work; and
+
+    (b) under Patent Claims infringed by the making, using, or selling
+    of Modifications made by that Contributor either alone and/or in
+    combination with its Contributor Version (or portions of such
+    combination), to make, use, sell, offer for sale, have made, and/or
+    otherwise dispose of: (1) Modifications made by that Contributor (or
+    portions thereof); and (2) the combination of Modifications made by
+    that Contributor with its Contributor Version (or portions of such
+    combination).
+
+    (c) The licenses granted in Sections 2.2(a) and 2.2(b) are effective
+    on the date Contributor first distributes or otherwise makes the
+    Modifications available to a third party.
+
+    (d) Notwithstanding Section 2.2(b) above, no patent license is
+    granted: (1) for any code that Contributor has deleted from the
+    Contributor Version; (2) for infringements caused by: (i) third
+    party modifications of Contributor Version, or (ii) the combination
+    of Modifications made by that Contributor with other software
+    (except as part of the Contributor Version) or other devices; or (3)
+    under Patent Claims infringed by Covered Software in the absence of
+    Modifications made by that Contributor.
+
+3. Distribution Obligations.
+
+    3.1. Availability of Source Code.
+
+    Any Covered Software that You distribute or otherwise make available
+    in Executable form must also be made available in Source Code form
+    and that Source Code form must be distributed only under the terms
+    of this License. You must include a copy of this License with every
+    copy of the Source Code form of the Covered Software You distribute
+    or otherwise make available. You must inform recipients of any such
+    Covered Software in Executable form as to how they can obtain such
+    Covered Software in Source Code form in a reasonable manner on or
+    through a medium customarily used for software exchange.
+
+    3.2. Modifications.
+
+    The Modifications that You create or to which You contribute are
+    governed by the terms of this License. You represent that You
+    believe Your Modifications are Your original creation(s) and/or You
+    have sufficient rights to grant the rights conveyed by this License.
+
+    3.3. Required Notices.
+
+    You must include a notice in each of Your Modifications that
+    identifies You as the Contributor of the Modification. You may not
+    remove or alter any copyright, patent or trademark notices contained
+    within the Covered Software, or any notices of licensing or any
+    descriptive text giving attribution to any Contributor or the
+    Initial Developer.
+
+    3.4. Application of Additional Terms.
+
+    You may not offer or impose any terms on any Covered Software in
+    Source Code form that alters or restricts the applicable version of
+    this License or the recipients' rights hereunder. You may choose to
+    offer, and to charge a fee for, warranty, support, indemnity or
+    liability obligations to one or more recipients of Covered Software.
+    However, you may do so only on Your own behalf, and not on behalf of
+    the Initial Developer or any Contributor. You must make it
+    absolutely clear that any such warranty, support, indemnity or
+    liability obligation is offered by You alone, and You hereby agree
+    to indemnify the Initial Developer and every Contributor for any
+    liability incurred by the Initial Developer or such Contributor as a
+    result of warranty, support, indemnity or liability terms You offer.
+
+    3.5. Distribution of Executable Versions.
+
+    You may distribute the Executable form of the Covered Software under
+    the terms of this License or under the terms of a license of Your
+    choice, which may contain terms different from this License,
+    provided that You are in compliance with the terms of this License
+    and that the license for the Executable form does not attempt to
+    limit or alter the recipient's rights in the Source Code form from
+    the rights set forth in this License. If You distribute the Covered
+    Software in Executable form under a different license, You must make
+    it absolutely clear that any terms which differ from this License
+    are offered by You alone, not by the Initial Developer or
+    Contributor. You hereby agree to indemnify the Initial Developer and
+    every Contributor for any liability incurred by the Initial
+    Developer or such Contributor as a result of any such terms You offer.
+
+    3.6. Larger Works.
+
+    You may create a Larger Work by combining Covered Software with
+    other code not governed by the terms of this License and distribute
+    the Larger Work as a single product. In such a case, You must make
+    sure the requirements of this License are fulfilled for the Covered
+    Software.
+
+4. Versions of the License.
+
+    4.1. New Versions.
+
+    Oracle is the initial license steward and may publish revised and/or
+    new versions of this License from time to time. Each version will be
+    given a distinguishing version number. Except as provided in Section
+    4.3, no one other than the license steward has the right to modify
+    this License.
+
+    4.2. Effect of New Versions.
+
+    You may always continue to use, distribute or otherwise make the
+    Covered Software available under the terms of the version of the
+    License under which You originally received the Covered Software. If
+    the Initial Developer includes a notice in the Original Software
+    prohibiting it from being distributed or otherwise made available
+    under any subsequent version of the License, You must distribute and
+    make the Covered Software available under the terms of the version
+    of the License under which You originally received the Covered
+    Software. Otherwise, You may also choose to use, distribute or
+    otherwise make the Covered Software available under the terms of any
+    subsequent version of the License published by the license steward.
+
+    4.3. Modified Versions.
+
+    When You are an Initial Developer and You want to create a new
+    license for Your Original Software, You may create and use a
+    modified version of this License if You: (a) rename the license and
+    remove any references to the name of the license steward (except to
+    note that the license differs from this License); and (b) otherwise
+    make it clear that the license contains terms which differ from this
+    License.
+
+5. DISCLAIMER OF WARRANTY.
+
+    COVERED SOFTWARE IS PROVIDED UNDER THIS LICENSE ON AN "AS IS" BASIS,
+    WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED,
+    INCLUDING, WITHOUT LIMITATION, WARRANTIES THAT THE COVERED SOFTWARE
+    IS FREE OF DEFECTS, MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE OR
+    NON-INFRINGING. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF
+    THE COVERED SOFTWARE IS WITH YOU. SHOULD ANY COVERED SOFTWARE PROVE
+    DEFECTIVE IN ANY RESPECT, YOU (NOT THE INITIAL DEVELOPER OR ANY
+    OTHER CONTRIBUTOR) ASSUME THE COST OF ANY NECESSARY SERVICING,
+    REPAIR OR CORRECTION. THIS DISCLAIMER OF WARRANTY CONSTITUTES AN
+    ESSENTIAL PART OF THIS LICENSE. NO USE OF ANY COVERED SOFTWARE IS
+    AUTHORIZED HEREUNDER EXCEPT UNDER THIS DISCLAIMER.
+
+6. TERMINATION.
+
+    6.1. This License and the rights granted hereunder will terminate
+    automatically if You fail to comply with terms herein and fail to
+    cure such breach within 30 days of becoming aware of the breach.
+    Provisions which, by their nature, must remain in effect beyond the
+    termination of this License shall survive.
+
+    6.2. If You assert a patent infringement claim (excluding
+    declaratory judgment actions) against Initial Developer or a
+    Contributor (the Initial Developer or Contributor against whom You
+    assert such claim is referred to as "Participant") alleging that the
+    Participant Software (meaning the Contributor Version where the
+    Participant is a Contributor or the Original Software where the
+    Participant is the Initial Developer) directly or indirectly
+    infringes any patent, then any and all rights granted directly or
+    indirectly to You by such Participant, the Initial Developer (if the
+    Initial Developer is not the Participant) and all Contributors under
+    Sections 2.1 and/or 2.2 of this License shall, upon 60 days notice
+    from Participant terminate prospectively and automatically at the
+    expiration of such 60 day notice period, unless if within such 60
+    day period You withdraw Your claim with respect to the Participant
+    Software against such Participant either unilaterally or pursuant to
+    a written agreement with Participant.
+
+    6.3. If You assert a patent infringement claim against Participant
+    alleging that the Participant Software directly or indirectly
+    infringes any patent where such claim is resolved (such as by
+    license or settlement) prior to the initiation of patent
+    infringement litigation, then the reasonable value of the licenses
+    granted by such Participant under Sections 2.1 or 2.2 shall be taken
+    into account in determining the amount or value of any payment or
+    license.
+
+    6.4. In the event of termination under Sections 6.1 or 6.2 above,
+    all end user licenses that have been validly granted by You or any
+    distributor hereunder prior to termination (excluding licenses
+    granted to You by any distributor) shall survive termination.
+
+7. LIMITATION OF LIABILITY.
+
+    UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, WHETHER TORT
+    (INCLUDING NEGLIGENCE), CONTRACT, OR OTHERWISE, SHALL YOU, THE
+    INITIAL DEVELOPER, ANY OTHER CONTRIBUTOR, OR ANY DISTRIBUTOR OF
+    COVERED SOFTWARE, OR ANY SUPPLIER OF ANY OF SUCH PARTIES, BE LIABLE
+    TO ANY PERSON FOR ANY INDIRECT, SPECIAL, INCIDENTAL, OR
+    CONSEQUENTIAL DAMAGES OF ANY CHARACTER INCLUDING, WITHOUT
+    LIMITATION, DAMAGES FOR LOSS OF GOODWILL, WORK STOPPAGE, COMPUTER
+    FAILURE OR MALFUNCTION, OR ANY AND ALL OTHER COMMERCIAL DAMAGES OR
+    LOSSES, EVEN IF SUCH PARTY SHALL HAVE BEEN INFORMED OF THE
+    POSSIBILITY OF SUCH DAMAGES. THIS LIMITATION OF LIABILITY SHALL NOT
+    APPLY TO LIABILITY FOR DEATH OR PERSONAL INJURY RESULTING FROM SUCH
+    PARTY'S NEGLIGENCE TO THE EXTENT APPLICABLE LAW PROHIBITS SUCH
+    LIMITATION. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OR
+    LIMITATION OF INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO THIS EXCLUSION
+    AND LIMITATION MAY NOT APPLY TO YOU.
+
+8. U.S. GOVERNMENT END USERS.
+
+    The Covered Software is a "commercial item," as that term is defined
+    in 48 C.F.R. 2.101 (Oct. 1995), consisting of "commercial computer
+    software" (as that term is defined at 48 C.F.R. ยง
+    252.227-7014(a)(1)) and "commercial computer software documentation"
+    as such terms are used in 48 C.F.R. 12.212 (Sept. 1995). Consistent
+    with 48 C.F.R. 12.212 and 48 C.F.R. 227.7202-1 through 227.7202-4
+    (June 1995), all U.S. Government End Users acquire Covered Software
+    with only those rights set forth herein. This U.S. Government Rights
+    clause is in lieu of, and supersedes, any other FAR, DFAR, or other
+    clause or provision that addresses Government rights in computer
+    software under this License.
+
+9. MISCELLANEOUS.
+
+    This License represents the complete agreement concerning subject
+    matter hereof. If any provision of this License is held to be
+    unenforceable, such provision shall be reformed only to the extent
+    necessary to make it enforceable. This License shall be governed by
+    the law of the jurisdiction specified in a notice contained within
+    the Original Software (except to the extent applicable law, if any,
+    provides otherwise), excluding such jurisdiction's conflict-of-law
+    provisions. Any litigation relating to this License shall be subject
+    to the jurisdiction of the courts located in the jurisdiction and
+    venue specified in a notice contained within the Original Software,
+    with the losing party responsible for costs, including, without
+    limitation, court costs and reasonable attorneys' fees and expenses.
+    The application of the United Nations Convention on Contracts for
+    the International Sale of Goods is expressly excluded. Any law or
+    regulation which provides that the language of a contract shall be
+    construed against the drafter shall not apply to this License. You
+    agree that You alone are responsible for compliance with the United
+    States export administration regulations (and the export control
+    laws and regulation of any other countries) when You use, distribute
+    or otherwise make available any Covered Software.
+
+10. RESPONSIBILITY FOR CLAIMS.
+
+    As between Initial Developer and the Contributors, each party is
+    responsible for claims and damages arising, directly or indirectly,
+    out of its utilization of rights under this License and You agree to
+    work with Initial Developer and Contributors to distribute such
+    responsibility on an equitable basis. Nothing herein is intended or
+    shall be deemed to constitute any admission of liability.
+
+------------------------------------------------------------------------
+
+NOTICE PURSUANT TO SECTION 9 OF THE COMMON DEVELOPMENT AND DISTRIBUTION
+LICENSE (CDDL)
+
+The code released under the CDDL shall be governed by the laws of the
+State of California (excluding conflict-of-law provisions). Any
+litigation relating to this License shall be subject to the jurisdiction
+of the Federal Courts of the Northern District of California and the
+state courts of the State of California, with venue lying in Santa Clara
+County, California.
+
+
+
+  The GNU General Public License (GPL) Version 2, June 1991
+
+Copyright (C) 1989, 1991 Free Software Foundation, Inc.
+51 Franklin Street, Fifth Floor
+Boston, MA 02110-1335
+USA
+
+Everyone is permitted to copy and distribute verbatim copies
+of this license document, but changing it is not allowed.
+
+Preamble
+
+The licenses for most software are designed to take away your freedom to
+share and change it. By contrast, the GNU General Public License is
+intended to guarantee your freedom to share and change free software--to
+make sure the software is free for all its users. This General Public
+License applies to most of the Free Software Foundation's software and
+to any other program whose authors commit to using it. (Some other Free
+Software Foundation software is covered by the GNU Library General
+Public License instead.) You can apply it to your programs, too.
+
+When we speak of free software, we are referring to freedom, not price.
+Our General Public Licenses are designed to make sure that you have the
+freedom to distribute copies of free software (and charge for this
+service if you wish), that you receive source code or can get it if you
+want it, that you can change the software or use pieces of it in new
+free programs; and that you know you can do these things.
+
+To protect your rights, we need to make restrictions that forbid anyone
+to deny you these rights or to ask you to surrender the rights. These
+restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+For example, if you distribute copies of such a program, whether gratis
+or for a fee, you must give the recipients all the rights that you have.
+You must make sure that they, too, receive or can get the source code.
+And you must show them these terms so they know their rights.
+
+We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software. If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+Finally, any free program is threatened constantly by software patents.
+We wish to avoid the danger that redistributors of a free program will
+individually obtain patent licenses, in effect making the program
+proprietary. To prevent this, we have made it clear that any patent must
+be licensed for everyone's free use or not licensed at all.
+
+The precise terms and conditions for copying, distribution and
+modification follow.
+
+TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+0. This License applies to any program or other work which contains a
+notice placed by the copyright holder saying it may be distributed under
+the terms of this General Public License. The "Program", below, refers
+to any such program or work, and a "work based on the Program" means
+either the Program or any derivative work under copyright law: that is
+to say, a work containing the Program or a portion of it, either
+verbatim or with modifications and/or translated into another language.
+(Hereinafter, translation is included without limitation in the term
+"modification".) Each licensee is addressed as "you".
+
+Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope. The act of running
+the Program is not restricted, and the output from the Program is
+covered only if its contents constitute a work based on the Program
+(independent of having been made by running the Program). Whether that
+is true depends on what the Program does.
+
+1. You may copy and distribute verbatim copies of the Program's source
+code as you receive it, in any medium, provided that you conspicuously
+and appropriately publish on each copy an appropriate copyright notice
+and disclaimer of warranty; keep intact all the notices that refer to
+this License and to the absence of any warranty; and give any other
+recipients of the Program a copy of this License along with the Program.
+
+You may charge a fee for the physical act of transferring a copy, and
+you may at your option offer warranty protection in exchange for a fee.
+
+2. You may modify your copy or copies of the Program or any portion of
+it, thus forming a work based on the Program, and copy and distribute
+such modifications or work under the terms of Section 1 above, provided
+that you also meet all of these conditions:
+
+    a) You must cause the modified files to carry prominent notices
+    stating that you changed the files and the date of any change.
+
+    b) You must cause any work that you distribute or publish, that in
+    whole or in part contains or is derived from the Program or any part
+    thereof, to be licensed as a whole at no charge to all third parties
+    under the terms of this License.
+
+    c) If the modified program normally reads commands interactively
+    when run, you must cause it, when started running for such
+    interactive use in the most ordinary way, to print or display an
+    announcement including an appropriate copyright notice and a notice
+    that there is no warranty (or else, saying that you provide a
+    warranty) and that users may redistribute the program under these
+    conditions, and telling the user how to view a copy of this License.
+    (Exception: if the Program itself is interactive but does not
+    normally print such an announcement, your work based on the Program
+    is not required to print an announcement.)
+
+These requirements apply to the modified work as a whole. If
+identifiable sections of that work are not derived from the Program, and
+can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works. But when you
+distribute the same sections as part of a whole which is a work based on
+the Program, the distribution of the whole must be on the terms of this
+License, whose permissions for other licensees extend to the entire
+whole, and thus to each and every part regardless of who wrote it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Program.
+
+In addition, mere aggregation of another work not based on the Program
+with the Program (or with a work based on the Program) on a volume of a
+storage or distribution medium does not bring the other work under the
+scope of this License.
+
+3. You may copy and distribute the Program (or a work based on it,
+under Section 2) in object code or executable form under the terms of
+Sections 1 and 2 above provided that you also do one of the following:
+
+    a) Accompany it with the complete corresponding machine-readable
+    source code, which must be distributed under the terms of Sections 1
+    and 2 above on a medium customarily used for software interchange; or,
+
+    b) Accompany it with a written offer, valid for at least three
+    years, to give any third party, for a charge no more than your cost
+    of physically performing source distribution, a complete
+    machine-readable copy of the corresponding source code, to be
+    distributed under the terms of Sections 1 and 2 above on a medium
+    customarily used for software interchange; or,
+
+    c) Accompany it with the information you received as to the offer to
+    distribute corresponding source code. (This alternative is allowed
+    only for noncommercial distribution and only if you received the
+    program in object code or executable form with such an offer, in
+    accord with Subsection b above.)
+
+The source code for a work means the preferred form of the work for
+making modifications to it. For an executable work, complete source code
+means all the source code for all modules it contains, plus any
+associated interface definition files, plus the scripts used to control
+compilation and installation of the executable. However, as a special
+exception, the source code distributed need not include anything that is
+normally distributed (in either source or binary form) with the major
+components (compiler, kernel, and so on) of the operating system on
+which the executable runs, unless that component itself accompanies the
+executable.
+
+If distribution of executable or object code is made by offering access
+to copy from a designated place, then offering equivalent access to copy
+the source code from the same place counts as distribution of the source
+code, even though third parties are not compelled to copy the source
+along with the object code.
+
+4. You may not copy, modify, sublicense, or distribute the Program
+except as expressly provided under this License. Any attempt otherwise
+to copy, modify, sublicense or distribute the Program is void, and will
+automatically terminate your rights under this License. However, parties
+who have received copies, or rights, from you under this License will
+not have their licenses terminated so long as such parties remain in
+full compliance.
+
+5. You are not required to accept this License, since you have not
+signed it. However, nothing else grants you permission to modify or
+distribute the Program or its derivative works. These actions are
+prohibited by law if you do not accept this License. Therefore, by
+modifying or distributing the Program (or any work based on the
+Program), you indicate your acceptance of this License to do so, and all
+its terms and conditions for copying, distributing or modifying the
+Program or works based on it.
+
+6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the
+original licensor to copy, distribute or modify the Program subject to
+these terms and conditions. You may not impose any further restrictions
+on the recipients' exercise of the rights granted herein. You are not
+responsible for enforcing compliance by third parties to this License.
+
+7. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot distribute
+so as to satisfy simultaneously your obligations under this License and
+any other pertinent obligations, then as a consequence you may not
+distribute the Program at all. For example, if a patent license would
+not permit royalty-free redistribution of the Program by all those who
+receive copies directly or indirectly through you, then the only way you
+could satisfy both it and this License would be to refrain entirely from
+distribution of the Program.
+
+If any portion of this section is held invalid or unenforceable under
+any particular circumstance, the balance of the section is intended to
+apply and the section as a whole is intended to apply in other
+circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system, which is implemented
+by public license practices. Many people have made generous
+contributions to the wide range of software distributed through that
+system in reliance on consistent application of that system; it is up to
+the author/donor to decide if he or she is willing to distribute
+software through any other system and a licensee cannot impose that choice.
+
+This section is intended to make thoroughly clear what is believed to be
+a consequence of the rest of this License.
+
+8. If the distribution and/or use of the Program is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Program under this License may
+add an explicit geographical distribution limitation excluding those
+countries, so that distribution is permitted only in or among countries
+not thus excluded. In such case, this License incorporates the
+limitation as if written in the body of this License.
+
+9. The Free Software Foundation may publish revised and/or new
+versions of the General Public License from time to time. Such new
+versions will be similar in spirit to the present version, but may
+differ in detail to address new problems or concerns.
+
+Each version is given a distinguishing version number. If the Program
+specifies a version number of this License which applies to it and "any
+later version", you have the option of following the terms and
+conditions either of that version or of any later version published by
+the Free Software Foundation. If the Program does not specify a version
+number of this License, you may choose any version ever published by the
+Free Software Foundation.
+
+10. If you wish to incorporate parts of the Program into other free
+programs whose distribution conditions are different, write to the
+author to ask for permission. For software which is copyrighted by the
+Free Software Foundation, write to the Free Software Foundation; we
+sometimes make exceptions for this. Our decision will be guided by the
+two goals of preserving the free status of all derivatives of our free
+software and of promoting the sharing and reuse of software generally.
+
+NO WARRANTY
+
+11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO
+WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
+EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
+OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND,
+EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE
+ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH
+YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL
+NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
+WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
+AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR
+DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL
+DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM
+(INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED
+INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF
+THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR
+OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
+
+END OF TERMS AND CONDITIONS
+
+How to Apply These Terms to Your New Programs
+
+If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+To do so, attach the following notices to the program. It is safest to
+attach them to the start of each source file to most effectively convey
+the exclusion of warranty; and each file should have at least the
+"copyright" line and a pointer to where the full notice is found.
+
+    One line to give the program's name and a brief idea of what it does.
+    Copyright (C) <year> <name of author>
+
+    This program is free software; you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation; either version 2 of the License, or
+    (at your option) any later version.
+
+    This program is distributed in the hope that it will be useful, but
+    WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+    General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with this program; if not, write to the Free Software
+    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335 USA
+
+Also add information on how to contact you by electronic and paper mail.
+
+If the program is interactive, make it output a short notice like this
+when it starts in an interactive mode:
+
+    Gnomovision version 69, Copyright (C) year name of author
+    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type
+    `show w'. This is free software, and you are welcome to redistribute
+    it under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the
+appropriate parts of the General Public License. Of course, the commands
+you use may be called something other than `show w' and `show c'; they
+could even be mouse-clicks or menu items--whatever suits your program.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the program, if
+necessary. Here is a sample; alter the names:
+
+    Yoyodyne, Inc., hereby disclaims all copyright interest in the
+    program `Gnomovision' (which makes passes at compilers) written by
+    James Hacker.
+
+    signature of Ty Coon, 1 April 1989
+    Ty Coon, President of Vice
+
+This General Public License does not permit incorporating your program
+into proprietary programs. If your program is a subroutine library, you
+may consider it more useful to permit linking proprietary applications
+with the library. If this is what you want to do, use the GNU Library
+General Public License instead of this License.
+
+#
+
+Certain source files distributed by Oracle America, Inc. and/or its
+affiliates are subject to the following clarification and special
+exception to the GPLv2, based on the GNU Project exception for its
+Classpath libraries, known as the GNU Classpath Exception, but only
+where Oracle has expressly included in the particular source file's
+header the words "Oracle designates this particular file as subject to
+the "Classpath" exception as provided by Oracle in the LICENSE file
+that accompanied this code."
+
+You should also note that Oracle includes multiple, independent
+programs in this software package. Some of those programs are provided
+under licenses deemed incompatible with the GPLv2 by the Free Software
+Foundation and others.  For example, the package includes programs
+licensed under the Apache License, Version 2.0.  Such programs are
+licensed to you under their original licenses.
+
+Oracle facilitates your further distribution of this package by adding
+the Classpath Exception to the necessary parts of its GPLv2 code, which
+permits you to use that code in combination with other independent
+modules not licensed under the GPLv2.  However, note that this would
+not permit you to commingle code under an incompatible license with
+Oracle's GPLv2 licensed code by, for example, cutting and pasting such
+code into a file also containing Oracle's GPLv2 licensed code and then
+distributing the result.  Additionally, if you were to remove the
+Classpath Exception from any of the files to which it applies and
+distribute the result, you would likely be required to license some or
+all of the other code in that distribution under the GPLv2 as well, and
+since the GPLv2 is incompatible with the license terms of some items
+included in the distribution by Oracle, removing the Classpath
+Exception could therefore effectively compromise your ability to
+further distribute the package.
+
+Proceed with caution and we recommend that you obtain the advice of a
+lawyer skilled in open source matters before removing the Classpath
+Exception or making modifications to this package which may
+subsequently be redistributed and/or involve the use of third party
+software.
+
+CLASSPATH EXCEPTION
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library.  Thus, the terms and
+conditions of the GNU General Public License version 2 cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module.  An independent module is a module which is not derived from or
+based on this library.  If you modify this library, you may extend this
+exception to your version of the library, but you are not obligated to
+do so.  If you do not wish to do so, delete this exception statement
+from your version.
+
diff --git a/oas-validator/distribution/src/release/licenses/LICENSE-cddl-v10 b/oas-validator/distribution/src/release/licenses/LICENSE-cddl-v10
new file mode 100755
index 0000000..46164de
--- /dev/null
+++ b/oas-validator/distribution/src/release/licenses/LICENSE-cddl-v10
@@ -0,0 +1,132 @@
+COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0
+
+1. Definitions.
+
+1.1. "Contributor" means each individual or entity that creates or contributes to the creation of Modifications.
+
+1.2. "Contributor Version" means the combination of the Original Software, prior Modifications used by a Contributor (if any), and the Modifications made by that particular Contributor.
+
+1.3. "Covered Software" means (a) the Original Software, or (b) Modifications, or (c) the combination of files containing Original Software with files containing Modifications, in each case including portions thereof.
+
+1.4. "Executable" means the Covered Software in any form other than Source Code.
+
+1.5. "Initial Developer" means the individual or entity that first makes Original Software available under this License.
+
+1.6. "Larger Work" means a work which combines Covered Software or portions thereof with code not governed by the terms of this License.
+
+1.7. "License" means this document.
+
+1.8. "Licensable" means having the right to grant, to the maximum extent possible, whether at the time of the initial grant or subsequently acquired, any and all of the rights conveyed herein.
+
+1.9. "Modifications" means the Source Code and Executable form of any of the following:
+
+A. Any file that results from an addition to, deletion from or modification of the contents of a file containing Original Software or previous Modifications;
+
+B. Any new file that contains any part of the Original Software or previous Modification; or
+
+C. Any new file that is contributed or otherwise made available under the terms of this License.
+
+1.10. "Original Software" means the Source Code and Executable form of computer software code that is originally released under this License.
+
+1.11. "Patent Claims" means any patent claim(s), now owned or hereafter acquired, including without limitation, method, process, and apparatus claims, in any patent Licensable by grantor.
+
+1.12. "Source Code" means (a) the common form of computer software code in which modifications are made and (b) associated documentation included in or with such code.
+
+1.13. "You" (or "Your") means an individual or a legal entity exercising rights under, and complying with all of the terms of, this License. For legal entities, "You" includes any entity which controls, is controlled by, or is under common control with You. For purposes of this definition, "control" means (a) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (b) ownership of more than fifty percent (50%) of the outsta [...]
+
+2. License Grants.
+
+2.1. The Initial Developer Grant.
+
+Conditioned upon Your compliance with Section 3.1 below and subject to third party intellectual property claims, the Initial Developer hereby grants You a world-wide, royalty-free, non-exclusive license:
+
+(a) under intellectual property rights (other than patent or trademark) Licensable by Initial Developer, to use, reproduce, modify, display, perform, sublicense and distribute the Original Software (or portions thereof), with or without Modifications, and/or as part of a Larger Work; and
+
+(b) under Patent Claims infringed by the making, using or selling of Original Software, to make, have made, use, practice, sell, and offer for sale, and/or otherwise dispose of the Original Software (or portions thereof).
+
+(c) The licenses granted in Sections 2.1(a) and (b) are effective on the date Initial Developer first distributes or otherwise makes the Original Software available to a third party under the terms of this License.
+
+(d) Notwithstanding Section 2.1(b) above, no patent license is granted: (1) for code that You delete from the Original Software, or (2) for infringements caused by: (i) the modification of the Original Software, or (ii) the combination of the Original Software with other software or devices.
+
+2.2. Contributor Grant.
+
+Conditioned upon Your compliance with Section 3.1 below and
+subject to third party intellectual property claims, each
+Contributor hereby grants You a world-wide, royalty-free,
+non-exclusive license:
+
+(a) under intellectual property rights (other than patent or trademark) Licensable by Contributor to use, reproduce, modify, display, perform, sublicense and distribute the Modifications created by such Contributor (or portions thereof), either on an unmodified basis, with other Modifications, as Covered Software and/or as part of a Larger Work; and
+
+(b) under Patent Claims infringed by the making, using, or selling of Modifications made by that Contributor either alone and/or in combination with its Contributor Version (or portions of such combination), to make, use, sell, offer for sale, have made, and/or otherwise dispose of: (1) Modifications made by that Contributor (or portions thereof); and (2) the combination of Modifications made by that Contributor with its Contributor Version (or portions of such combination).
+
+(c) The licenses granted in Sections 2.2(a) and 2.2(b) are effective on the date Contributor first distributes or otherwise makes the Modifications available to a third party.
+(d) Notwithstanding Section 2.2(b) above, no patent license is granted: (1) for any code that Contributor has deleted from the Contributor Version; (2) for infringements caused by: (i) third party modifications of Contributor Version, or (ii) the combination of Modifications made by that Contributor with other software (except as part of the Contributor Version) or other devices; or (3) under Patent Claims infringed by Covered Software in the absence of Modifications made by that Contributor.
+
+3. Distribution Obligations.
+
+3.1. Availability of Source Code.
+
+Any Covered Software that You distribute or otherwise make available in Executable form must also be made available in Source Code form and that Source Code form must be distributed only under the terms of this License. You must include a copy of this License with every copy of the Source Code form of the Covered Software You distribute or otherwise make available. You must inform recipients of any such Covered Software in Executable form as to how they can obtain such Covered Software i [...]
+
+3.2. Modifications.
+
+The Modifications that You create or to which You contribute are governed by the terms of this License. You represent that You believe Your Modifications are Your original creation(s) and/or You have sufficient rights to grant the rights conveyed by this License.
+
+3.3. Required Notices.
+
+You must include a notice in each of Your Modifications that identifies You as the Contributor of the Modification. You may not remove or alter any copyright, patent or trademark notices contained within the Covered Software, or any notices of licensing or any descriptive text giving attribution to any Contributor or the Initial Developer.
+
+3.4. Application of Additional Terms.
+
+You may not offer or impose any terms on any Covered Software in Source Code form that alters or restricts the applicable version of this License or the recipients' rights hereunder. You may choose to offer, and to charge a fee for, warranty, support, indemnity or liability obligations to one or more recipients of Covered Software. However, you may do so only on Your own behalf, and not on behalf of the Initial Developer or any Contributor. You must make it absolutely clear that any such [...]
+
+3.5. Distribution of Executable Versions.
+
+You may distribute the Executable form of the Covered Software under the terms of this License or under the terms of a license of Your choice, which may contain terms different from this License, provided that You are in compliance with the terms of this License and that the license for the Executable form does not attempt to limit or alter the recipient's rights in the Source Code form from the rights set forth in this License. If You distribute the Covered Software in Executable form u [...]
+
+3.6. Larger Works.
+
+You may create a Larger Work by combining Covered Software with other code not governed by the terms of this License and distribute the Larger Work as a single product. In such a case, You must make sure the requirements of this License are fulfilled for the Covered Software.
+
+4. Versions of the License.
+
+4.1. New Versions.
+
+Sun Microsystems, Inc. is the initial license steward and may publish revised and/or new versions of this License from time to time. Each version will be given a distinguishing version number. Except as provided in Section 4.3, no one other than the license steward has the right to modify this License.
+
+4.2. Effect of New Versions.
+
+You may always continue to use, distribute or otherwise make the Covered Software available under the terms of the version of the License under which You originally received the Covered Software. If the Initial Developer includes a notice in the Original Software prohibiting it from being distributed or otherwise made available under any subsequent version of the License, You must distribute and make the Covered Software available under the terms of the version of the License under which [...]
+
+4.3. Modified Versions.
+
+When You are an Initial Developer and You want to create a new license for Your Original Software, You may create and use a modified version of this License if You: (a) rename the license and remove any references to the name of the license steward (except to note that the license differs from this License); and (b) otherwise make it clear that the license contains terms which differ from this License.
+
+5. DISCLAIMER OF WARRANTY.
+
+COVERED SOFTWARE IS PROVIDED UNDER THIS LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, WITHOUT LIMITATION, WARRANTIES THAT THE COVERED SOFTWARE IS FREE OF DEFECTS, MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE OR NON-INFRINGING. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE COVERED SOFTWARE IS WITH YOU. SHOULD ANY COVERED SOFTWARE PROVE DEFECTIVE IN ANY RESPECT, YOU (NOT THE INITIAL DEVELOPER OR ANY OTHER CONTRIBUTOR) ASSUME THE [...]
+
+6. TERMINATION.
+
+6.1. This License and the rights granted hereunder will terminate automatically if You fail to comply with terms herein and fail to cure such breach within 30 days of becoming aware of the breach. Provisions which, by their nature, must remain in effect beyond the termination of this License shall survive.
+
+6.2. If You assert a patent infringement claim (excluding declaratory judgment actions) against Initial Developer or a Contributor (the Initial Developer or Contributor against whom You assert such claim is referred to as "Participant") alleging that the Participant Software (meaning the Contributor Version where the Participant is a Contributor or the Original Software where the Participant is the Initial Developer) directly or indirectly infringes any patent, then any and all rights gr [...]
+
+6.3. In the event of termination under Sections 6.1 or 6.2 above, all end user licenses that have been validly granted by You or any distributor hereunder prior to termination (excluding licenses granted to You by any distributor) shall survive termination.
+
+7. LIMITATION OF LIABILITY.
+
+UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, WHETHER TORT (INCLUDING NEGLIGENCE), CONTRACT, OR OTHERWISE, SHALL YOU, THE INITIAL DEVELOPER, ANY OTHER CONTRIBUTOR, OR ANY DISTRIBUTOR OF COVERED SOFTWARE, OR ANY SUPPLIER OF ANY OF SUCH PARTIES, BE LIABLE TO ANY PERSON FOR ANY INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOST PROFITS, LOSS OF GOODWILL, WORK STOPPAGE, COMPUTER FAILURE OR MALFUNCTION, OR ANY AND ALL O [...]
+
+8. U.S. GOVERNMENT END USERS.
+
+The Covered Software is a "commercial item," as that term is defined in 48 C.F.R. 2.101 (Oct. 1995), consisting of "commercial computer software" (as that term is defined at 48 C.F.R. ยค 252.227-7014(a)(1)) and "commercial computer software documentation" as such terms are used in 48 C.F.R. 12.212 (Sept. 1995). Consistent with 48 C.F.R. 12.212 and 48 C.F.R. 227.7202-1 through 227.7202-4 (June 1995), all U.S. Government End Users acquire Covered Software with only those rights set forth he [...]
+
+9. MISCELLANEOUS.
+
+This License represents the complete agreement concerning subject matter hereof. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable. This License shall be governed by the law of the jurisdiction specified in a notice contained within the Original Software (except to the extent applicable law, if any, provides otherwise), excluding such jurisdiction's conflict-of-law provisions. Any litigation  [...]
+
+10. RESPONSIBILITY FOR CLAIMS.
+
+As between Initial Developer and the Contributors, each party is responsible for claims and damages arising, directly or indirectly, out of its utilization of rights under this License and You agree to work with Initial Developer and Contributors to distribute such responsibility on an equitable basis. Nothing herein is intended or shall be deemed to constitute any admission of liability.
+
diff --git a/oas-validator/distribution/src/release/licenses/LICENSE-epl-v10 b/oas-validator/distribution/src/release/licenses/LICENSE-epl-v10
new file mode 100755
index 0000000..b0476ee
--- /dev/null
+++ b/oas-validator/distribution/src/release/licenses/LICENSE-epl-v10
@@ -0,0 +1,86 @@
+Eclipse Public License - v 1.0
+THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT.
+
+1. DEFINITIONS
+
+"Contribution" means:
+
+a) in the case of the initial Contributor, the initial code and documentation distributed under this Agreement, and
+
+b) in the case of each subsequent Contributor:
+
+i) changes to the Program, and
+
+ii) additions to the Program;
+
+where such changes and/or additions to the Program originate from and are distributed by that particular Contributor. A Contribution 'originates' from a Contributor if it was added to the Program by such Contributor itself or anyone acting on such Contributor's behalf. Contributions do not include additions to the Program which: (i) are separate modules of software distributed in conjunction with the Program under their own license agreement, and (ii) are not derivative works of the Program.
+
+"Contributor" means any person or entity that distributes the Program.
+
+"Licensed Patents" mean patent claims licensable by a Contributor which are necessarily infringed by the use or sale of its Contribution alone or when combined with the Program.
+
+"Program" means the Contributions distributed in accordance with this Agreement.
+
+"Recipient" means anyone who receives the Program under this Agreement, including all Contributors.
+
+2. GRANT OF RIGHTS
+
+a) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, distribute and sublicense the Contribution of such Contributor, if any, and such derivative works, in source code and object code form.
+
+b) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free patent license under Licensed Patents to make, use, sell, offer to sell, import and otherwise transfer the Contribution of such Contributor, if any, in source code and object code form. This patent license shall apply to the combination of the Contribution and the Program if, at the time the Contribution is added by the Contributor, such addition of the Contributio [...]
+
+c) Recipient understands that although each Contributor grants the licenses to its Contributions set forth herein, no assurances are provided by any Contributor that the Program does not infringe the patent or other intellectual property rights of any other entity. Each Contributor disclaims any liability to Recipient for claims brought by any other entity based on infringement of intellectual property rights or otherwise. As a condition to exercising the rights and licenses granted here [...]
+
+d) Each Contributor represents that to its knowledge it has sufficient copyright rights in its Contribution, if any, to grant the copyright license set forth in this Agreement.
+
+3. REQUIREMENTS
+
+A Contributor may choose to distribute the Program in object code form under its own license agreement, provided that:
+
+a) it complies with the terms and conditions of this Agreement; and
+
+b) its license agreement:
+
+i) effectively disclaims on behalf of all Contributors all warranties and conditions, express and implied, including warranties or conditions of title and non-infringement, and implied warranties or conditions of merchantability and fitness for a particular purpose;
+
+ii) effectively excludes on behalf of all Contributors all liability for damages, including direct, indirect, special, incidental and consequential damages, such as lost profits;
+
+iii) states that any provisions which differ from this Agreement are offered by that Contributor alone and not by any other party; and
+
+iv) states that source code for the Program is available from such Contributor, and informs licensees how to obtain it in a reasonable manner on or through a medium customarily used for software exchange.
+
+When the Program is made available in source code form:
+
+a) it must be made available under this Agreement; and
+
+b) a copy of this Agreement must be included with each copy of the Program.
+
+Contributors may not remove or alter any copyright notices contained within the Program.
+
+Each Contributor must identify itself as the originator of its Contribution, if any, in a manner that reasonably allows subsequent Recipients to identify the originator of the Contribution.
+
+4. COMMERCIAL DISTRIBUTION
+
+Commercial distributors of software may accept certain responsibilities with respect to end users, business partners and the like. While this license is intended to facilitate the commercial use of the Program, the Contributor who includes the Program in a commercial product offering should do so in a manner which does not create potential liability for other Contributors. Therefore, if a Contributor includes the Program in a commercial product offering, such Contributor ("Commercial Con [...]
+
+For example, a Contributor might include the Program in a commercial product offering, Product X. That Contributor is then a Commercial Contributor. If that Commercial Contributor then makes performance claims, or offers warranties related to Product X, those performance claims and warranties are such Commercial Contributor's responsibility alone. Under this section, the Commercial Contributor would have to defend claims against the other Contributors related to those performance claims  [...]
+
+5. NO WARRANTY
+
+EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely responsible for determining the appropriateness of using and distributing the Program and assumes all risks associated with its exercise of rights under this Ag [...]
+
+6. DISCLAIMER OF LIABILITY
+
+EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF [...]
+
+7. GENERAL
+
+If any provision of this Agreement is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this Agreement, and without further action by the parties hereto, such provision shall be reformed to the minimum extent necessary to make such provision valid and enforceable.
+
+If Recipient institutes patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Program itself (excluding combinations of the Program with other software or hardware) infringes such Recipient's patent(s), then such Recipient's rights granted under Section 2(b) shall terminate as of the date such litigation is filed.
+
+All Recipient's rights under this Agreement shall terminate if it fails to comply with any of the material terms or conditions of this Agreement and does not cure such failure in a reasonable period of time after becoming aware of such noncompliance. If all Recipient's rights under this Agreement terminate, Recipient agrees to cease use and distribution of the Program as soon as reasonably practicable. However, Recipient's obligations under this Agreement and any licenses granted by Reci [...]
+
+Everyone is permitted to copy and distribute copies of this Agreement, but in order to avoid inconsistency the Agreement is copyrighted and may only be modified in the following manner. The Agreement Steward reserves the right to publish new versions (including revisions) of this Agreement from time to time. No one other than the Agreement Steward has the right to modify this Agreement. The Eclipse Foundation is the initial Agreement Steward. The Eclipse Foundation may assign the respons [...]
+
+This Agreement is governed by the laws of the State of New York and the intellectual property laws of the United States of America. No party to this Agreement will bring a legal action under this Agreement more than one year after the cause of action arose. Each party waives its rights to a jury trial in any resulting litigation.
diff --git a/oas-validator/distribution/src/release/licenses/LICENSE-hamcrest b/oas-validator/distribution/src/release/licenses/LICENSE-hamcrest
new file mode 100755
index 0000000..dcdcc42
--- /dev/null
+++ b/oas-validator/distribution/src/release/licenses/LICENSE-hamcrest
@@ -0,0 +1,27 @@
+BSD License
+
+Copyright (c) 2000-2006, www.hamcrest.org
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+Redistributions of source code must retain the above copyright notice, this list of
+conditions and the following disclaimer. Redistributions in binary form must reproduce
+the above copyright notice, this list of conditions and the following disclaimer in
+the documentation and/or other materials provided with the distribution.
+
+Neither the name of Hamcrest nor the names of its contributors may be used to endorse
+or promote products derived from this software without specific prior written
+permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
+EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
+SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
+TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
+BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
+WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
+DAMAGE.
diff --git a/oas-validator/distribution/src/release/licenses/LICENSE-jopt b/oas-validator/distribution/src/release/licenses/LICENSE-jopt
new file mode 100755
index 0000000..7cb505b
--- /dev/null
+++ b/oas-validator/distribution/src/release/licenses/LICENSE-jopt
@@ -0,0 +1,22 @@
+The MIT License
+
+Copyright (c) 2004-2016 Paul R. Holser, Jr.
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/oas-validator/distribution/src/release/licenses/LICENSE-lombok b/oas-validator/distribution/src/release/licenses/LICENSE-lombok
new file mode 100755
index 0000000..5da7dbe
--- /dev/null
+++ b/oas-validator/distribution/src/release/licenses/LICENSE-lombok
@@ -0,0 +1,19 @@
+Copyright (C) 2009-2015 The Project Lombok Authors.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/oas-validator/distribution/src/release/licenses/LICENSE-mit b/oas-validator/distribution/src/release/licenses/LICENSE-mit
new file mode 100755
index 0000000..244229e
--- /dev/null
+++ b/oas-validator/distribution/src/release/licenses/LICENSE-mit
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/oas-validator/distribution/src/release/licenses/LICENSE-mockito b/oas-validator/distribution/src/release/licenses/LICENSE-mockito
new file mode 100755
index 0000000..5a311f7
--- /dev/null
+++ b/oas-validator/distribution/src/release/licenses/LICENSE-mockito
@@ -0,0 +1,21 @@
+The MIT License
+
+Copyright (c) 2007 Mockito contributors
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/oas-validator/distribution/src/release/licenses/LICENSE-mpl-v20 b/oas-validator/distribution/src/release/licenses/LICENSE-mpl-v20
new file mode 100755
index 0000000..14e2f77
--- /dev/null
+++ b/oas-validator/distribution/src/release/licenses/LICENSE-mpl-v20
@@ -0,0 +1,373 @@
+Mozilla Public License Version 2.0
+==================================
+
+1. Definitions
+--------------
+
+1.1. "Contributor"
+    means each individual or legal entity that creates, contributes to
+    the creation of, or owns Covered Software.
+
+1.2. "Contributor Version"
+    means the combination of the Contributions of others (if any) used
+    by a Contributor and that particular Contributor's Contribution.
+
+1.3. "Contribution"
+    means Covered Software of a particular Contributor.
+
+1.4. "Covered Software"
+    means Source Code Form to which the initial Contributor has attached
+    the notice in Exhibit A, the Executable Form of such Source Code
+    Form, and Modifications of such Source Code Form, in each case
+    including portions thereof.
+
+1.5. "Incompatible With Secondary Licenses"
+    means
+
+    (a) that the initial Contributor has attached the notice described
+        in Exhibit B to the Covered Software; or
+
+    (b) that the Covered Software was made available under the terms of
+        version 1.1 or earlier of the License, but not also under the
+        terms of a Secondary License.
+
+1.6. "Executable Form"
+    means any form of the work other than Source Code Form.
+
+1.7. "Larger Work"
+    means a work that combines Covered Software with other material, in 
+    a separate file or files, that is not Covered Software.
+
+1.8. "License"
+    means this document.
+
+1.9. "Licensable"
+    means having the right to grant, to the maximum extent possible,
+    whether at the time of the initial grant or subsequently, any and
+    all of the rights conveyed by this License.
+
+1.10. "Modifications"
+    means any of the following:
+
+    (a) any file in Source Code Form that results from an addition to,
+        deletion from, or modification of the contents of Covered
+        Software; or
+
+    (b) any new file in Source Code Form that contains any Covered
+        Software.
+
+1.11. "Patent Claims" of a Contributor
+    means any patent claim(s), including without limitation, method,
+    process, and apparatus claims, in any patent Licensable by such
+    Contributor that would be infringed, but for the grant of the
+    License, by the making, using, selling, offering for sale, having
+    made, import, or transfer of either its Contributions or its
+    Contributor Version.
+
+1.12. "Secondary License"
+    means either the GNU General Public License, Version 2.0, the GNU
+    Lesser General Public License, Version 2.1, the GNU Affero General
+    Public License, Version 3.0, or any later versions of those
+    licenses.
+
+1.13. "Source Code Form"
+    means the form of the work preferred for making modifications.
+
+1.14. "You" (or "Your")
+    means an individual or a legal entity exercising rights under this
+    License. For legal entities, "You" includes any entity that
+    controls, is controlled by, or is under common control with You. For
+    purposes of this definition, "control" means (a) the power, direct
+    or indirect, to cause the direction or management of such entity,
+    whether by contract or otherwise, or (b) ownership of more than
+    fifty percent (50%) of the outstanding shares or beneficial
+    ownership of such entity.
+
+2. License Grants and Conditions
+--------------------------------
+
+2.1. Grants
+
+Each Contributor hereby grants You a world-wide, royalty-free,
+non-exclusive license:
+
+(a) under intellectual property rights (other than patent or trademark)
+    Licensable by such Contributor to use, reproduce, make available,
+    modify, display, perform, distribute, and otherwise exploit its
+    Contributions, either on an unmodified basis, with Modifications, or
+    as part of a Larger Work; and
+
+(b) under Patent Claims of such Contributor to make, use, sell, offer
+    for sale, have made, import, and otherwise transfer either its
+    Contributions or its Contributor Version.
+
+2.2. Effective Date
+
+The licenses granted in Section 2.1 with respect to any Contribution
+become effective for each Contribution on the date the Contributor first
+distributes such Contribution.
+
+2.3. Limitations on Grant Scope
+
+The licenses granted in this Section 2 are the only rights granted under
+this License. No additional rights or licenses will be implied from the
+distribution or licensing of Covered Software under this License.
+Notwithstanding Section 2.1(b) above, no patent license is granted by a
+Contributor:
+
+(a) for any code that a Contributor has removed from Covered Software;
+    or
+
+(b) for infringements caused by: (i) Your and any other third party's
+    modifications of Covered Software, or (ii) the combination of its
+    Contributions with other software (except as part of its Contributor
+    Version); or
+
+(c) under Patent Claims infringed by Covered Software in the absence of
+    its Contributions.
+
+This License does not grant any rights in the trademarks, service marks,
+or logos of any Contributor (except as may be necessary to comply with
+the notice requirements in Section 3.4).
+
+2.4. Subsequent Licenses
+
+No Contributor makes additional grants as a result of Your choice to
+distribute the Covered Software under a subsequent version of this
+License (see Section 10.2) or under the terms of a Secondary License (if
+permitted under the terms of Section 3.3).
+
+2.5. Representation
+
+Each Contributor represents that the Contributor believes its
+Contributions are its original creation(s) or it has sufficient rights
+to grant the rights to its Contributions conveyed by this License.
+
+2.6. Fair Use
+
+This License is not intended to limit any rights You have under
+applicable copyright doctrines of fair use, fair dealing, or other
+equivalents.
+
+2.7. Conditions
+
+Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted
+in Section 2.1.
+
+3. Responsibilities
+-------------------
+
+3.1. Distribution of Source Form
+
+All distribution of Covered Software in Source Code Form, including any
+Modifications that You create or to which You contribute, must be under
+the terms of this License. You must inform recipients that the Source
+Code Form of the Covered Software is governed by the terms of this
+License, and how they can obtain a copy of this License. You may not
+attempt to alter or restrict the recipients' rights in the Source Code
+Form.
+
+3.2. Distribution of Executable Form
+
+If You distribute Covered Software in Executable Form then:
+
+(a) such Covered Software must also be made available in Source Code
+    Form, as described in Section 3.1, and You must inform recipients of
+    the Executable Form how they can obtain a copy of such Source Code
+    Form by reasonable means in a timely manner, at a charge no more
+    than the cost of distribution to the recipient; and
+
+(b) You may distribute such Executable Form under the terms of this
+    License, or sublicense it under different terms, provided that the
+    license for the Executable Form does not attempt to limit or alter
+    the recipients' rights in the Source Code Form under this License.
+
+3.3. Distribution of a Larger Work
+
+You may create and distribute a Larger Work under terms of Your choice,
+provided that You also comply with the requirements of this License for
+the Covered Software. If the Larger Work is a combination of Covered
+Software with a work governed by one or more Secondary Licenses, and the
+Covered Software is not Incompatible With Secondary Licenses, this
+License permits You to additionally distribute such Covered Software
+under the terms of such Secondary License(s), so that the recipient of
+the Larger Work may, at their option, further distribute the Covered
+Software under the terms of either this License or such Secondary
+License(s).
+
+3.4. Notices
+
+You may not remove or alter the substance of any license notices
+(including copyright notices, patent notices, disclaimers of warranty,
+or limitations of liability) contained within the Source Code Form of
+the Covered Software, except that You may alter any license notices to
+the extent required to remedy known factual inaccuracies.
+
+3.5. Application of Additional Terms
+
+You may choose to offer, and to charge a fee for, warranty, support,
+indemnity or liability obligations to one or more recipients of Covered
+Software. However, You may do so only on Your own behalf, and not on
+behalf of any Contributor. You must make it absolutely clear that any
+such warranty, support, indemnity, or liability obligation is offered by
+You alone, and You hereby agree to indemnify every Contributor for any
+liability incurred by such Contributor as a result of warranty, support,
+indemnity or liability terms You offer. You may include additional
+disclaimers of warranty and limitations of liability specific to any
+jurisdiction.
+
+4. Inability to Comply Due to Statute or Regulation
+---------------------------------------------------
+
+If it is impossible for You to comply with any of the terms of this
+License with respect to some or all of the Covered Software due to
+statute, judicial order, or regulation then You must: (a) comply with
+the terms of this License to the maximum extent possible; and (b)
+describe the limitations and the code they affect. Such description must
+be placed in a text file included with all distributions of the Covered
+Software under this License. Except to the extent prohibited by statute
+or regulation, such description must be sufficiently detailed for a
+recipient of ordinary skill to be able to understand it.
+
+5. Termination
+--------------
+
+5.1. The rights granted under this License will terminate automatically
+if You fail to comply with any of its terms. However, if You become
+compliant, then the rights granted under this License from a particular
+Contributor are reinstated (a) provisionally, unless and until such
+Contributor explicitly and finally terminates Your grants, and (b) on an
+ongoing basis, if such Contributor fails to notify You of the
+non-compliance by some reasonable means prior to 60 days after You have
+come back into compliance. Moreover, Your grants from a particular
+Contributor are reinstated on an ongoing basis if such Contributor
+notifies You of the non-compliance by some reasonable means, this is the
+first time You have received notice of non-compliance with this License
+from such Contributor, and You become compliant prior to 30 days after
+Your receipt of the notice.
+
+5.2. If You initiate litigation against any entity by asserting a patent
+infringement claim (excluding declaratory judgment actions,
+counter-claims, and cross-claims) alleging that a Contributor Version
+directly or indirectly infringes any patent, then the rights granted to
+You by any and all Contributors for the Covered Software under Section
+2.1 of this License shall terminate.
+
+5.3. In the event of termination under Sections 5.1 or 5.2 above, all
+end user license agreements (excluding distributors and resellers) which
+have been validly granted by You or Your distributors under this License
+prior to termination shall survive termination.
+
+************************************************************************
+*                                                                      *
+*  6. Disclaimer of Warranty                                           *
+*  -------------------------                                           *
+*                                                                      *
+*  Covered Software is provided under this License on an "as is"       *
+*  basis, without warranty of any kind, either expressed, implied, or  *
+*  statutory, including, without limitation, warranties that the       *
+*  Covered Software is free of defects, merchantable, fit for a        *
+*  particular purpose or non-infringing. The entire risk as to the     *
+*  quality and performance of the Covered Software is with You.        *
+*  Should any Covered Software prove defective in any respect, You     *
+*  (not any Contributor) assume the cost of any necessary servicing,   *
+*  repair, or correction. This disclaimer of warranty constitutes an   *
+*  essential part of this License. No use of any Covered Software is   *
+*  authorized under this License except under this disclaimer.         *
+*                                                                      *
+************************************************************************
+
+************************************************************************
+*                                                                      *
+*  7. Limitation of Liability                                          *
+*  --------------------------                                          *
+*                                                                      *
+*  Under no circumstances and under no legal theory, whether tort      *
+*  (including negligence), contract, or otherwise, shall any           *
+*  Contributor, or anyone who distributes Covered Software as          *
+*  permitted above, be liable to You for any direct, indirect,         *
+*  special, incidental, or consequential damages of any character      *
+*  including, without limitation, damages for lost profits, loss of    *
+*  goodwill, work stoppage, computer failure or malfunction, or any    *
+*  and all other commercial damages or losses, even if such party      *
+*  shall have been informed of the possibility of such damages. This   *
+*  limitation of liability shall not apply to liability for death or   *
+*  personal injury resulting from such party's negligence to the       *
+*  extent applicable law prohibits such limitation. Some               *
+*  jurisdictions do not allow the exclusion or limitation of           *
+*  incidental or consequential damages, so this exclusion and          *
+*  limitation may not apply to You.                                    *
+*                                                                      *
+************************************************************************
+
+8. Litigation
+-------------
+
+Any litigation relating to this License may be brought only in the
+courts of a jurisdiction where the defendant maintains its principal
+place of business and such litigation shall be governed by laws of that
+jurisdiction, without reference to its conflict-of-law provisions.
+Nothing in this Section shall prevent a party's ability to bring
+cross-claims or counter-claims.
+
+9. Miscellaneous
+----------------
+
+This License represents the complete agreement concerning the subject
+matter hereof. If any provision of this License is held to be
+unenforceable, such provision shall be reformed only to the extent
+necessary to make it enforceable. Any law or regulation which provides
+that the language of a contract shall be construed against the drafter
+shall not be used to construe this License against a Contributor.
+
+10. Versions of the License
+---------------------------
+
+10.1. New Versions
+
+Mozilla Foundation is the license steward. Except as provided in Section
+10.3, no one other than the license steward has the right to modify or
+publish new versions of this License. Each version will be given a
+distinguishing version number.
+
+10.2. Effect of New Versions
+
+You may distribute the Covered Software under the terms of the version
+of the License under which You originally received the Covered Software,
+or under the terms of any subsequent version published by the license
+steward.
+
+10.3. Modified Versions
+
+If you create software not governed by this License, and you want to
+create a new license for such software, you may create and use a
+modified version of this License if you rename the license and remove
+any references to the name of the license steward (except to note that
+such modified license differs from this License).
+
+10.4. Distributing Source Code Form that is Incompatible With Secondary
+Licenses
+
+If You choose to distribute Source Code Form that is Incompatible With
+Secondary Licenses under the terms of this version of the License, the
+notice described in Exhibit B of this License must be attached.
+
+Exhibit A - Source Code Form License Notice
+-------------------------------------------
+
+  This Source Code Form is subject to the terms of the Mozilla Public
+  License, v. 2.0. If a copy of the MPL was not distributed with this
+  file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+If it is not possible or desirable to put the notice in a particular
+file, then You may include the notice in a location (such as a LICENSE
+file in a relevant directory) where a recipient would be likely to look
+for such a notice.
+
+You may add additional accurate notices of copyright ownership.
+
+Exhibit B - "Incompatible With Secondary Licenses" Notice
+---------------------------------------------------------
+
+  This Source Code Form is "Incompatible With Secondary Licenses", as
+  defined by the Mozilla Public License, v. 2.0.
diff --git a/oas-validator/distribution/src/release/licenses/LICENSE-qos b/oas-validator/distribution/src/release/licenses/LICENSE-qos
new file mode 100755
index 0000000..0c40879
--- /dev/null
+++ b/oas-validator/distribution/src/release/licenses/LICENSE-qos
@@ -0,0 +1,21 @@
+Copyright (c) 2009 QOS.ch
+All rights reserved.
+
+Permission is hereby granted, free  of charge, to any person obtaining
+a  copy  of this  software  and  associated  documentation files  (the
+"Software"), to  deal in  the Software without  restriction, including
+without limitation  the rights to  use, copy, modify,  merge, publish,
+distribute,  sublicense, and/or sell  copies of  the Software,  and to
+permit persons to whom the Software  is furnished to do so, subject to
+the following conditions:
+
+The  above  copyright  notice  and  this permission  notice  shall  be
+included in all copies or substantial portions of the Software.
+
+THE  SOFTWARE IS  PROVIDED  "AS  IS", WITHOUT  WARRANTY  OF ANY  KIND,
+EXPRESS OR  IMPLIED, INCLUDING  BUT NOT LIMITED  TO THE  WARRANTIES OF
+MERCHANTABILITY,    FITNESS    FOR    A   PARTICULAR    PURPOSE    AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE,  ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/oas-validator/distribution/src/release/licenses/LICENSE-slf4j b/oas-validator/distribution/src/release/licenses/LICENSE-slf4j
new file mode 100755
index 0000000..744377c
--- /dev/null
+++ b/oas-validator/distribution/src/release/licenses/LICENSE-slf4j
@@ -0,0 +1,21 @@
+Copyright (c) 2004-2017 QOS.ch
+All rights reserved.
+
+Permission is hereby granted, free  of charge, to any person obtaining
+a  copy  of this  software  and  associated  documentation files  (the
+"Software"), to  deal in  the Software without  restriction, including
+without limitation  the rights to  use, copy, modify,  merge, publish,
+distribute,  sublicense, and/or sell  copies of  the Software,  and to
+permit persons to whom the Software  is furnished to do so, subject to
+the following conditions:
+
+The  above  copyright  notice  and  this permission  notice  shall  be
+included in all copies or substantial portions of the Software.
+
+THE  SOFTWARE IS  PROVIDED  "AS  IS", WITHOUT  WARRANTY  OF ANY  KIND,
+EXPRESS OR  IMPLIED, INCLUDING  BUT NOT LIMITED  TO THE  WARRANTIES OF
+MERCHANTABILITY,    FITNESS    FOR    A   PARTICULAR    PURPOSE    AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE,  ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/oas-validator/distribution/src/release/licenses/LICENSE-webjars b/oas-validator/distribution/src/release/licenses/LICENSE-webjars
new file mode 100755
index 0000000..29bdee3
--- /dev/null
+++ b/oas-validator/distribution/src/release/licenses/LICENSE-webjars
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2017 James Ward
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/oas-validator/doc/INSTALLATION.MD b/oas-validator/doc/INSTALLATION.MD
new file mode 100755
index 0000000..6dc6849
--- /dev/null
+++ b/oas-validator/doc/INSTALLATION.MD
@@ -0,0 +1,36 @@
+# INSTALLATION.MD
+
+## Prerequisites
+
+* Java 8
+* Maven
+
+## Building
+
+### Jar
+
+```
+mvn clean package
+```
+
+
+```
+./mvnw clean package
+```
+
+
+## Run
+
+### Maven
+
+```
+mvn clean package spring-boot:run
+```
+
+
+
+### Java
+
+```
+java -jar ./oas-validator-web/target/oas-validator-web-exec.jar
+```
diff --git a/oas-validator/doc/USAGE.MD b/oas-validator/doc/USAGE.MD
new file mode 100755
index 0000000..ffe2a0c
--- /dev/null
+++ b/oas-validator/doc/USAGE.MD
@@ -0,0 +1,62 @@
+# ไฝฟ็”จๆ‰‹ๅ†Œ
+
+
+
+
+## ่ฎฟ้—ฎ
+
+่ฎฟ้—ฎๅœฐๅ€๏ผš[http://localhost:8080/](http://localhost:8080/)
+
+
+
+## ๅทฅๅ…ท
+
+### ๆŸฅ็œ‹ๅ™จ
+
+ๆ•ฌ่ฏทๆœŸๅพ…โ€ฆโ€ฆ
+
+
+
+### ็ผ–่พ‘ๅ™จ
+
+ๆ•ฌ่ฏทๆœŸๅพ…โ€ฆโ€ฆ
+
+
+
+### ้ชŒ่ฏๅ™จ
+
+ๅˆ†ไธบ **ๅˆ่ง„ๆ€ง้ชŒ่ฏ** ๅ’Œ **ๅ…ผๅฎนๆ€งๆฃ€ๆŸฅ**
+
+#### ๅˆ่ง„ๆ€ง้ชŒ่ฏ
+
+ๅฏน OpenAPI Spec ๆ–‡ๆกฃ่ฟ›่กŒ่ง„่Œƒ้ชŒ่ฏ๏ผŒๅฏน่ฟๅ่ง„่Œƒ็š„้”™่ฏฏไฝœๅ‡บๆ็คบใ€‚
+
+
+
+##### ๆ“ไฝœ็คบไพ‹
+
+1. Step 1
+
+   ![](./compliance-1.png)
+
+2. Step 2
+
+   ![](./compliance-2.png)
+
+
+
+#### ๅ…ผๅฎนๆ€งๆฃ€ๆŸฅ
+
+ๅฏนๆ–ฐๆ—งไธคไธช OpenAPI Spec ๆ–‡ๆกฃ่ฟ›่กŒๅ…ผๅฎนๆ€งๆฏ”่พƒ๏ผŒๆฃ€ๆŸฅๅ‡บๆ–‡ๆกฃๆ›ดๆ–ฐ่ฟ‡็จ‹ไธญๅ‡บ็Žฐ็š„ๆ— ๆณ•ๅ‘ไธ‹ๅ…ผๅฎน็š„้”™่ฏฏ
+
+
+##### ๆ“ไฝœ็คบไพ‹
+
+1. Step 1
+
+   ![](./compatibility-1.png)
+
+2. Step 2
+
+   ![](./compatibility-2.png)
+
diff --git a/oas-validator/doc/compatibility-1.png b/oas-validator/doc/compatibility-1.png
new file mode 100755
index 0000000..1eecf0b
Binary files /dev/null and b/oas-validator/doc/compatibility-1.png differ
diff --git a/oas-validator/doc/compatibility-2.png b/oas-validator/doc/compatibility-2.png
new file mode 100755
index 0000000..8794faa
Binary files /dev/null and b/oas-validator/doc/compatibility-2.png differ
diff --git a/oas-validator/doc/compliance-1.png b/oas-validator/doc/compliance-1.png
new file mode 100755
index 0000000..3227baf
Binary files /dev/null and b/oas-validator/doc/compliance-1.png differ
diff --git a/oas-validator/doc/compliance-2.png b/oas-validator/doc/compliance-2.png
new file mode 100755
index 0000000..8a32c0c
Binary files /dev/null and b/oas-validator/doc/compliance-2.png differ
diff --git a/oas-validator/mvnw b/oas-validator/mvnw
new file mode 100755
index 0000000..e96ccd5
--- /dev/null
+++ b/oas-validator/mvnw
@@ -0,0 +1,227 @@
+#!/bin/sh
+# ----------------------------------------------------------------------------
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+# ----------------------------------------------------------------------------
+
+# ----------------------------------------------------------------------------
+# Maven2 Start Up Batch script
+#
+# Required ENV vars:
+# ------------------
+#   JAVA_HOME - location of a JDK home dir
+#
+# Optional ENV vars
+# -----------------
+#   M2_HOME - location of maven2's installed home dir
+#   MAVEN_OPTS - parameters passed to the Java VM when running Maven
+#     e.g. to debug Maven itself, use
+#       set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
+#   MAVEN_SKIP_RC - flag to disable loading of mavenrc files
+# ----------------------------------------------------------------------------
+
+if [ -z "$MAVEN_SKIP_RC" ] ; then
+
+  if [ -f /etc/mavenrc ] ; then
+    . /etc/mavenrc
+  fi
+
+  if [ -f "$HOME/.mavenrc" ] ; then
+    . "$HOME/.mavenrc"
+  fi
+
+fi
+
+# OS specific support.  $var _must_ be set to either true or false.
+cygwin=false;
+darwin=false;
+mingw=false
+case "`uname`" in
+  CYGWIN*) cygwin=true ;;
+  MINGW*) mingw=true;;
+  Darwin*) darwin=true
+    # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home
+    # See https://developer.apple.com/library/mac/qa/qa1170/_index.html
+    if [ -z "$JAVA_HOME" ]; then
+      if [ -x "/usr/libexec/java_home" ]; then
+        export JAVA_HOME="`/usr/libexec/java_home`"
+      else
+        export JAVA_HOME="/Library/Java/Home"
+      fi
+    fi
+    ;;
+esac
+
+if [ -z "$JAVA_HOME" ] ; then
+  if [ -r /etc/gentoo-release ] ; then
+    JAVA_HOME=`java-config --jre-home`
+  fi
+fi
+
+if [ -z "$M2_HOME" ] ; then
+  ## resolve links - $0 may be a link to maven's home
+  PRG="$0"
+
+  # need this for relative symlinks
+  while [ -h "$PRG" ] ; do
+    ls=`ls -ld "$PRG"`
+    link=`expr "$ls" : '.*-> \(.*\)$'`
+    if expr "$link" : '/.*' > /dev/null; then
+      PRG="$link"
+    else
+      PRG="`dirname "$PRG"`/$link"
+    fi
+  done
+
+  saveddir=`pwd`
+
+  M2_HOME=`dirname "$PRG"`/..
+
+  # make it fully qualified
+  M2_HOME=`cd "$M2_HOME" && pwd`
+
+  cd "$saveddir"
+  # echo Using m2 at $M2_HOME
+fi
+
+# For Cygwin, ensure paths are in UNIX format before anything is touched
+if $cygwin ; then
+  [ -n "$M2_HOME" ] &&
+    M2_HOME=`cygpath --unix "$M2_HOME"`
+  [ -n "$JAVA_HOME" ] &&
+    JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
+  [ -n "$CLASSPATH" ] &&
+    CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
+fi
+
+# For Mingw, ensure paths are in UNIX format before anything is touched
+if $mingw ; then
+  [ -n "$M2_HOME" ] &&
+    M2_HOME="`(cd "$M2_HOME"; pwd)`"
+  [ -n "$JAVA_HOME" ] &&
+    JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`"
+  # TODO classpath?
+fi
+
+if [ -z "$JAVA_HOME" ]; then
+  javaExecutable="`which javac`"
+  if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then
+    # readlink(1) is not available as standard on Solaris 10.
+    readLink=`which readlink`
+    if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then
+      if $darwin ; then
+        javaHome="`dirname \"$javaExecutable\"`"
+        javaExecutable="`cd \"$javaHome\" && pwd -P`/javac"
+      else
+        javaExecutable="`readlink -f \"$javaExecutable\"`"
+      fi
+      javaHome="`dirname \"$javaExecutable\"`"
+      javaHome=`expr "$javaHome" : '\(.*\)/bin'`
+      JAVA_HOME="$javaHome"
+      export JAVA_HOME
+    fi
+  fi
+fi
+
+if [ -z "$JAVACMD" ] ; then
+  if [ -n "$JAVA_HOME"  ] ; then
+    if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+      # IBM's JDK on AIX uses strange locations for the executables
+      JAVACMD="$JAVA_HOME/jre/sh/java"
+    else
+      JAVACMD="$JAVA_HOME/bin/java"
+    fi
+  else
+    JAVACMD="`which java`"
+  fi
+fi
+
+if [ ! -x "$JAVACMD" ] ; then
+  echo "Error: JAVA_HOME is not defined correctly." >&2
+  echo "  We cannot execute $JAVACMD" >&2
+  exit 1
+fi
+
+if [ -z "$JAVA_HOME" ] ; then
+  echo "Warning: JAVA_HOME environment variable is not set."
+fi
+
+CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher
+
+# traverses directory structure from process work directory to filesystem root
+# first directory with .mvn subdirectory is considered project base directory
+find_maven_basedir() {
+
+  if [ -z "$1" ]
+  then
+    echo "Path not specified to find_maven_basedir"
+    return 1
+  fi
+
+  basedir="$1"
+  wdir="$1"
+  while [ "$wdir" != '/' ] ; do
+    if [ -d "$wdir"/.mvn ] ; then
+      basedir=$wdir
+      break
+    fi
+    # workaround for JBEAP-8937 (on Solaris 10/Sparc)
+    if [ -d "${wdir}" ]; then
+      wdir=`cd "$wdir/.."; pwd`
+    fi
+    # end of workaround
+  done
+  echo "${basedir}"
+}
+
+# concatenates all lines of a file
+concat_lines() {
+  if [ -f "$1" ]; then
+    echo "$(tr -s '\n' ' ' < "$1")"
+  fi
+}
+
+BASE_DIR=`find_maven_basedir "$(pwd)"`
+if [ -z "$BASE_DIR" ]; then
+  exit 1;
+fi
+
+export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"}
+if [ "$MVNW_VERBOSE" = true ]; then
+  echo $MAVEN_PROJECTBASEDIR
+fi
+MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS"
+
+# For Cygwin, switch paths to Windows format before running java
+if $cygwin; then
+  [ -n "$M2_HOME" ] &&
+    M2_HOME=`cygpath --path --windows "$M2_HOME"`
+  [ -n "$JAVA_HOME" ] &&
+    JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
+  [ -n "$CLASSPATH" ] &&
+    CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
+  [ -n "$MAVEN_PROJECTBASEDIR" ] &&
+    MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"`
+fi
+
+WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
+
+exec "$JAVACMD" \
+  $MAVEN_OPTS \
+  -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \
+  "-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \
+  ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@"
diff --git a/oas-validator/mvnw.cmd b/oas-validator/mvnw.cmd
new file mode 100755
index 0000000..4f0b068
--- /dev/null
+++ b/oas-validator/mvnw.cmd
@@ -0,0 +1,145 @@
+@REM ----------------------------------------------------------------------------
+@REM Licensed to the Apache Software Foundation (ASF) under one
+@REM or more contributor license agreements.  See the NOTICE file
+@REM distributed with this work for additional information
+@REM regarding copyright ownership.  The ASF licenses this file
+@REM to you under the Apache License, Version 2.0 (the
+@REM "License"); you may not use this file except in compliance
+@REM with the License.  You may obtain a copy of the License at
+@REM
+@REM    http://www.apache.org/licenses/LICENSE-2.0
+@REM
+@REM Unless required by applicable law or agreed to in writing,
+@REM software distributed under the License is distributed on an
+@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+@REM KIND, either express or implied.  See the License for the
+@REM specific language governing permissions and limitations
+@REM under the License.
+@REM ----------------------------------------------------------------------------
+
+@REM ----------------------------------------------------------------------------
+@REM Maven2 Start Up Batch script
+@REM
+@REM Required ENV vars:
+@REM JAVA_HOME - location of a JDK home dir
+@REM
+@REM Optional ENV vars
+@REM M2_HOME - location of maven2's installed home dir
+@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands
+@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a key stroke before ending
+@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven
+@REM     e.g. to debug Maven itself, use
+@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
+@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files
+@REM ----------------------------------------------------------------------------
+
+@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on'
+@echo off
+@REM set title of command window
+title %0
+@REM enable echoing my setting MAVEN_BATCH_ECHO to 'on'
+@if "%MAVEN_BATCH_ECHO%" == "on"  echo %MAVEN_BATCH_ECHO%
+
+@REM set %HOME% to equivalent of $HOME
+if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%")
+
+@REM Execute a user defined script before this one
+if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre
+@REM check for pre script, once with legacy .bat ending and once with .cmd ending
+if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat"
+if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd"
+:skipRcPre
+
+@setlocal
+
+set ERROR_CODE=0
+
+@REM To isolate internal variables from possible post scripts, we use another setlocal
+@setlocal
+
+@REM ==== START VALIDATION ====
+if not "%JAVA_HOME%" == "" goto OkJHome
+
+echo.
+echo Error: JAVA_HOME not found in your environment. >&2
+echo Please set the JAVA_HOME variable in your environment to match the >&2
+echo location of your Java installation. >&2
+echo.
+goto error
+
+:OkJHome
+if exist "%JAVA_HOME%\bin\java.exe" goto init
+
+echo.
+echo Error: JAVA_HOME is set to an invalid directory. >&2
+echo JAVA_HOME = "%JAVA_HOME%" >&2
+echo Please set the JAVA_HOME variable in your environment to match the >&2
+echo location of your Java installation. >&2
+echo.
+goto error
+
+@REM ==== END VALIDATION ====
+
+:init
+
+@REM Find the project base dir, i.e. the directory that contains the folder ".mvn".
+@REM Fallback to current working directory if not found.
+
+set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR%
+IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir
+
+set EXEC_DIR=%CD%
+set WDIR=%EXEC_DIR%
+:findBaseDir
+IF EXIST "%WDIR%"\.mvn goto baseDirFound
+cd ..
+IF "%WDIR%"=="%CD%" goto baseDirNotFound
+set WDIR=%CD%
+goto findBaseDir
+
+:baseDirFound
+set MAVEN_PROJECTBASEDIR=%WDIR%
+cd "%EXEC_DIR%"
+goto endDetectBaseDir
+
+:baseDirNotFound
+set MAVEN_PROJECTBASEDIR=%EXEC_DIR%
+cd "%EXEC_DIR%"
+
+:endDetectBaseDir
+
+IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig
+
+@setlocal EnableExtensions EnableDelayedExpansion
+for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a
+@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS%
+
+:endReadAdditionalConfig
+
+SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe"
+
+set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar"
+set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
+
+%MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %*
+if ERRORLEVEL 1 goto error
+goto end
+
+:error
+set ERROR_CODE=1
+
+:end
+@endlocal & set ERROR_CODE=%ERROR_CODE%
+
+if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost
+@REM check for post script, once with legacy .bat ending and once with .cmd ending
+if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat"
+if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd"
+:skipRcPost
+
+@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on'
+if "%MAVEN_BATCH_PAUSE%" == "on" pause
+
+if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE%
+
+exit /B %ERROR_CODE%
diff --git a/oas-validator/oas-validator-compatibility-spring/pom.xml b/oas-validator/oas-validator-compatibility-spring/pom.xml
new file mode 100755
index 0000000..913db0c
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility-spring/pom.xml
@@ -0,0 +1,69 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one or more
+  ~ contributor license agreements.  See the NOTICE file distributed with
+  ~ this work for additional information regarding copyright ownership.
+  ~ The ASF licenses this file to You under the Apache License, Version 2.0
+  ~ (the "License"); you may not use this file except in compliance with
+  ~ the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing, software
+  ~ distributed under the License is distributed on an "AS IS" BASIS,
+  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  ~ See the License for the specific language governing permissions and
+  ~ limitations under the License.
+  -->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <parent>
+    <groupId>org.apache.servicecomb.toolkit</groupId>
+    <artifactId>oas-validator-parent</artifactId>
+    <version>0.2.0-SNAPSHOT</version>
+    <relativePath>../pom.xml</relativePath>
+  </parent>
+
+  <groupId>org.apache.servicecomb.toolkit</groupId>
+  <artifactId>oas-validator-compatibility-spring</artifactId>
+  <version>${parent.version}</version>
+
+  <dependencies>
+
+    <dependency>
+      <groupId>org.apache.servicecomb.toolkit</groupId>
+      <artifactId>oas-validator-compatibility</artifactId>
+      <version>${project.version}</version>
+    </dependency>
+
+    <dependency>
+      <groupId>org.apache.servicecomb.toolkit</groupId>
+      <artifactId>oas-validator-core-spring</artifactId>
+      <version>${project.version}</version>
+    </dependency>
+    
+    <dependency>
+      <groupId>org.springframework.boot</groupId>
+      <artifactId>spring-boot-starter-test</artifactId>
+    </dependency>
+
+  </dependencies>
+
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-surefire-plugin</artifactId>
+      </plugin>
+
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-surefire-report-plugin</artifactId>
+      </plugin>
+    </plugins>
+  </build>
+
+</project>
diff --git a/oas-validator/oas-validator-compatibility-spring/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/config/EncodingDiffValidatorsConfiguration.java b/oas-validator/oas-validator-compatibility-spring/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/config/EncodingDiffValidatorsConfiguration.java
new file mode 100755
index 0000000..c547974
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility-spring/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/config/EncodingDiffValidatorsConfiguration.java
@@ -0,0 +1,58 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.config;
+
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.encoding.*;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.EncodingDiffValidator;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+
+@Configuration
+public class EncodingDiffValidatorsConfiguration {
+
+  @Bean
+  public EncodingDiffValidator encodingAddNotAllowedDiffValidator() {
+    return new EncodingAddNotAllowedDiffValidator();
+  }
+
+  @Bean
+  public EncodingDiffValidator encodingDelNotAllowedDiffValidator() {
+    return new EncodingDelNotAllowedDiffValidator();
+  }
+
+  @Bean
+  public EncodingDiffValidator encodingAllowedReservedChangeDiffValidator() {
+    return new EncodingAllowedReservedChangeDiffValidator();
+  }
+
+  @Bean
+  public EncodingDiffValidator encodingContentTypeNotSameDiffValidator() {
+    return new EncodingContentTypeNotSameDiffValidator();
+  }
+
+  @Bean
+  public EncodingDiffValidator encodingExplodeNotSameDiffValidator() {
+    return new EncodingExplodeNotSameDiffValidator();
+  }
+
+  @Bean
+  public EncodingDiffValidator encodingStyleNotSameDiffValidator() {
+    return new EncodingStyleNotSameDiffValidator();
+  }
+
+}
diff --git a/oas-validator/oas-validator-compatibility-spring/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/config/HeaderDiffValidatorsConfiguration.java b/oas-validator/oas-validator-compatibility-spring/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/config/HeaderDiffValidatorsConfiguration.java
new file mode 100755
index 0000000..aaf35da
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility-spring/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/config/HeaderDiffValidatorsConfiguration.java
@@ -0,0 +1,39 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.config;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.HeaderDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.header.HeaderAddInRequestBodyNotAllowedDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.header.HeaderDelInResponseNotAllowedDiffValidator;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+
+@Configuration
+public class HeaderDiffValidatorsConfiguration {
+
+  @Bean
+  public HeaderDiffValidator headerAddInRequestBodyNotAllowedDiffValidator() {
+    return new HeaderAddInRequestBodyNotAllowedDiffValidator();
+  }
+
+  @Bean
+  public HeaderDiffValidator headerDelInResponseNotAllowedDiffValidator() {
+    return new HeaderDelInResponseNotAllowedDiffValidator();
+  }
+
+}
diff --git a/oas-validator/oas-validator-compatibility-spring/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/config/MediaTypeDiffValidatorsConfiguration.java b/oas-validator/oas-validator-compatibility-spring/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/config/MediaTypeDiffValidatorsConfiguration.java
new file mode 100755
index 0000000..023bfa2
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility-spring/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/config/MediaTypeDiffValidatorsConfiguration.java
@@ -0,0 +1,51 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.config;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.MediaTypeDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.mediatype.MediaTypeAddInParameterNotAllowedDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.mediatype.MediaTypeDelInParameterNotAllowedDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.mediatype.MediaTypeDelInRequestBodyNotAllowedDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.mediatype.MediaTypeDelInResponseNotAllowedDiffValidator;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+
+@Configuration
+public class MediaTypeDiffValidatorsConfiguration {
+
+  @Bean
+  public MediaTypeDiffValidator mediaTypeAddInParameterNotAllowedDiffValidator() {
+    return new MediaTypeAddInParameterNotAllowedDiffValidator();
+  }
+
+  @Bean
+  public MediaTypeDiffValidator mediaTypeDelInParameterNotAllowedDiffValidator() {
+    return new MediaTypeDelInParameterNotAllowedDiffValidator();
+  }
+
+  @Bean
+  public MediaTypeDiffValidator mediaTypeDelInRequestBodyNotAllowedDiffValidator() {
+    return new MediaTypeDelInRequestBodyNotAllowedDiffValidator();
+  }
+
+  @Bean
+  public MediaTypeDiffValidator mediaTypeDelInResponseNotAllowedDiffValidator() {
+    return new MediaTypeDelInResponseNotAllowedDiffValidator();
+  }
+
+}
diff --git a/oas-validator/oas-validator-compatibility-spring/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/config/OperationDiffValidatorsConfiguration.java b/oas-validator/oas-validator-compatibility-spring/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/config/OperationDiffValidatorsConfiguration.java
new file mode 100755
index 0000000..e82dc36
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility-spring/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/config/OperationDiffValidatorsConfiguration.java
@@ -0,0 +1,39 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.config;
+
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.operation.OperationDeleteNotAllowedDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.operation.OperationIdNotSameDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OperationDiffValidator;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+
+@Configuration
+public class OperationDiffValidatorsConfiguration {
+
+  @Bean
+  public OperationDiffValidator operationDeleteNotAllowedDiffValidator() {
+    return new OperationDeleteNotAllowedDiffValidator();
+  }
+
+  @Bean
+  public OperationDiffValidator operationIdNotSameDiffValidator() {
+    return new OperationIdNotSameDiffValidator();
+  }
+
+}
diff --git a/oas-validator/oas-validator-compatibility-spring/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/config/ParameterDiffValidatorsConfiguration.java b/oas-validator/oas-validator-compatibility-spring/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/config/ParameterDiffValidatorsConfiguration.java
new file mode 100755
index 0000000..f007e49
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility-spring/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/config/ParameterDiffValidatorsConfiguration.java
@@ -0,0 +1,59 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.config;
+
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.parameter.*;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.ParameterDiffValidator;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+
+@Configuration
+public class ParameterDiffValidatorsConfiguration {
+
+  @Bean
+  public ParameterDiffValidator parameterAddDiffValidator() {
+    return new ParameterAddDiffValidator();
+  }
+
+  @Bean
+  public ParameterDiffValidator parameterRequiredChangeDiffValidator() {
+    return new ParameterRequiredChangeDiffValidator();
+  }
+
+  @Bean
+  public ParameterDiffValidator parameterAllowEmptyValueChangeDiffValidator() {
+    return new ParameterAllowEmptyValueChangeDiffValidator();
+  }
+
+  @Bean
+  public ParameterDiffValidator parameterStyleNotSameDiffValidator() {
+    return new ParameterStyleNotSameDiffValidator();
+  }
+
+  @Bean
+  public ParameterDiffValidator parameterExplodeNotSameDiffValidator() {
+    return new ParameterExplodeNotSameDiffValidator();
+  }
+
+  @Bean
+  public ParameterDiffValidator parameterAllowReservedChangeDiffValidator() {
+    return new ParameterAllowReservedChangeDiffValidator();
+  }
+
+}
+
diff --git a/oas-validator/oas-validator-compatibility-spring/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/config/PathItemDiffValidatorsConfiguration.java b/oas-validator/oas-validator-compatibility-spring/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/config/PathItemDiffValidatorsConfiguration.java
new file mode 100755
index 0000000..ef930c2
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility-spring/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/config/PathItemDiffValidatorsConfiguration.java
@@ -0,0 +1,33 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.config;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.PathItemDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.pathitem.PathItemDeleteNotAllowedDiffValidator;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+
+@Configuration
+public class PathItemDiffValidatorsConfiguration {
+
+  @Bean
+  public PathItemDiffValidator pathItemDeleteNotAllowedValidator() {
+    return new PathItemDeleteNotAllowedDiffValidator();
+  }
+
+}
diff --git a/oas-validator/oas-validator-compatibility-spring/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/config/RequestBodyDiffValidatorsConfiguration.java b/oas-validator/oas-validator-compatibility-spring/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/config/RequestBodyDiffValidatorsConfiguration.java
new file mode 100755
index 0000000..4fb57a2
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility-spring/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/config/RequestBodyDiffValidatorsConfiguration.java
@@ -0,0 +1,33 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.config;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.RequestBodyDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.requestbody.RequestBodyRequiredChangeDiffValidator;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+
+@Configuration
+public class RequestBodyDiffValidatorsConfiguration {
+
+  @Bean
+  public RequestBodyDiffValidator requestBodyRequiredChangeDiffValidator() {
+    return new RequestBodyRequiredChangeDiffValidator();
+  }
+
+}
diff --git a/oas-validator/oas-validator-compatibility-spring/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/config/ResponseDiffValidatorsConfiguration.java b/oas-validator/oas-validator-compatibility-spring/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/config/ResponseDiffValidatorsConfiguration.java
new file mode 100755
index 0000000..82996a0
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility-spring/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/config/ResponseDiffValidatorsConfiguration.java
@@ -0,0 +1,33 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.config;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.ResponseDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.response.ResponseAddNotAllowedDiffValidator;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+
+@Configuration
+public class ResponseDiffValidatorsConfiguration {
+
+  @Bean
+  public ResponseDiffValidator responseAddNotAllowedDiffValidator() {
+    return new ResponseAddNotAllowedDiffValidator();
+  }
+
+}
diff --git a/oas-validator/oas-validator-compatibility-spring/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/config/SchemaDiffValidatorsConfiguration.java b/oas-validator/oas-validator-compatibility-spring/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/config/SchemaDiffValidatorsConfiguration.java
new file mode 100755
index 0000000..91d6930
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility-spring/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/config/SchemaDiffValidatorsConfiguration.java
@@ -0,0 +1,212 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.config;
+
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.request.*;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.response.*;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.SchemaCompareValidator;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.SchemaDiscriminatorChangeValidator;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.SchemaReadOnlyChangeValidator;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.SchemaWriteOnlyChangeValidator;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.SchemaXmlChangeValidator;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+
+@Configuration
+public class SchemaDiffValidatorsConfiguration {
+
+  @Bean
+  public SchemaCompareValidator schemaTypeFormatInRequestCompareValidator() {
+    return new SchemaTypeFormatChangeInRequestValidator();
+  }
+
+  @Bean
+  public SchemaCompareValidator schemaTypeFormatInResponseCompareValidator() {
+    return new SchemaTypeFormatChangeInResponseValidator();
+  }
+
+  @Bean
+  public SchemaCompareValidator schemaMultipleOfChangeInRequestValidator() {
+    return new SchemaMultipleOfChangeInRequestValidator();
+  }
+
+  @Bean
+  public SchemaCompareValidator schemaMaximumChangeInResponseValidator() {
+    return new SchemaMaximumChangeInResponseValidator();
+  }
+
+  @Bean
+  public SchemaCompareValidator schemaMaximumChangeInRequestValidator() {
+    return new SchemaMaximumChangeInRequestValidator();
+  }
+
+  @Bean
+  public SchemaCompareValidator schemaExclusiveMinimumChangeInRequestValidator() {
+    return new SchemaExclusiveMinimumChangeInRequestValidator();
+  }
+
+  @Bean
+  public SchemaCompareValidator schemaExclusiveMaximumChangeInRequestValidator() {
+    return new SchemaExclusiveMaximumChangeInRequestValidator();
+  }
+
+  @Bean
+  public SchemaCompareValidator schemaExclusiveMaximumChangeInResponseValidator() {
+    return new SchemaExclusiveMaximumChangeInResponseValidator();
+  }
+
+  @Bean
+  public SchemaCompareValidator schemaExclusiveMinimumChangeInResponseValidator() {
+    return new SchemaExclusiveMinimumChangeInResponseValidator();
+  }
+
+  @Bean
+  public SchemaCompareValidator schemaMaxItemsChangeInRequestValidator() {
+    return new SchemaMaxItemsChangeInRequestValidator();
+  }
+
+  @Bean
+  public SchemaCompareValidator schemaMaxLengthChangeInRequestValidator() {
+    return new SchemaMaxLengthChangeInRequestValidator();
+  }
+
+  @Bean
+  public SchemaCompareValidator schemaMaxPropertiesChangeInRequestValidator() {
+    return new SchemaMaxPropertiesChangeInRequestValidator();
+  }
+
+  @Bean
+  public SchemaCompareValidator schemaMinimumChangeInRequestValidator() {
+    return new SchemaMinimumChangeInRequestValidator();
+  }
+
+  @Bean
+  public SchemaCompareValidator schemaMinItemsChangeInRequestValidator() {
+    return new SchemaMinItemsChangeInRequestValidator();
+  }
+
+  @Bean
+  public SchemaCompareValidator schemaMinLengthChangeInRequestValidator() {
+    return new SchemaMinLengthChangeInRequestValidator();
+  }
+
+  @Bean
+  public SchemaCompareValidator schemaMinPropertiesChangeInRequestValidator() {
+    return new SchemaMinPropertiesChangeInRequestValidator();
+  }
+
+  @Bean
+  public SchemaCompareValidator schemaUniqueItemsChangeInRequestValidator() {
+    return new SchemaUniqueItemsChangeInRequestValidator();
+  }
+
+  @Bean
+  public SchemaCompareValidator schemaRequiredChangeInRequestValidator() {
+    return new SchemaRequiredChangeInRequestValidator();
+  }
+
+  @Bean
+  public SchemaCompareValidator schemaEnumChangeInRequestValidator() {
+    return new SchemaEnumChangeInRequestValidator();
+  }
+
+  @Bean
+  public SchemaCompareValidator schemaNullableChangeInRequestValidator() {
+    return new SchemaNullableChangeInRequestValidator();
+  }
+
+  @Bean
+  public SchemaCompareValidator schemaReadOnlyChangeValidator() {
+    return new SchemaReadOnlyChangeValidator();
+  }
+
+  @Bean
+  public SchemaCompareValidator schemaWriteOnlyChangeValidator() {
+    return new SchemaWriteOnlyChangeValidator();
+  }
+
+  @Bean
+  public SchemaCompareValidator schemaXmlChangeValidator() {
+    return new SchemaXmlChangeValidator();
+  }
+
+  @Bean
+  public SchemaCompareValidator schemaDiscriminatorChangeValidator() {
+    return new SchemaDiscriminatorChangeValidator();
+  }
+
+  @Bean
+  public SchemaCompareValidator schemaMultipleOfChangeInResponseValidator() {
+    return new SchemaMultipleOfChangeInResponseValidator();
+  }
+
+  @Bean
+  public SchemaCompareValidator schemaMaxItemsChangeInResponseValidator() {
+    return new SchemaMaxItemsChangeInResponseValidator();
+  }
+
+  @Bean
+  public SchemaCompareValidator schemaMaxLengthChangeInResponseValidator() {
+    return new SchemaMaxLengthChangeInResponseValidator();
+  }
+
+  @Bean
+  public SchemaCompareValidator schemaMaxPropertiesChangeInResponseValidator() {
+    return new SchemaMaxPropertiesChangeInResponseValidator();
+  }
+
+  @Bean
+  public SchemaCompareValidator schemaMinimumChangeInResponseValidator() {
+    return new SchemaMinimumChangeInResponseValidator();
+  }
+
+  @Bean
+  public SchemaCompareValidator schemaMinItemsChangeInResponseValidator() {
+    return new SchemaMinItemsChangeInResponseValidator();
+  }
+
+  @Bean
+  public SchemaCompareValidator schemaMinLengthChangeInResponseValidator() {
+    return new SchemaMinLengthChangeInResponseValidator();
+  }
+
+  @Bean
+  public SchemaCompareValidator schemaMinPropertiesChangeInResponseValidator() {
+    return new SchemaMinPropertiesChangeInResponseValidator();
+  }
+
+  @Bean
+  public SchemaCompareValidator schemaUniqueItemsChangeInResponseValidator() {
+    return new SchemaUniqueItemsChangeInResponseValidator();
+  }
+
+  @Bean
+  public SchemaCompareValidator schemaRequiredChangeInResponseValidator() {
+    return new SchemaRequiredChangeInResponseValidator();
+  }
+
+  @Bean
+  public SchemaCompareValidator schemaEnumChangeInResponseValidator() {
+    return new SchemaEnumChangeInResponseValidator();
+  }
+
+  @Bean
+  public SchemaCompareValidator schemaNullableChangeInResponseValidator() {
+    return new SchemaNullableChangeInResponseValidator();
+  }
+}
diff --git a/oas-validator/oas-validator-compatibility-spring/src/main/resources/META-INF/spring.factories b/oas-validator/oas-validator-compatibility-spring/src/main/resources/META-INF/spring.factories
new file mode 100755
index 0000000..fb0c853
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility-spring/src/main/resources/META-INF/spring.factories
@@ -0,0 +1,10 @@
+org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
+org.apache.servicecomb.toolkit.oasv.compatibility.config.EncodingDiffValidatorsConfiguration,\
+org.apache.servicecomb.toolkit.oasv.compatibility.config.HeaderDiffValidatorsConfiguration,\
+org.apache.servicecomb.toolkit.oasv.compatibility.config.MediaTypeDiffValidatorsConfiguration,\
+org.apache.servicecomb.toolkit.oasv.compatibility.config.OperationDiffValidatorsConfiguration,\
+org.apache.servicecomb.toolkit.oasv.compatibility.config.ParameterDiffValidatorsConfiguration,\
+org.apache.servicecomb.toolkit.oasv.compatibility.config.PathItemDiffValidatorsConfiguration,\
+org.apache.servicecomb.toolkit.oasv.compatibility.config.RequestBodyDiffValidatorsConfiguration,\
+org.apache.servicecomb.toolkit.oasv.compatibility.config.ResponseDiffValidatorsConfiguration,\
+org.apache.servicecomb.toolkit.oasv.compatibility.config.SchemaDiffValidatorsConfiguration
diff --git a/oas-validator/oas-validator-compatibility/pom.xml b/oas-validator/oas-validator-compatibility/pom.xml
new file mode 100755
index 0000000..cb4bb4d
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/pom.xml
@@ -0,0 +1,81 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one or more
+  ~ contributor license agreements.  See the NOTICE file distributed with
+  ~ this work for additional information regarding copyright ownership.
+  ~ The ASF licenses this file to You under the Apache License, Version 2.0
+  ~ (the "License"); you may not use this file except in compliance with
+  ~ the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing, software
+  ~ distributed under the License is distributed on an "AS IS" BASIS,
+  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  ~ See the License for the specific language governing permissions and
+  ~ limitations under the License.
+  -->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <parent>
+    <groupId>org.apache.servicecomb.toolkit</groupId>
+    <artifactId>oas-validator-parent</artifactId>
+    <version>0.2.0-SNAPSHOT</version>
+    <relativePath>../pom.xml</relativePath>
+  </parent>
+
+  <groupId>org.apache.servicecomb.toolkit</groupId>
+  <artifactId>oas-validator-compatibility</artifactId>
+  <version>${parent.version}</version>
+
+  <properties>
+  </properties>
+
+  <dependencies>
+
+    <dependency>
+      <groupId>org.apache.servicecomb.toolkit</groupId>
+      <artifactId>oas-validator-core</artifactId>
+      <version>${project.version}</version>
+    </dependency>
+
+    <!-- test deps -->
+    <dependency>
+      <groupId>org.apache.servicecomb.toolkit</groupId>
+      <artifactId>oas-validator-test</artifactId>
+      <version>${project.version}</version>
+      <scope>test</scope>
+    </dependency>
+
+    <dependency>
+      <groupId>org.apache.servicecomb.toolkit</groupId>
+      <artifactId>oas-validator-core-spring</artifactId>
+      <version>${project.version}</version>
+      <scope>test</scope>
+    </dependency>
+
+    <dependency>
+      <groupId>org.springframework.boot</groupId>
+      <artifactId>spring-boot-starter-test</artifactId>
+      <scope>test</scope>
+    </dependency>
+  </dependencies>
+
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-surefire-plugin</artifactId>
+      </plugin>
+
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-surefire-report-plugin</artifactId>
+      </plugin>
+    </plugins>
+  </build>
+
+</project>
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/encoding/EncodingAddNotAllowedDiffValidator.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/encoding/EncodingAddNotAllowedDiffValidator.java
new file mode 100755
index 0000000..1db67a1
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/encoding/EncodingAddNotAllowedDiffValidator.java
@@ -0,0 +1,38 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.validators.encoding;
+
+import org.apache.servicecomb.toolkit.oasv.common.OasObjectPropertyLocation;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.*;
+import io.swagger.v3.oas.models.media.Encoding;
+
+import java.util.List;
+
+import static java.util.Collections.singletonList;
+
+public class EncodingAddNotAllowedDiffValidator
+  extends OasObjectDiffValidatorTemplate<Encoding>
+  implements EncodingDiffValidator {
+
+  @Override
+  protected List<OasDiffViolation> validateAdd(OasDiffValidationContext context,
+    OasObjectPropertyLocation rightLocation, Encoding rightOasObject) {
+    return singletonList(OasDiffViolation.onlyRight(rightLocation, DiffViolationMessages.OP_ADD_FORBIDDEN));
+  }
+
+}
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/encoding/EncodingAllowedReservedChangeDiffValidator.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/encoding/EncodingAllowedReservedChangeDiffValidator.java
new file mode 100755
index 0000000..614471b
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/encoding/EncodingAllowedReservedChangeDiffValidator.java
@@ -0,0 +1,58 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.validators.encoding;
+
+import org.apache.servicecomb.toolkit.oasv.common.OasObjectPropertyLocation;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.EncodingDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffValidationContext;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffViolation;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasObjectDiffValidatorTemplate;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.util.ChangeRangeCheckUtils;
+import io.swagger.v3.oas.models.media.Encoding;
+
+import java.util.List;
+
+import static java.util.Collections.emptyList;
+import static java.util.Collections.singletonList;
+import static org.apache.commons.lang3.ObjectUtils.defaultIfNull;
+
+public class EncodingAllowedReservedChangeDiffValidator
+  extends OasObjectDiffValidatorTemplate<Encoding>
+  implements EncodingDiffValidator {
+
+  @Override
+  protected List<OasDiffViolation> validateCompare(OasDiffValidationContext context,
+    OasObjectPropertyLocation leftLocation, Encoding leftOasObject, OasObjectPropertyLocation rightLocation,
+    Encoding rightOasObject) {
+
+    if (ChangeRangeCheckUtils.isNotViolated(
+      defaultIfNull(leftOasObject.getAllowReserved(), Boolean.FALSE),
+      defaultIfNull(rightOasObject.getAllowReserved(), Boolean.FALSE),
+      singletonList(new Object[] { false, true }))) {
+      return emptyList();
+    }
+
+    return singletonList(new OasDiffViolation(
+      leftLocation.property("allowReserved"),
+      rightLocation.property("allowReserved"),
+      "ไป…ๅ…่ฎธfalse->true็š„ไฟฎๆ”น"
+    ));
+
+  }
+
+}
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/encoding/EncodingContentTypeNotSameDiffValidator.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/encoding/EncodingContentTypeNotSameDiffValidator.java
new file mode 100755
index 0000000..932981d
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/encoding/EncodingContentTypeNotSameDiffValidator.java
@@ -0,0 +1,51 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.validators.encoding;
+
+import org.apache.servicecomb.toolkit.oasv.common.OasObjectPropertyLocation;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.*;
+import io.swagger.v3.oas.models.media.Encoding;
+
+import java.util.List;
+import java.util.Objects;
+
+import static java.util.Collections.emptyList;
+import static java.util.Collections.singletonList;
+
+public class EncodingContentTypeNotSameDiffValidator
+  extends OasObjectDiffValidatorTemplate<Encoding>
+  implements EncodingDiffValidator {
+
+  @Override
+  protected List<OasDiffViolation> validateCompare(OasDiffValidationContext context,
+    OasObjectPropertyLocation leftLocation, Encoding leftOasObject, OasObjectPropertyLocation rightLocation,
+    Encoding rightOasObject) {
+
+    if (Objects.equals(leftOasObject.getContentType(), rightOasObject.getContentType())) {
+      return emptyList();
+    }
+
+    return singletonList(new OasDiffViolation(
+      leftLocation.property("contentType"),
+      rightLocation.property("contentType"),
+      DiffViolationMessages.NEW_NOT_EQ_OLD
+    ));
+
+  }
+
+}
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/encoding/EncodingDelNotAllowedDiffValidator.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/encoding/EncodingDelNotAllowedDiffValidator.java
new file mode 100755
index 0000000..1933510
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/encoding/EncodingDelNotAllowedDiffValidator.java
@@ -0,0 +1,38 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.validators.encoding;
+
+import org.apache.servicecomb.toolkit.oasv.common.OasObjectPropertyLocation;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.*;
+import io.swagger.v3.oas.models.media.Encoding;
+
+import java.util.List;
+
+import static java.util.Collections.singletonList;
+
+public class EncodingDelNotAllowedDiffValidator
+  extends OasObjectDiffValidatorTemplate<Encoding>
+  implements EncodingDiffValidator {
+
+  @Override
+  protected List<OasDiffViolation> validateDel(OasDiffValidationContext context, OasObjectPropertyLocation leftLocation,
+    Encoding leftOasObject) {
+    return singletonList(OasDiffViolation.onlyLeft(leftLocation, DiffViolationMessages.OP_DEL_FORBIDDEN));
+  }
+
+}
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/encoding/EncodingExplodeNotSameDiffValidator.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/encoding/EncodingExplodeNotSameDiffValidator.java
new file mode 100755
index 0000000..7b97226
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/encoding/EncodingExplodeNotSameDiffValidator.java
@@ -0,0 +1,51 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.validators.encoding;
+
+import org.apache.servicecomb.toolkit.oasv.common.OasObjectPropertyLocation;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.*;
+import io.swagger.v3.oas.models.media.Encoding;
+
+import java.util.List;
+import java.util.Objects;
+
+import static java.util.Collections.emptyList;
+import static java.util.Collections.singletonList;
+
+public class EncodingExplodeNotSameDiffValidator
+  extends OasObjectDiffValidatorTemplate<Encoding>
+  implements EncodingDiffValidator {
+
+  @Override
+  protected List<OasDiffViolation> validateCompare(OasDiffValidationContext context,
+    OasObjectPropertyLocation leftLocation, Encoding leftOasObject, OasObjectPropertyLocation rightLocation,
+    Encoding rightOasObject) {
+
+    if (Objects.equals(leftOasObject.getExplode(), rightOasObject.getExplode())) {
+      return emptyList();
+    }
+
+    return singletonList(new OasDiffViolation(
+      leftLocation.property("explode"),
+      rightLocation.property("explode"),
+      DiffViolationMessages.NEW_NOT_EQ_OLD
+    ));
+
+  }
+
+}
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/encoding/EncodingStyleNotSameDiffValidator.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/encoding/EncodingStyleNotSameDiffValidator.java
new file mode 100755
index 0000000..760290b
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/encoding/EncodingStyleNotSameDiffValidator.java
@@ -0,0 +1,52 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.validators.encoding;
+
+import org.apache.servicecomb.toolkit.oasv.common.OasObjectPropertyLocation;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.*;
+import io.swagger.v3.oas.models.media.Encoding;
+
+import java.util.List;
+import java.util.Objects;
+
+import static java.util.Collections.emptyList;
+import static java.util.Collections.singletonList;
+
+public class EncodingStyleNotSameDiffValidator
+  extends OasObjectDiffValidatorTemplate<Encoding>
+  implements EncodingDiffValidator {
+
+  @Override
+  protected List<OasDiffViolation> validateCompare(OasDiffValidationContext context,
+    OasObjectPropertyLocation leftLocation, Encoding leftOasObject, OasObjectPropertyLocation rightLocation,
+    Encoding rightOasObject) {
+
+    if (Objects.equals(leftOasObject.getStyle(), rightOasObject.getStyle())) {
+      return emptyList();
+    }
+
+    return singletonList(new OasDiffViolation(
+      leftLocation.property("style"),
+      rightLocation.property("style"),
+      DiffViolationMessages.NEW_NOT_EQ_OLD
+    ));
+
+  }
+
+}
+
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/header/HeaderAddInRequestBodyNotAllowedDiffValidator.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/header/HeaderAddInRequestBodyNotAllowedDiffValidator.java
new file mode 100755
index 0000000..7a8c4dd
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/header/HeaderAddInRequestBodyNotAllowedDiffValidator.java
@@ -0,0 +1,45 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.validators.header;
+
+import org.apache.servicecomb.toolkit.oasv.common.OasObjectPropertyLocation;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.*;
+import io.swagger.v3.oas.models.headers.Header;
+
+import java.util.List;
+
+import static org.apache.servicecomb.toolkit.oasv.diffvalidation.util.OasDiffValidationContextUtils.isInRequestBody;
+import static java.util.Collections.emptyList;
+import static java.util.Collections.singletonList;
+
+/**
+ * ไธๅ…่ฎธๅœจrequestBody.content.'mediaType'.encoding.'encoding'.headers ไธ‹ๆทปๅŠ Header Object
+ */
+public class HeaderAddInRequestBodyNotAllowedDiffValidator extends OasObjectDiffValidatorTemplate<Header>
+  implements HeaderDiffValidator {
+
+  @Override
+  protected List<OasDiffViolation> validateAdd(OasDiffValidationContext context,
+    OasObjectPropertyLocation rightLocation, Header rightOasObject) {
+    if (!isInRequestBody(context)) {
+      return emptyList();
+    }
+    return singletonList(OasDiffViolation.onlyRight(rightLocation, DiffViolationMessages.OP_ADD_FORBIDDEN));
+  }
+
+}
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/header/HeaderDelInResponseNotAllowedDiffValidator.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/header/HeaderDelInResponseNotAllowedDiffValidator.java
new file mode 100755
index 0000000..8232d22
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/header/HeaderDelInResponseNotAllowedDiffValidator.java
@@ -0,0 +1,45 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.validators.header;
+
+import org.apache.servicecomb.toolkit.oasv.common.OasObjectPropertyLocation;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.*;
+import io.swagger.v3.oas.models.headers.Header;
+
+import java.util.List;
+
+import static org.apache.servicecomb.toolkit.oasv.diffvalidation.util.OasDiffValidationContextUtils.isInResponse;
+import static java.util.Collections.emptyList;
+import static java.util.Collections.singletonList;
+
+/**
+ * ไธๅ…่ฎธๅœจresponses.'response'.headers.headers ไธ‹ๅˆ ้™คHeader Object
+ */
+public class HeaderDelInResponseNotAllowedDiffValidator extends OasObjectDiffValidatorTemplate<Header>
+  implements HeaderDiffValidator {
+
+  @Override
+  protected List<OasDiffViolation> validateDel(OasDiffValidationContext context,
+    OasObjectPropertyLocation rightLocation, Header rightOasObject) {
+    if (!isInResponse(context)) {
+      return emptyList();
+    }
+    return singletonList(OasDiffViolation.onlyLeft(rightLocation, DiffViolationMessages.OP_DEL_FORBIDDEN));
+  }
+
+}
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/mediatype/MediaTypeAddInParameterNotAllowedDiffValidator.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/mediatype/MediaTypeAddInParameterNotAllowedDiffValidator.java
new file mode 100755
index 0000000..877694f
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/mediatype/MediaTypeAddInParameterNotAllowedDiffValidator.java
@@ -0,0 +1,46 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.validators.mediatype;
+
+import org.apache.servicecomb.toolkit.oasv.common.OasObjectPropertyLocation;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.*;
+import io.swagger.v3.oas.models.media.MediaType;
+
+import java.util.List;
+
+import static org.apache.servicecomb.toolkit.oasv.diffvalidation.util.OasDiffValidationContextUtils.isInParameter;
+import static java.util.Collections.emptyList;
+import static java.util.Collections.singletonList;
+
+/**
+ * ไธๅ…่ฎธๅœจParameter.contentไธ‹ๆทปๅŠ MediaType
+ */
+public class MediaTypeAddInParameterNotAllowedDiffValidator
+  extends OasObjectDiffValidatorTemplate<MediaType>
+  implements MediaTypeDiffValidator {
+
+  @Override
+  protected List<OasDiffViolation> validateAdd(OasDiffValidationContext context,
+    OasObjectPropertyLocation rightLocation, MediaType rightOasObject) {
+    if (!isInParameter(context)) {
+      return emptyList();
+    }
+    return singletonList(OasDiffViolation.onlyRight(rightLocation, DiffViolationMessages.OP_ADD_FORBIDDEN));
+  }
+
+}
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/mediatype/MediaTypeDelInParameterNotAllowedDiffValidator.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/mediatype/MediaTypeDelInParameterNotAllowedDiffValidator.java
new file mode 100755
index 0000000..eca4ac3
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/mediatype/MediaTypeDelInParameterNotAllowedDiffValidator.java
@@ -0,0 +1,46 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.validators.mediatype;
+
+import org.apache.servicecomb.toolkit.oasv.common.OasObjectPropertyLocation;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.*;
+import io.swagger.v3.oas.models.media.MediaType;
+
+import java.util.List;
+
+import static org.apache.servicecomb.toolkit.oasv.diffvalidation.util.OasDiffValidationContextUtils.isInParameter;
+import static java.util.Collections.emptyList;
+import static java.util.Collections.singletonList;
+
+/**
+ * ไธๅ…่ฎธๅœจParameter.contentไธ‹ๅˆ ้™คMediaType
+ */
+public class MediaTypeDelInParameterNotAllowedDiffValidator
+  extends OasObjectDiffValidatorTemplate<MediaType>
+  implements MediaTypeDiffValidator {
+
+  @Override
+  protected List<OasDiffViolation> validateDel(OasDiffValidationContext context, OasObjectPropertyLocation leftLocation,
+    MediaType leftOasObject) {
+    if (!isInParameter(context)) {
+      return emptyList();
+    }
+    return singletonList(OasDiffViolation.onlyLeft(leftLocation, DiffViolationMessages.OP_DEL_FORBIDDEN));
+  }
+
+}
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/mediatype/MediaTypeDelInRequestBodyNotAllowedDiffValidator.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/mediatype/MediaTypeDelInRequestBodyNotAllowedDiffValidator.java
new file mode 100755
index 0000000..6a50f83
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/mediatype/MediaTypeDelInRequestBodyNotAllowedDiffValidator.java
@@ -0,0 +1,46 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.validators.mediatype;
+
+import org.apache.servicecomb.toolkit.oasv.common.OasObjectPropertyLocation;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.*;
+import io.swagger.v3.oas.models.media.MediaType;
+
+import java.util.List;
+
+import static org.apache.servicecomb.toolkit.oasv.diffvalidation.util.OasDiffValidationContextUtils.isInRequestBody;
+import static java.util.Collections.emptyList;
+import static java.util.Collections.singletonList;
+
+/**
+ * ไธๅ…่ฎธๅœจRequestBody.contentไธ‹ๅˆ ้™คMediaType
+ */
+public class MediaTypeDelInRequestBodyNotAllowedDiffValidator
+  extends OasObjectDiffValidatorTemplate<MediaType>
+  implements MediaTypeDiffValidator {
+
+  @Override
+  protected List<OasDiffViolation> validateDel(OasDiffValidationContext context, OasObjectPropertyLocation leftLocation,
+    MediaType leftOasObject) {
+    if (!isInRequestBody(context)) {
+      return emptyList();
+    }
+    return singletonList(OasDiffViolation.onlyLeft(leftLocation, DiffViolationMessages.OP_DEL_FORBIDDEN));
+  }
+
+}
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/mediatype/MediaTypeDelInResponseNotAllowedDiffValidator.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/mediatype/MediaTypeDelInResponseNotAllowedDiffValidator.java
new file mode 100755
index 0000000..243a60b
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/mediatype/MediaTypeDelInResponseNotAllowedDiffValidator.java
@@ -0,0 +1,46 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.validators.mediatype;
+
+import org.apache.servicecomb.toolkit.oasv.common.OasObjectPropertyLocation;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.*;
+import io.swagger.v3.oas.models.media.MediaType;
+
+import java.util.List;
+
+import static org.apache.servicecomb.toolkit.oasv.diffvalidation.util.OasDiffValidationContextUtils.isInResponse;
+import static java.util.Collections.emptyList;
+import static java.util.Collections.singletonList;
+
+/**
+ * ไธๅ…่ฎธๅœจresponses.'response'.content.'mediaType' ไธ‹ๅˆ ้™คHeader Object
+ */
+public class MediaTypeDelInResponseNotAllowedDiffValidator
+  extends OasObjectDiffValidatorTemplate<MediaType>
+  implements MediaTypeDiffValidator {
+
+  @Override
+  protected List<OasDiffViolation> validateDel(OasDiffValidationContext context, OasObjectPropertyLocation leftLocation,
+    MediaType leftOasObject) {
+    if (!isInResponse(context)) {
+      return emptyList();
+    }
+    return singletonList(OasDiffViolation.onlyLeft(leftLocation, DiffViolationMessages.OP_DEL_FORBIDDEN));
+  }
+
+}
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/operation/OperationDeleteNotAllowedDiffValidator.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/operation/OperationDeleteNotAllowedDiffValidator.java
new file mode 100755
index 0000000..1544dc3
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/operation/OperationDeleteNotAllowedDiffValidator.java
@@ -0,0 +1,38 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.validators.operation;
+
+import org.apache.servicecomb.toolkit.oasv.common.OasObjectPropertyLocation;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.*;
+import io.swagger.v3.oas.models.Operation;
+
+import java.util.List;
+
+import static java.util.Collections.singletonList;
+
+public class OperationDeleteNotAllowedDiffValidator
+  extends OasObjectDiffValidatorTemplate<Operation>
+  implements OperationDiffValidator {
+
+  @Override
+  protected List<OasDiffViolation> validateDel(OasDiffValidationContext context, OasObjectPropertyLocation leftLocation,
+    Operation leftOasObject) {
+
+    return singletonList(OasDiffViolation.onlyLeft(leftLocation, DiffViolationMessages.OP_DEL_FORBIDDEN));
+  }
+}
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/operation/OperationIdNotSameDiffValidator.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/operation/OperationIdNotSameDiffValidator.java
new file mode 100755
index 0000000..7aa5b34
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/operation/OperationIdNotSameDiffValidator.java
@@ -0,0 +1,46 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.validators.operation;
+
+import org.apache.servicecomb.toolkit.oasv.common.OasObjectPropertyLocation;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.*;
+import io.swagger.v3.oas.models.Operation;
+
+import java.util.List;
+
+import static java.util.Collections.emptyList;
+import static java.util.Collections.singletonList;
+
+public class OperationIdNotSameDiffValidator
+  extends OasObjectDiffValidatorTemplate<Operation>
+  implements OperationDiffValidator {
+
+  @Override
+  protected List<OasDiffViolation> validateCompare(OasDiffValidationContext context,
+    OasObjectPropertyLocation leftLocation, Operation leftOasObject, OasObjectPropertyLocation rightLocation,
+    Operation rightOasObject) {
+    if (leftOasObject.getOperationId().equalsIgnoreCase(rightOasObject.getOperationId())) {
+      return emptyList();
+    }
+    return singletonList(new OasDiffViolation(
+      leftLocation.property("operationId"),
+      rightLocation.property("operationId"),
+      DiffViolationMessages.NEW_NOT_EQ_OLD));
+
+  }
+}
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/parameter/ParameterAddDiffValidator.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/parameter/ParameterAddDiffValidator.java
new file mode 100755
index 0000000..e5ee7e2
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/parameter/ParameterAddDiffValidator.java
@@ -0,0 +1,55 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.validators.parameter;
+
+import org.apache.servicecomb.toolkit.oasv.common.OasObjectPropertyLocation;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffValidationContext;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffViolation;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasObjectDiffValidatorTemplate;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.ParameterDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.util.ParameterUtils;
+import io.swagger.v3.oas.models.parameters.Parameter;
+
+import java.util.List;
+
+import static java.util.Collections.emptyList;
+import static java.util.Collections.singletonList;
+
+public class ParameterAddDiffValidator
+  extends OasObjectDiffValidatorTemplate<Parameter>
+  implements ParameterDiffValidator {
+
+  @Override
+  protected List<OasDiffViolation> validateAdd(OasDiffValidationContext context,
+    OasObjectPropertyLocation rightLocation, Parameter rightOasObject) {
+
+    if (Boolean.FALSE.equals(rightOasObject.getRequired())) {
+      return emptyList();
+    }
+
+    String message = new StringBuilder()
+      .append(ParameterUtils.getKeyString(rightOasObject))
+      .append(':')
+      .append("ไป…ๅ…่ฎธๆ–ฐๅขžrequired=false็š„parameter")
+      .toString()
+      ;
+
+    return singletonList(OasDiffViolation.onlyRight(rightLocation.property("required"), message));
+
+  }
+}
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/parameter/ParameterAllowEmptyValueChangeDiffValidator.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/parameter/ParameterAllowEmptyValueChangeDiffValidator.java
new file mode 100755
index 0000000..8ac7d39
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/parameter/ParameterAllowEmptyValueChangeDiffValidator.java
@@ -0,0 +1,69 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.validators.parameter;
+
+import org.apache.servicecomb.toolkit.oasv.common.OasObjectPropertyLocation;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffValidationContext;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffViolation;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasObjectDiffValidatorTemplate;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.ParameterDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.util.ChangeRangeCheckUtils;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.util.ParameterUtils;
+import io.swagger.v3.oas.models.parameters.Parameter;
+
+import java.util.List;
+
+import static java.util.Collections.emptyList;
+import static java.util.Collections.singletonList;
+import static org.apache.commons.lang3.ObjectUtils.defaultIfNull;
+
+/**
+ * ไป…ๅ…่ฎธfalse->true็š„ไฟฎๆ”น
+ */
+public class ParameterAllowEmptyValueChangeDiffValidator
+  extends OasObjectDiffValidatorTemplate<Parameter>
+  implements ParameterDiffValidator {
+
+  @Override
+  protected List<OasDiffViolation> validateCompare(OasDiffValidationContext context,
+    OasObjectPropertyLocation leftLocation, Parameter leftOasObject, OasObjectPropertyLocation rightLocation,
+    Parameter rightOasObject) {
+
+
+    if (ChangeRangeCheckUtils.isNotViolated(
+      defaultIfNull(leftOasObject.getAllowEmptyValue(), Boolean.FALSE),
+      defaultIfNull(rightOasObject.getAllowEmptyValue(), Boolean.FALSE),
+      singletonList(new Object[] { false, true }))) {
+      return emptyList();
+    }
+
+    String message = new StringBuilder()
+      .append(ParameterUtils.getKeyString(rightOasObject))
+      .append(':')
+      .append("ไป…ๅ…่ฎธfalse->true็š„ไฟฎๆ”น")
+      .toString();
+
+    return singletonList(new OasDiffViolation(
+      leftLocation.property("allowEmptyValue"),
+      rightLocation.property("allowEmptyValue"),
+      message
+    ));
+
+  }
+
+}
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/parameter/ParameterAllowReservedChangeDiffValidator.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/parameter/ParameterAllowReservedChangeDiffValidator.java
new file mode 100755
index 0000000..9cca97a
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/parameter/ParameterAllowReservedChangeDiffValidator.java
@@ -0,0 +1,68 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.validators.parameter;
+
+import org.apache.servicecomb.toolkit.oasv.common.OasObjectPropertyLocation;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffValidationContext;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffViolation;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasObjectDiffValidatorTemplate;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.ParameterDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.util.ChangeRangeCheckUtils;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.util.ParameterUtils;
+import io.swagger.v3.oas.models.parameters.Parameter;
+
+import java.util.List;
+
+import static java.util.Collections.emptyList;
+import static java.util.Collections.singletonList;
+import static org.apache.commons.lang3.ObjectUtils.defaultIfNull;
+
+/**
+ * ไป…ๅ…่ฎธfalse->true็š„ไฟฎๆ”น
+ */
+public class ParameterAllowReservedChangeDiffValidator
+  extends OasObjectDiffValidatorTemplate<Parameter>
+  implements ParameterDiffValidator {
+
+  @Override
+  protected List<OasDiffViolation> validateCompare(OasDiffValidationContext context,
+    OasObjectPropertyLocation leftLocation, Parameter leftOasObject, OasObjectPropertyLocation rightLocation,
+    Parameter rightOasObject) {
+
+    if (ChangeRangeCheckUtils.isNotViolated(
+      defaultIfNull(leftOasObject.getAllowReserved(), Boolean.FALSE),
+      defaultIfNull(rightOasObject.getAllowReserved(), Boolean.FALSE),
+      singletonList(new Object[] { false, true }))) {
+      return emptyList();
+    }
+
+    String message = new StringBuilder()
+      .append(ParameterUtils.getKeyString(rightOasObject))
+      .append(':')
+      .append("ไป…ๅ…่ฎธfalse->true็š„ไฟฎๆ”น")
+      .toString();
+
+    return singletonList(new OasDiffViolation(
+      leftLocation.property("allowReserved"),
+      rightLocation.property("allowReserved"),
+      message
+    ));
+
+  }
+
+}
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/parameter/ParameterExplodeNotSameDiffValidator.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/parameter/ParameterExplodeNotSameDiffValidator.java
new file mode 100755
index 0000000..1089b22
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/parameter/ParameterExplodeNotSameDiffValidator.java
@@ -0,0 +1,58 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.validators.parameter;
+
+import org.apache.servicecomb.toolkit.oasv.common.OasObjectPropertyLocation;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.*;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.util.ParameterUtils;
+import io.swagger.v3.oas.models.parameters.Parameter;
+
+import java.util.List;
+import java.util.Objects;
+
+import static java.util.Collections.emptyList;
+import static java.util.Collections.singletonList;
+
+public class ParameterExplodeNotSameDiffValidator
+  extends OasObjectDiffValidatorTemplate<Parameter>
+  implements ParameterDiffValidator {
+
+  @Override
+  protected List<OasDiffViolation> validateCompare(OasDiffValidationContext context,
+    OasObjectPropertyLocation leftLocation, Parameter leftOasObject, OasObjectPropertyLocation rightLocation,
+    Parameter rightOasObject) {
+
+    if (Objects.equals(leftOasObject.getExplode(), rightOasObject.getExplode())) {
+      return emptyList();
+    }
+
+    String message = new StringBuilder()
+      .append(ParameterUtils.getKeyString(rightOasObject))
+      .append(':')
+      .append(DiffViolationMessages.NEW_NOT_EQ_OLD)
+      .toString();
+
+    return singletonList(new OasDiffViolation(
+      leftLocation.property("explode"),
+      rightLocation.property("explode"),
+      message
+    ));
+
+  }
+
+}
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/parameter/ParameterRequiredChangeDiffValidator.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/parameter/ParameterRequiredChangeDiffValidator.java
new file mode 100755
index 0000000..f629812
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/parameter/ParameterRequiredChangeDiffValidator.java
@@ -0,0 +1,68 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.validators.parameter;
+
+import org.apache.servicecomb.toolkit.oasv.common.OasObjectPropertyLocation;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffValidationContext;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffViolation;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasObjectDiffValidatorTemplate;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.ParameterDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.util.ChangeRangeCheckUtils;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.util.ParameterUtils;
+import io.swagger.v3.oas.models.parameters.Parameter;
+
+import java.util.List;
+
+import static java.util.Collections.emptyList;
+import static java.util.Collections.singletonList;
+import static org.apache.commons.lang3.ObjectUtils.defaultIfNull;
+
+/**
+ * ไป…ๅ…่ฎธtrue->false็š„ไฟฎๆ”น
+ */
+public class ParameterRequiredChangeDiffValidator
+  extends OasObjectDiffValidatorTemplate<Parameter>
+  implements ParameterDiffValidator {
+
+  @Override
+  protected List<OasDiffViolation> validateCompare(OasDiffValidationContext context,
+    OasObjectPropertyLocation leftLocation, Parameter leftOasObject, OasObjectPropertyLocation rightLocation,
+    Parameter rightOasObject) {
+
+    if (ChangeRangeCheckUtils.isNotViolated(
+      defaultIfNull(leftOasObject.getRequired(), Boolean.FALSE),
+      defaultIfNull(rightOasObject.getRequired(), Boolean.FALSE),
+      singletonList(new Object[] { true, false }))) {
+      return emptyList();
+    }
+
+    String message = new StringBuilder()
+      .append(ParameterUtils.getKeyString(rightOasObject))
+      .append(':')
+      .append("ไป…ๅ…่ฎธtrue->false็š„ไฟฎๆ”น")
+      .toString();
+
+    return singletonList(new OasDiffViolation(
+      leftLocation.property("required"),
+      rightLocation.property("required"),
+      message
+    ));
+
+  }
+
+}
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/parameter/ParameterStyleNotSameDiffValidator.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/parameter/ParameterStyleNotSameDiffValidator.java
new file mode 100755
index 0000000..746babb
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/parameter/ParameterStyleNotSameDiffValidator.java
@@ -0,0 +1,58 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.validators.parameter;
+
+import org.apache.servicecomb.toolkit.oasv.common.OasObjectPropertyLocation;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.*;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.util.ParameterUtils;
+import io.swagger.v3.oas.models.parameters.Parameter;
+
+import java.util.List;
+import java.util.Objects;
+
+import static java.util.Collections.emptyList;
+import static java.util.Collections.singletonList;
+
+public class ParameterStyleNotSameDiffValidator
+  extends OasObjectDiffValidatorTemplate<Parameter>
+  implements ParameterDiffValidator {
+
+  @Override
+  protected List<OasDiffViolation> validateCompare(OasDiffValidationContext context,
+    OasObjectPropertyLocation leftLocation, Parameter leftOasObject, OasObjectPropertyLocation rightLocation,
+    Parameter rightOasObject) {
+
+    if (Objects.equals(leftOasObject.getStyle(), rightOasObject.getStyle())) {
+      return emptyList();
+    }
+
+    String message = new StringBuilder()
+      .append(ParameterUtils.getKeyString(rightOasObject))
+      .append(':')
+      .append(DiffViolationMessages.NEW_NOT_EQ_OLD)
+      .toString();
+
+    return singletonList(new OasDiffViolation(
+      leftLocation.property("style"),
+      rightLocation.property("style"),
+      message
+    ));
+
+  }
+
+}
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/pathitem/PathItemDeleteNotAllowedDiffValidator.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/pathitem/PathItemDeleteNotAllowedDiffValidator.java
new file mode 100755
index 0000000..7f7914b
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/pathitem/PathItemDeleteNotAllowedDiffValidator.java
@@ -0,0 +1,39 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.validators.pathitem;
+
+import org.apache.servicecomb.toolkit.oasv.common.OasObjectPropertyLocation;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.*;
+import io.swagger.v3.oas.models.PathItem;
+
+import java.util.List;
+
+import static java.util.Collections.singletonList;
+
+public class PathItemDeleteNotAllowedDiffValidator
+  extends OasObjectDiffValidatorTemplate<PathItem>
+  implements PathItemDiffValidator {
+
+  @Override
+  protected List<OasDiffViolation> validateDel(OasDiffValidationContext context, OasObjectPropertyLocation leftLocation,
+    PathItem leftOasObject) {
+
+    return singletonList(OasDiffViolation.onlyLeft(leftLocation, DiffViolationMessages.OP_DEL_FORBIDDEN));
+  }
+
+}
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/requestbody/RequestBodyRequiredChangeDiffValidator.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/requestbody/RequestBodyRequiredChangeDiffValidator.java
new file mode 100755
index 0000000..76acb03
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/requestbody/RequestBodyRequiredChangeDiffValidator.java
@@ -0,0 +1,61 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.validators.requestbody;
+
+import org.apache.servicecomb.toolkit.oasv.common.OasObjectPropertyLocation;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffValidationContext;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffViolation;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasObjectDiffValidatorTemplate;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.RequestBodyDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.util.ChangeRangeCheckUtils;
+import io.swagger.v3.oas.models.parameters.RequestBody;
+import org.apache.commons.lang3.ObjectUtils;
+
+import java.util.List;
+
+import static java.util.Collections.emptyList;
+import static java.util.Collections.singletonList;
+
+/**
+ * ไป…ๅ…่ฎธtrue->false็š„ไฟฎๆ”น
+ */
+public class RequestBodyRequiredChangeDiffValidator
+  extends OasObjectDiffValidatorTemplate<RequestBody>
+  implements RequestBodyDiffValidator {
+
+  @Override
+  protected List<OasDiffViolation> validateCompare(OasDiffValidationContext context,
+    OasObjectPropertyLocation leftLocation, RequestBody leftOasObject, OasObjectPropertyLocation rightLocation,
+    RequestBody rightOasObject) {
+
+    if (ChangeRangeCheckUtils.isNotViolated(
+      ObjectUtils.defaultIfNull(leftOasObject.getRequired(), Boolean.FALSE),
+      ObjectUtils.defaultIfNull(rightOasObject.getRequired(), Boolean.FALSE),
+      singletonList(new Object[] { true, false }))) {
+      return emptyList();
+    }
+
+    return singletonList(new OasDiffViolation(
+      leftLocation.property("required"),
+      rightLocation.property("required"),
+      "ไป…ๅ…่ฎธtrue->false็š„ไฟฎๆ”น"
+    ));
+
+  }
+
+}
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/response/ResponseAddNotAllowedDiffValidator.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/response/ResponseAddNotAllowedDiffValidator.java
new file mode 100755
index 0000000..dacb282
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/response/ResponseAddNotAllowedDiffValidator.java
@@ -0,0 +1,41 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.validators.response;
+
+import org.apache.servicecomb.toolkit.oasv.common.OasObjectPropertyLocation;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.*;
+import io.swagger.v3.oas.models.responses.ApiResponse;
+
+import java.util.List;
+
+import static org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffViolation.onlyRight;
+import static java.util.Collections.singletonList;
+
+/**
+ * ไธๅ…่ฎธๅœจresponses.'http status code'.ไธ‹ๆ–ฐๅขž Response Object
+ */
+public class ResponseAddNotAllowedDiffValidator
+  extends OasObjectDiffValidatorTemplate<ApiResponse>
+  implements ResponseDiffValidator {
+
+  @Override
+  protected List<OasDiffViolation> validateAdd(OasDiffValidationContext context,
+    OasObjectPropertyLocation rightLocation, ApiResponse rightOasObject) {
+    return singletonList(onlyRight(rightLocation, DiffViolationMessages.OP_ADD_FORBIDDEN));
+  }
+}
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/SchemaDiscriminatorChangeValidator.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/SchemaDiscriminatorChangeValidator.java
new file mode 100755
index 0000000..2096b2b
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/SchemaDiscriminatorChangeValidator.java
@@ -0,0 +1,52 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.DiffViolationMessages;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffValidationContext;
+import io.swagger.v3.oas.models.media.Discriminator;
+import io.swagger.v3.oas.models.media.Schema;
+
+public class SchemaDiscriminatorChangeValidator extends SchemaPropertyChangeValidator<Discriminator> {
+
+  @Override
+  protected Discriminator getProperty(Schema schema) {
+    return schema.getDiscriminator();
+  }
+
+  @Override
+  protected String getPropertyName() {
+    return "discriminator";
+  }
+
+  @Override
+  protected boolean isAllowed(Discriminator leftProperty, Discriminator rightProperty) {
+    return leftProperty.equals(rightProperty);
+  }
+
+  @Override
+  protected String getMessage(Discriminator leftProperty, Discriminator rightProperty) {
+    return DiffViolationMessages.NEW_NOT_EQ_OLD;
+  }
+
+  @Override
+  protected boolean needValidate(OasDiffValidationContext context) {
+    return true;
+  }
+
+}
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/SchemaPropertyChangeValidator.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/SchemaPropertyChangeValidator.java
new file mode 100755
index 0000000..c225466
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/SchemaPropertyChangeValidator.java
@@ -0,0 +1,84 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema;
+
+import org.apache.servicecomb.toolkit.oasv.common.OasObjectPropertyLocation;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffValidationContext;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffViolation;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.SchemaCompareValidator;
+import io.swagger.v3.oas.models.media.Schema;
+
+import java.util.List;
+import java.util.Objects;
+
+import static java.util.Collections.emptyList;
+import static java.util.Collections.singletonList;
+
+public abstract class SchemaPropertyChangeValidator<T> implements SchemaCompareValidator {
+
+  @Override
+  public final List<OasDiffViolation> validate(OasDiffValidationContext context, OasObjectPropertyLocation leftLocation,
+    Schema leftOasObject, OasObjectPropertyLocation rightLocation, Schema rightOasObject) {
+
+    if (!needValidate(context)) {
+      return emptyList();
+    }
+
+    T leftNumber = getProperty(leftOasObject);
+    T rightNumber = getProperty(rightOasObject);
+
+    if (Objects.equals(leftNumber, rightNumber)) {
+      return emptyList();
+    }
+
+    String propertyName = getPropertyName();
+
+    if (leftNumber == null || rightNumber == null) {
+      return singletonList(new OasDiffViolation(
+          leftLocation.property(propertyName),
+          rightLocation.property(propertyName),
+          getMessage(leftNumber, rightNumber)
+        )
+      );
+    }
+
+    if (!isAllowed(leftNumber, rightNumber)) {
+      return singletonList(new OasDiffViolation(
+          leftLocation.property(propertyName),
+          rightLocation.property(propertyName),
+          getMessage(leftNumber, rightNumber)
+        )
+      );
+    }
+
+    return emptyList();
+
+  }
+
+
+  protected abstract T getProperty(Schema schema);
+
+  protected abstract String getPropertyName();
+
+  protected abstract String getMessage(T leftProperty, T rightProperty);
+
+  protected abstract boolean isAllowed(T leftProperty, T rightProperty);
+
+  protected abstract boolean needValidate(OasDiffValidationContext context);
+
+}
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/SchemaReadOnlyChangeValidator.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/SchemaReadOnlyChangeValidator.java
new file mode 100755
index 0000000..5d57f94
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/SchemaReadOnlyChangeValidator.java
@@ -0,0 +1,52 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.DiffViolationMessages;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffValidationContext;
+import io.swagger.v3.oas.models.media.Schema;
+import org.apache.commons.lang3.ObjectUtils;
+
+public class SchemaReadOnlyChangeValidator extends SchemaPropertyChangeValidator<Boolean> {
+
+  @Override
+  protected Boolean getProperty(Schema schema) {
+    return ObjectUtils.defaultIfNull(schema.getReadOnly(), Boolean.FALSE);
+  }
+
+  @Override
+  protected String getPropertyName() {
+    return "readOnly";
+  }
+
+  @Override
+  protected boolean isAllowed(Boolean leftProperty, Boolean rightProperty) {
+    return leftProperty.equals(rightProperty);
+  }
+
+  @Override
+  protected String getMessage(Boolean leftProperty, Boolean rightProperty) {
+    return DiffViolationMessages.NEW_NOT_EQ_OLD;
+  }
+
+  @Override
+  protected boolean needValidate(OasDiffValidationContext context) {
+    return true;
+  }
+
+}
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/SchemaTypeFormatChangeValidator.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/SchemaTypeFormatChangeValidator.java
new file mode 100755
index 0000000..e302456
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/SchemaTypeFormatChangeValidator.java
@@ -0,0 +1,72 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema;
+
+import org.apache.servicecomb.toolkit.oasv.common.OasObjectPropertyLocation;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffValidationContext;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffViolation;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.SchemaCompareValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.util.ChangeRangeCheckUtils;
+import io.swagger.v3.oas.models.media.Schema;
+
+import java.util.List;
+
+import static java.util.Collections.emptyList;
+import static java.util.Collections.singletonList;
+
+public abstract class SchemaTypeFormatChangeValidator implements SchemaCompareValidator {
+
+  @Override
+  public final List<OasDiffViolation> validate(OasDiffValidationContext context, OasObjectPropertyLocation leftLocation,
+    Schema leftOasObject, OasObjectPropertyLocation rightLocation, Schema rightOasObject) {
+
+    if (!needValidate(context)) {
+      return emptyList();
+    }
+
+    TypeFormat leftTypeFormat = new TypeFormat(leftOasObject);
+    TypeFormat rightTypeFormat = new TypeFormat(rightOasObject);
+
+    if (ChangeRangeCheckUtils.isNotViolated(leftTypeFormat, rightTypeFormat, getAllowedChangedList())) {
+      return emptyList();
+    }
+
+    StringBuilder message = new StringBuilder("ไธๅ…่ฎธ");
+    message
+      .append("(type=")
+      .append(leftTypeFormat.getType())
+      .append(",format=")
+      .append(leftTypeFormat.getFormat())
+      .append(')')
+      .append("->")
+      .append("(type=")
+      .append(rightTypeFormat.getType())
+      .append(",format=")
+      .append(rightTypeFormat.getFormat())
+      .append(')')
+      .append("็š„ไฟฎๆ”น");
+
+    return singletonList(new OasDiffViolation(leftLocation, rightLocation, message.toString()));
+
+  }
+
+  protected abstract List<Object[]> getAllowedChangedList();
+
+  protected abstract boolean needValidate(OasDiffValidationContext context);
+
+}
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/SchemaWriteOnlyChangeValidator.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/SchemaWriteOnlyChangeValidator.java
new file mode 100755
index 0000000..17b1789
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/SchemaWriteOnlyChangeValidator.java
@@ -0,0 +1,52 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.DiffViolationMessages;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffValidationContext;
+import io.swagger.v3.oas.models.media.Schema;
+import org.apache.commons.lang3.ObjectUtils;
+
+public class SchemaWriteOnlyChangeValidator extends SchemaPropertyChangeValidator<Boolean> {
+
+  @Override
+  protected Boolean getProperty(Schema schema) {
+    return ObjectUtils.defaultIfNull(schema.getWriteOnly(), Boolean.FALSE);
+  }
+
+  @Override
+  protected String getPropertyName() {
+    return "writeOnly";
+  }
+
+  @Override
+  protected boolean isAllowed(Boolean leftProperty, Boolean rightProperty) {
+    return leftProperty.equals(rightProperty);
+  }
+
+  @Override
+  protected String getMessage(Boolean leftProperty, Boolean rightProperty) {
+    return DiffViolationMessages.NEW_NOT_EQ_OLD;
+  }
+
+  @Override
+  protected boolean needValidate(OasDiffValidationContext context) {
+    return true;
+  }
+
+}
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/SchemaXmlChangeValidator.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/SchemaXmlChangeValidator.java
new file mode 100755
index 0000000..0ecb327
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/SchemaXmlChangeValidator.java
@@ -0,0 +1,52 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.DiffViolationMessages;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffValidationContext;
+import io.swagger.v3.oas.models.media.Schema;
+import io.swagger.v3.oas.models.media.XML;
+
+public class SchemaXmlChangeValidator extends SchemaPropertyChangeValidator<XML> {
+
+  @Override
+  protected XML getProperty(Schema schema) {
+    return schema.getXml();
+  }
+
+  @Override
+  protected String getPropertyName() {
+    return "xml";
+  }
+
+  @Override
+  protected boolean isAllowed(XML leftProperty, XML rightProperty) {
+    return leftProperty.equals(rightProperty);
+  }
+
+  @Override
+  protected String getMessage(XML leftProperty, XML rightProperty) {
+    return DiffViolationMessages.NEW_NOT_EQ_OLD;
+  }
+
+  @Override
+  protected boolean needValidate(OasDiffValidationContext context) {
+    return true;
+  }
+
+}
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/TypeFormat.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/TypeFormat.java
new file mode 100755
index 0000000..8b1402b
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/TypeFormat.java
@@ -0,0 +1,68 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema;
+
+import io.swagger.v3.oas.models.media.Schema;
+
+import java.util.Objects;
+import java.util.StringJoiner;
+
+public class TypeFormat {
+  private final String type;
+  private final String format;
+
+  public TypeFormat(String type, String format) {
+    this.type = type;
+    this.format = format;
+  }
+
+  public TypeFormat(Schema schema) {
+    this.type = schema.getType();
+    this.format = schema.getFormat();
+  }
+
+  @Override
+  public boolean equals(Object o) {
+    if (this == o) return true;
+    if (o == null || getClass() != o.getClass()) return false;
+    TypeFormat that = (TypeFormat) o;
+    return Objects.equals(type, that.type) &&
+      Objects.equals(format, that.format);
+  }
+
+  @Override
+  public int hashCode() {
+    return Objects.hash(type, format);
+  }
+
+  @Override
+  public String toString() {
+    return new StringJoiner(", ", TypeFormat.class.getSimpleName() + "[", "]")
+      .add("type='" + type + "'")
+      .add("format='" + format + "'")
+      .toString();
+  }
+
+  public String getType() {
+    return type;
+  }
+
+  public String getFormat() {
+    return format;
+  }
+}
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaEnumChangeInRequestValidator.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaEnumChangeInRequestValidator.java
new file mode 100755
index 0000000..ef8192f
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaEnumChangeInRequestValidator.java
@@ -0,0 +1,58 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.request;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffValidationContext;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.SchemaPropertyChangeValidator;
+import io.swagger.v3.oas.models.media.Schema;
+import org.apache.commons.lang3.ObjectUtils;
+
+import java.util.List;
+
+import static org.apache.servicecomb.toolkit.oasv.diffvalidation.util.OasDiffValidationContextUtils.isInParameter;
+import static org.apache.servicecomb.toolkit.oasv.diffvalidation.util.OasDiffValidationContextUtils.isInRequestBody;
+import static java.util.Collections.emptyList;
+
+public class SchemaEnumChangeInRequestValidator extends SchemaPropertyChangeValidator<List> {
+
+  @Override
+  protected List getProperty(Schema schema) {
+    return ObjectUtils.defaultIfNull(schema.getEnum(), emptyList());
+  }
+
+  @Override
+  protected String getPropertyName() {
+    return "enum";
+  }
+
+  @Override
+  protected boolean isAllowed(List leftProperty, List rightProperty) {
+    return rightProperty.containsAll(leftProperty);
+  }
+
+  @Override
+  protected String getMessage(List leftProperty, List rightProperty) {
+    return "ไธๅ…่ฎธๅˆ ้™คenum";
+  }
+
+  @Override
+  protected boolean needValidate(OasDiffValidationContext context) {
+    return isInParameter(context) || isInRequestBody(context);
+  }
+
+}
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaExclusiveMaximumChangeInRequestValidator.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaExclusiveMaximumChangeInRequestValidator.java
new file mode 100755
index 0000000..b724510
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaExclusiveMaximumChangeInRequestValidator.java
@@ -0,0 +1,60 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.request;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffValidationContext;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.util.ChangeRangeCheckUtils;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.SchemaPropertyChangeValidator;
+import io.swagger.v3.oas.models.media.Schema;
+import org.apache.commons.lang3.ObjectUtils;
+
+import static org.apache.servicecomb.toolkit.oasv.diffvalidation.util.OasDiffValidationContextUtils.isInParameter;
+import static org.apache.servicecomb.toolkit.oasv.diffvalidation.util.OasDiffValidationContextUtils.isInRequestBody;
+import static java.util.Collections.singletonList;
+
+public class SchemaExclusiveMaximumChangeInRequestValidator extends SchemaPropertyChangeValidator<Boolean> {
+
+  @Override
+  protected Boolean getProperty(Schema schema) {
+    return ObjectUtils.defaultIfNull(schema.getExclusiveMaximum(), Boolean.FALSE);
+  }
+
+  @Override
+  protected String getPropertyName() {
+    return "exclusiveMaximum";
+  }
+
+  @Override
+  protected boolean isAllowed(Boolean leftProperty, Boolean rightProperty) {
+
+    return ChangeRangeCheckUtils
+      .isNotViolated(leftProperty, rightProperty, singletonList(new Object[] { true, false }));
+
+  }
+
+  @Override
+  protected String getMessage(Boolean leftProperty, Boolean rightProperty) {
+    return "ไป…ๅ…่ฎธtrue->false็š„ไฟฎๆ”น";
+  }
+
+  @Override
+  protected boolean needValidate(OasDiffValidationContext context) {
+    return isInParameter(context) || isInRequestBody(context);
+  }
+
+}
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaExclusiveMinimumChangeInRequestValidator.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaExclusiveMinimumChangeInRequestValidator.java
new file mode 100755
index 0000000..5481f59
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaExclusiveMinimumChangeInRequestValidator.java
@@ -0,0 +1,58 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.request;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffValidationContext;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.util.ChangeRangeCheckUtils;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.SchemaPropertyChangeValidator;
+import io.swagger.v3.oas.models.media.Schema;
+import org.apache.commons.lang3.ObjectUtils;
+
+import static org.apache.servicecomb.toolkit.oasv.diffvalidation.util.OasDiffValidationContextUtils.isInParameter;
+import static org.apache.servicecomb.toolkit.oasv.diffvalidation.util.OasDiffValidationContextUtils.isInRequestBody;
+import static java.util.Collections.singletonList;
+
+public class SchemaExclusiveMinimumChangeInRequestValidator extends SchemaPropertyChangeValidator<Boolean> {
+
+  @Override
+  protected Boolean getProperty(Schema schema) {
+    return ObjectUtils.defaultIfNull(schema.getExclusiveMinimum(), Boolean.FALSE);
+  }
+
+  @Override
+  protected String getPropertyName() {
+    return "exclusiveMinimum";
+  }
+
+  @Override
+  protected boolean isAllowed(Boolean leftProperty, Boolean rightProperty) {
+    return ChangeRangeCheckUtils
+      .isNotViolated(leftProperty, rightProperty, singletonList(new Object[] { true, false }));
+  }
+
+  @Override
+  protected String getMessage(Boolean leftProperty, Boolean rightProperty) {
+    return "ไป…ๅ…่ฎธtrue->false็š„ไฟฎๆ”น";
+  }
+
+  @Override
+  protected boolean needValidate(OasDiffValidationContext context) {
+    return isInParameter(context) || isInRequestBody(context);
+  }
+
+}
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaMaxItemsChangeInRequestValidator.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaMaxItemsChangeInRequestValidator.java
new file mode 100755
index 0000000..38d1490
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaMaxItemsChangeInRequestValidator.java
@@ -0,0 +1,55 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.request;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.DiffViolationMessages;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffValidationContext;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.SchemaPropertyChangeValidator;
+import io.swagger.v3.oas.models.media.Schema;
+
+import static org.apache.servicecomb.toolkit.oasv.diffvalidation.util.OasDiffValidationContextUtils.isInParameter;
+import static org.apache.servicecomb.toolkit.oasv.diffvalidation.util.OasDiffValidationContextUtils.isInRequestBody;
+
+public class SchemaMaxItemsChangeInRequestValidator extends SchemaPropertyChangeValidator<Integer> {
+
+  @Override
+  protected Integer getProperty(Schema schema) {
+    return schema.getMaxItems();
+  }
+
+  @Override
+  protected String getPropertyName() {
+    return "maxItems";
+  }
+
+  @Override
+  protected boolean isAllowed(Integer leftProperty, Integer rightProperty) {
+    return rightProperty.compareTo(leftProperty) >= 0;
+  }
+
+  @Override
+  protected String getMessage(Integer leftProperty, Integer rightProperty) {
+    return DiffViolationMessages.NEW_NOT_GTE_OLD;
+  }
+
+  @Override
+  protected boolean needValidate(OasDiffValidationContext context) {
+    return isInParameter(context) || isInRequestBody(context);
+  }
+
+}
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaMaxLengthChangeInRequestValidator.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaMaxLengthChangeInRequestValidator.java
new file mode 100755
index 0000000..a7ef8c7
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaMaxLengthChangeInRequestValidator.java
@@ -0,0 +1,55 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.request;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.DiffViolationMessages;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffValidationContext;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.SchemaPropertyChangeValidator;
+import io.swagger.v3.oas.models.media.Schema;
+
+import static org.apache.servicecomb.toolkit.oasv.diffvalidation.util.OasDiffValidationContextUtils.isInParameter;
+import static org.apache.servicecomb.toolkit.oasv.diffvalidation.util.OasDiffValidationContextUtils.isInRequestBody;
+
+public class SchemaMaxLengthChangeInRequestValidator extends SchemaPropertyChangeValidator<Integer> {
+
+  @Override
+  protected Integer getProperty(Schema schema) {
+    return schema.getMaxLength();
+  }
+
+  @Override
+  protected String getPropertyName() {
+    return "maxLength";
+  }
+
+  @Override
+  protected boolean isAllowed(Integer leftProperty, Integer rightProperty) {
+    return rightProperty.compareTo(leftProperty) >= 0;
+  }
+
+  @Override
+  protected String getMessage(Integer leftProperty, Integer rightProperty) {
+    return DiffViolationMessages.NEW_NOT_GTE_OLD;
+  }
+
+  @Override
+  protected boolean needValidate(OasDiffValidationContext context) {
+    return isInParameter(context) || isInRequestBody(context);
+  }
+
+}
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaMaxPropertiesChangeInRequestValidator.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaMaxPropertiesChangeInRequestValidator.java
new file mode 100755
index 0000000..b6c563c
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaMaxPropertiesChangeInRequestValidator.java
@@ -0,0 +1,55 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.request;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.DiffViolationMessages;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffValidationContext;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.SchemaPropertyChangeValidator;
+import io.swagger.v3.oas.models.media.Schema;
+
+import static org.apache.servicecomb.toolkit.oasv.diffvalidation.util.OasDiffValidationContextUtils.isInParameter;
+import static org.apache.servicecomb.toolkit.oasv.diffvalidation.util.OasDiffValidationContextUtils.isInRequestBody;
+
+public class SchemaMaxPropertiesChangeInRequestValidator extends SchemaPropertyChangeValidator<Integer> {
+
+  @Override
+  protected Integer getProperty(Schema schema) {
+    return schema.getMaxProperties();
+  }
+
+  @Override
+  protected String getPropertyName() {
+    return "maxProperties";
+  }
+
+  @Override
+  protected boolean isAllowed(Integer leftProperty, Integer rightProperty) {
+    return rightProperty.compareTo(leftProperty) >= 0;
+  }
+
+  @Override
+  protected String getMessage(Integer leftProperty, Integer rightProperty) {
+    return DiffViolationMessages.NEW_NOT_GTE_OLD;
+  }
+
+  @Override
+  protected boolean needValidate(OasDiffValidationContext context) {
+    return isInParameter(context) || isInRequestBody(context);
+  }
+
+}
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaMaximumChangeInRequestValidator.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaMaximumChangeInRequestValidator.java
new file mode 100755
index 0000000..5ae2e79
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaMaximumChangeInRequestValidator.java
@@ -0,0 +1,57 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.request;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.DiffViolationMessages;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffValidationContext;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.SchemaPropertyChangeValidator;
+import io.swagger.v3.oas.models.media.Schema;
+
+import java.math.BigDecimal;
+
+import static org.apache.servicecomb.toolkit.oasv.diffvalidation.util.OasDiffValidationContextUtils.isInParameter;
+import static org.apache.servicecomb.toolkit.oasv.diffvalidation.util.OasDiffValidationContextUtils.isInRequestBody;
+
+public class SchemaMaximumChangeInRequestValidator extends SchemaPropertyChangeValidator<BigDecimal> {
+
+  @Override
+  protected BigDecimal getProperty(Schema schema) {
+    return schema.getMaximum();
+  }
+
+  @Override
+  protected String getPropertyName() {
+    return "maximum";
+  }
+
+  @Override
+  protected boolean isAllowed(BigDecimal leftProperty, BigDecimal rightProperty) {
+    return rightProperty.compareTo(leftProperty) >= 0;
+  }
+
+  @Override
+  protected String getMessage(BigDecimal leftProperty, BigDecimal rightProperty) {
+    return DiffViolationMessages.NEW_NOT_GTE_OLD;
+  }
+
+  @Override
+  protected boolean needValidate(OasDiffValidationContext context) {
+    return isInParameter(context) || isInRequestBody(context);
+  }
+
+}
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaMinItemsChangeInRequestValidator.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaMinItemsChangeInRequestValidator.java
new file mode 100755
index 0000000..beaad54
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaMinItemsChangeInRequestValidator.java
@@ -0,0 +1,55 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.request;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.DiffViolationMessages;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffValidationContext;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.SchemaPropertyChangeValidator;
+import io.swagger.v3.oas.models.media.Schema;
+
+import static org.apache.servicecomb.toolkit.oasv.diffvalidation.util.OasDiffValidationContextUtils.isInParameter;
+import static org.apache.servicecomb.toolkit.oasv.diffvalidation.util.OasDiffValidationContextUtils.isInRequestBody;
+
+public class SchemaMinItemsChangeInRequestValidator extends SchemaPropertyChangeValidator<Integer> {
+
+  @Override
+  protected Integer getProperty(Schema schema) {
+    return schema.getMinItems();
+  }
+
+  @Override
+  protected String getPropertyName() {
+    return "minItems";
+  }
+
+  @Override
+  protected boolean isAllowed(Integer leftProperty, Integer rightProperty) {
+    return rightProperty.compareTo(leftProperty) <= 0;
+  }
+
+  @Override
+  protected String getMessage(Integer leftProperty, Integer rightProperty) {
+    return DiffViolationMessages.NEW_NOT_LTE_OLD;
+  }
+
+  @Override
+  protected boolean needValidate(OasDiffValidationContext context) {
+    return isInParameter(context) || isInRequestBody(context);
+  }
+
+}
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaMinLengthChangeInRequestValidator.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaMinLengthChangeInRequestValidator.java
new file mode 100755
index 0000000..40693b2
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaMinLengthChangeInRequestValidator.java
@@ -0,0 +1,55 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.request;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.DiffViolationMessages;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffValidationContext;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.SchemaPropertyChangeValidator;
+import io.swagger.v3.oas.models.media.Schema;
+
+import static org.apache.servicecomb.toolkit.oasv.diffvalidation.util.OasDiffValidationContextUtils.isInParameter;
+import static org.apache.servicecomb.toolkit.oasv.diffvalidation.util.OasDiffValidationContextUtils.isInRequestBody;
+
+public class SchemaMinLengthChangeInRequestValidator extends SchemaPropertyChangeValidator<Integer> {
+
+  @Override
+  protected Integer getProperty(Schema schema) {
+    return schema.getMinLength();
+  }
+
+  @Override
+  protected String getPropertyName() {
+    return "minLength";
+  }
+
+  @Override
+  protected boolean isAllowed(Integer leftProperty, Integer rightProperty) {
+    return rightProperty.compareTo(leftProperty) <= 0;
+  }
+
+  @Override
+  protected String getMessage(Integer leftProperty, Integer rightProperty) {
+    return DiffViolationMessages.NEW_NOT_LTE_OLD;
+  }
+
+  @Override
+  protected boolean needValidate(OasDiffValidationContext context) {
+    return isInParameter(context) || isInRequestBody(context);
+  }
+
+}
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaMinPropertiesChangeInRequestValidator.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaMinPropertiesChangeInRequestValidator.java
new file mode 100755
index 0000000..2b28335
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaMinPropertiesChangeInRequestValidator.java
@@ -0,0 +1,55 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.request;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.DiffViolationMessages;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffValidationContext;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.SchemaPropertyChangeValidator;
+import io.swagger.v3.oas.models.media.Schema;
+
+import static org.apache.servicecomb.toolkit.oasv.diffvalidation.util.OasDiffValidationContextUtils.isInParameter;
+import static org.apache.servicecomb.toolkit.oasv.diffvalidation.util.OasDiffValidationContextUtils.isInRequestBody;
+
+public class SchemaMinPropertiesChangeInRequestValidator extends SchemaPropertyChangeValidator<Integer> {
+
+  @Override
+  protected Integer getProperty(Schema schema) {
+    return schema.getMinProperties();
+  }
+
+  @Override
+  protected String getPropertyName() {
+    return "minProperties";
+  }
+
+  @Override
+  protected boolean isAllowed(Integer leftProperty, Integer rightProperty) {
+    return rightProperty.compareTo(leftProperty) <= 0;
+  }
+
+  @Override
+  protected String getMessage(Integer leftProperty, Integer rightProperty) {
+    return DiffViolationMessages.NEW_NOT_LTE_OLD;
+  }
+
+  @Override
+  protected boolean needValidate(OasDiffValidationContext context) {
+    return isInParameter(context) || isInRequestBody(context);
+  }
+
+}
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaMinimumChangeInRequestValidator.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaMinimumChangeInRequestValidator.java
new file mode 100755
index 0000000..7c68259
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaMinimumChangeInRequestValidator.java
@@ -0,0 +1,57 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.request;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.DiffViolationMessages;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffValidationContext;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.SchemaPropertyChangeValidator;
+import io.swagger.v3.oas.models.media.Schema;
+
+import java.math.BigDecimal;
+
+import static org.apache.servicecomb.toolkit.oasv.diffvalidation.util.OasDiffValidationContextUtils.isInParameter;
+import static org.apache.servicecomb.toolkit.oasv.diffvalidation.util.OasDiffValidationContextUtils.isInRequestBody;
+
+public class SchemaMinimumChangeInRequestValidator extends SchemaPropertyChangeValidator<BigDecimal> {
+
+  @Override
+  protected BigDecimal getProperty(Schema schema) {
+    return schema.getMinimum();
+  }
+
+  @Override
+  protected String getPropertyName() {
+    return "minimum";
+  }
+
+  @Override
+  protected boolean isAllowed(BigDecimal leftProperty, BigDecimal rightProperty) {
+    return rightProperty.compareTo(leftProperty) <= 0;
+  }
+
+  @Override
+  protected String getMessage(BigDecimal leftProperty, BigDecimal rightProperty) {
+    return DiffViolationMessages.NEW_NOT_LTE_OLD;
+  }
+
+  @Override
+  protected boolean needValidate(OasDiffValidationContext context) {
+    return isInParameter(context) || isInRequestBody(context);
+  }
+
+}
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaMultipleOfChangeInRequestValidator.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaMultipleOfChangeInRequestValidator.java
new file mode 100755
index 0000000..1a9e619
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaMultipleOfChangeInRequestValidator.java
@@ -0,0 +1,56 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.request;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffValidationContext;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.SchemaPropertyChangeValidator;
+import io.swagger.v3.oas.models.media.Schema;
+
+import java.math.BigDecimal;
+
+import static org.apache.servicecomb.toolkit.oasv.diffvalidation.util.OasDiffValidationContextUtils.isInParameter;
+import static org.apache.servicecomb.toolkit.oasv.diffvalidation.util.OasDiffValidationContextUtils.isInRequestBody;
+
+public class SchemaMultipleOfChangeInRequestValidator extends SchemaPropertyChangeValidator<BigDecimal> {
+
+  @Override
+  protected BigDecimal getProperty(Schema schema) {
+    return schema.getMultipleOf();
+  }
+
+  @Override
+  protected String getPropertyName() {
+    return "multipleOf";
+  }
+
+  @Override
+  protected String getMessage(BigDecimal leftProperty, BigDecimal rightProperty) {
+    return "ๆ–ฐๅ€ผๅฟ…้กป==ๆ—งๅ€ผๆˆ–ๆ˜ฏๆ—งๅ€ผ็š„ๅ› ๅญ";
+  }
+
+  @Override
+  protected boolean isAllowed(BigDecimal leftProperty, BigDecimal rightProperty) {
+    return BigDecimal.ZERO.compareTo(leftProperty.divideAndRemainder(rightProperty)[1]) == 0;
+  }
+
+  @Override
+  protected boolean needValidate(OasDiffValidationContext context) {
+    return isInParameter(context) || isInRequestBody(context);
+  }
+
+}
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaNullableChangeInRequestValidator.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaNullableChangeInRequestValidator.java
new file mode 100755
index 0000000..abebca1
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaNullableChangeInRequestValidator.java
@@ -0,0 +1,58 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.request;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffValidationContext;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.util.ChangeRangeCheckUtils;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.SchemaPropertyChangeValidator;
+import io.swagger.v3.oas.models.media.Schema;
+import org.apache.commons.lang3.ObjectUtils;
+
+import static org.apache.servicecomb.toolkit.oasv.diffvalidation.util.OasDiffValidationContextUtils.isInParameter;
+import static org.apache.servicecomb.toolkit.oasv.diffvalidation.util.OasDiffValidationContextUtils.isInRequestBody;
+import static java.util.Collections.singletonList;
+
+public class SchemaNullableChangeInRequestValidator extends SchemaPropertyChangeValidator<Boolean> {
+
+  @Override
+  protected Boolean getProperty(Schema schema) {
+    return ObjectUtils.defaultIfNull(schema.getNullable(), Boolean.FALSE);
+  }
+
+  @Override
+  protected String getPropertyName() {
+    return "nullable";
+  }
+
+  @Override
+  protected boolean isAllowed(Boolean leftProperty, Boolean rightProperty) {
+    return ChangeRangeCheckUtils
+      .isNotViolated(leftProperty, rightProperty, singletonList(new Object[] { false, true }));
+  }
+
+  @Override
+  protected String getMessage(Boolean leftProperty, Boolean rightProperty) {
+    return "ไป…ๅ…่ฎธfalse->true็š„ไฟฎๆ”น";
+  }
+
+  @Override
+  protected boolean needValidate(OasDiffValidationContext context) {
+    return isInParameter(context) || isInRequestBody(context);
+  }
+
+}
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaRequiredChangeInRequestValidator.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaRequiredChangeInRequestValidator.java
new file mode 100755
index 0000000..c090054
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaRequiredChangeInRequestValidator.java
@@ -0,0 +1,58 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.request;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffValidationContext;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.SchemaPropertyChangeValidator;
+import io.swagger.v3.oas.models.media.Schema;
+import org.apache.commons.lang3.ObjectUtils;
+
+import java.util.List;
+
+import static org.apache.servicecomb.toolkit.oasv.diffvalidation.util.OasDiffValidationContextUtils.isInParameter;
+import static org.apache.servicecomb.toolkit.oasv.diffvalidation.util.OasDiffValidationContextUtils.isInRequestBody;
+import static java.util.Collections.emptyList;
+
+public class SchemaRequiredChangeInRequestValidator extends SchemaPropertyChangeValidator<List<String>> {
+
+  @Override
+  protected List<String> getProperty(Schema schema) {
+    return ObjectUtils.defaultIfNull(schema.getRequired(), emptyList());
+  }
+
+  @Override
+  protected String getPropertyName() {
+    return "required";
+  }
+
+  @Override
+  protected boolean isAllowed(List<String> leftProperty, List<String> rightProperty) {
+    return leftProperty.containsAll(rightProperty);
+  }
+
+  @Override
+  protected String getMessage(List<String> leftProperty, List<String> rightProperty) {
+    return "ไธๅ…่ฎธๆ–ฐๅขžrequiredๅญ—ๆฎต";
+  }
+
+  @Override
+  protected boolean needValidate(OasDiffValidationContext context) {
+    return isInParameter(context) || isInRequestBody(context);
+  }
+
+}
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaTypeFormatChangeInRequestValidator.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaTypeFormatChangeInRequestValidator.java
new file mode 100755
index 0000000..742e151
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaTypeFormatChangeInRequestValidator.java
@@ -0,0 +1,75 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.request;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffValidationContext;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.SchemaTypeFormatChangeValidator;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.TypeFormat;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+
+import static org.apache.servicecomb.toolkit.oasv.diffvalidation.util.OasDiffValidationContextUtils.isInParameter;
+import static org.apache.servicecomb.toolkit.oasv.diffvalidation.util.OasDiffValidationContextUtils.isInRequestBody;
+
+public class SchemaTypeFormatChangeInRequestValidator extends SchemaTypeFormatChangeValidator {
+
+  private static final List<Object[]> allowedChangedList;
+
+  static {
+    Object[][] allowedChange = new Object[][] {
+      new Object[] { new TypeFormat("integer", null), new TypeFormat("integer", "int64") },
+      new Object[] { new TypeFormat("integer", null), new TypeFormat("number", "double") },
+      new Object[] { new TypeFormat("integer", null), new TypeFormat("number", null) },
+
+      new Object[] { new TypeFormat("integer", "int32"), new TypeFormat("integer", "int64") },
+      new Object[] { new TypeFormat("integer", "int32"), new TypeFormat("integer", null) },
+      new Object[] { new TypeFormat("integer", "int32"), new TypeFormat("number", "float") },
+      new Object[] { new TypeFormat("integer", "int32"), new TypeFormat("number", "double") },
+      new Object[] { new TypeFormat("integer", "int32"), new TypeFormat("number", null) },
+
+      new Object[] { new TypeFormat("integer", "int64"), new TypeFormat("integer", null) },
+      new Object[] { new TypeFormat("integer", "int64"), new TypeFormat("number", "double") },
+      new Object[] { new TypeFormat("integer", "int64"), new TypeFormat("number", null) },
+
+      new Object[] { new TypeFormat("number", null), new TypeFormat("number", "double") },
+
+      new Object[] { new TypeFormat("number", "float"), new TypeFormat("number", null) },
+      new Object[] { new TypeFormat("number", "float"), new TypeFormat("number", "double") },
+
+      new Object[] { new TypeFormat("number", "double"), new TypeFormat("number", null) },
+
+      new Object[] { new TypeFormat("string", null), new TypeFormat("string", "password") },
+
+      new Object[] { new TypeFormat("string", "password"), new TypeFormat("string", null) },
+    };
+    allowedChangedList = Collections.unmodifiableList(Arrays.asList(allowedChange));
+  }
+
+  @Override
+  protected List<Object[]> getAllowedChangedList() {
+    return allowedChangedList;
+  }
+
+  @Override
+  protected boolean needValidate(OasDiffValidationContext context) {
+    return isInRequestBody(context) || isInParameter(context);
+  }
+
+}
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaUniqueItemsChangeInRequestValidator.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaUniqueItemsChangeInRequestValidator.java
new file mode 100755
index 0000000..de69be0
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaUniqueItemsChangeInRequestValidator.java
@@ -0,0 +1,57 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.request;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffValidationContext;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.util.ChangeRangeCheckUtils;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.SchemaPropertyChangeValidator;
+import io.swagger.v3.oas.models.media.Schema;
+
+import static org.apache.servicecomb.toolkit.oasv.diffvalidation.util.OasDiffValidationContextUtils.isInParameter;
+import static org.apache.servicecomb.toolkit.oasv.diffvalidation.util.OasDiffValidationContextUtils.isInRequestBody;
+import static java.util.Collections.singletonList;
+
+public class SchemaUniqueItemsChangeInRequestValidator extends SchemaPropertyChangeValidator<Boolean> {
+
+  @Override
+  protected Boolean getProperty(Schema schema) {
+    return schema.getUniqueItems();
+  }
+
+  @Override
+  protected String getPropertyName() {
+    return "uniqueItems";
+  }
+
+  @Override
+  protected boolean isAllowed(Boolean leftProperty, Boolean rightProperty) {
+    return ChangeRangeCheckUtils
+      .isNotViolated(leftProperty, rightProperty, singletonList(new Object[] { true, false }));
+  }
+
+  @Override
+  protected String getMessage(Boolean leftProperty, Boolean rightProperty) {
+    return "ไป…ๅ…่ฎธtrue->false็š„ไฟฎๆ”น";
+  }
+
+  @Override
+  protected boolean needValidate(OasDiffValidationContext context) {
+    return isInParameter(context) || isInRequestBody(context);
+  }
+
+}
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaEnumChangeInResponseValidator.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaEnumChangeInResponseValidator.java
new file mode 100755
index 0000000..0656f83
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaEnumChangeInResponseValidator.java
@@ -0,0 +1,57 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.response;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffValidationContext;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.SchemaPropertyChangeValidator;
+import io.swagger.v3.oas.models.media.Schema;
+import org.apache.commons.lang3.ObjectUtils;
+
+import java.util.List;
+
+import static org.apache.servicecomb.toolkit.oasv.diffvalidation.util.OasDiffValidationContextUtils.isInResponse;
+import static java.util.Collections.emptyList;
+
+public class SchemaEnumChangeInResponseValidator extends SchemaPropertyChangeValidator<List> {
+
+  @Override
+  protected List getProperty(Schema schema) {
+    return ObjectUtils.defaultIfNull(schema.getEnum(), emptyList());
+  }
+
+  @Override
+  protected String getPropertyName() {
+    return "enum";
+  }
+
+  @Override
+  protected boolean isAllowed(List leftProperty, List rightProperty) {
+    return leftProperty.containsAll(rightProperty);
+  }
+
+  @Override
+  protected String getMessage(List leftProperty, List rightProperty) {
+    return "ไธๅ…่ฎธๆ–ฐๅขženum";
+  }
+
+  @Override
+  protected boolean needValidate(OasDiffValidationContext context) {
+    return isInResponse(context);
+  }
+
+}
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaExclusiveMaximumChangeInResponseValidator.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaExclusiveMaximumChangeInResponseValidator.java
new file mode 100755
index 0000000..5c0084d
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaExclusiveMaximumChangeInResponseValidator.java
@@ -0,0 +1,59 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.response;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffValidationContext;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.util.ChangeRangeCheckUtils;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.SchemaPropertyChangeValidator;
+import io.swagger.v3.oas.models.media.Schema;
+import org.apache.commons.lang3.ObjectUtils;
+
+import static org.apache.servicecomb.toolkit.oasv.diffvalidation.util.OasDiffValidationContextUtils.isInResponse;
+import static java.util.Collections.singletonList;
+
+public class SchemaExclusiveMaximumChangeInResponseValidator extends SchemaPropertyChangeValidator<Boolean> {
+
+  @Override
+  protected Boolean getProperty(Schema schema) {
+    return ObjectUtils.defaultIfNull(schema.getExclusiveMaximum(), Boolean.FALSE);
+  }
+
+  @Override
+  protected String getPropertyName() {
+    return "exclusiveMaximum";
+  }
+
+  @Override
+  protected boolean isAllowed(Boolean leftProperty, Boolean rightProperty) {
+
+    return ChangeRangeCheckUtils
+      .isNotViolated(leftProperty, rightProperty, singletonList(new Object[] { false, true }));
+
+  }
+
+  @Override
+  protected String getMessage(Boolean leftProperty, Boolean rightProperty) {
+    return "ไป…ๅ…่ฎธfalse->true็š„ไฟฎๆ”น";
+  }
+
+  @Override
+  protected boolean needValidate(OasDiffValidationContext context) {
+    return isInResponse(context);
+  }
+
+}
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaExclusiveMinimumChangeInResponseValidator.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaExclusiveMinimumChangeInResponseValidator.java
new file mode 100755
index 0000000..25ce187
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaExclusiveMinimumChangeInResponseValidator.java
@@ -0,0 +1,59 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.response;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffValidationContext;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.util.ChangeRangeCheckUtils;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.SchemaPropertyChangeValidator;
+import io.swagger.v3.oas.models.media.Schema;
+import org.apache.commons.lang3.ObjectUtils;
+
+import static org.apache.servicecomb.toolkit.oasv.diffvalidation.util.OasDiffValidationContextUtils.isInResponse;
+import static java.util.Collections.singletonList;
+
+public class SchemaExclusiveMinimumChangeInResponseValidator extends SchemaPropertyChangeValidator<Boolean> {
+
+  @Override
+  protected Boolean getProperty(Schema schema) {
+    return ObjectUtils.defaultIfNull(schema.getExclusiveMinimum(), Boolean.FALSE);
+  }
+
+  @Override
+  protected String getPropertyName() {
+    return "exclusiveMinimum";
+  }
+
+  @Override
+  protected boolean isAllowed(Boolean leftProperty, Boolean rightProperty) {
+
+    return ChangeRangeCheckUtils
+      .isNotViolated(leftProperty, rightProperty, singletonList(new Object[] { false, true }));
+
+  }
+
+  @Override
+  protected String getMessage(Boolean leftProperty, Boolean rightProperty) {
+    return "ไป…ๅ…่ฎธfalse->true็š„ไฟฎๆ”น";
+  }
+
+  @Override
+  protected boolean needValidate(OasDiffValidationContext context) {
+    return isInResponse(context);
+  }
+
+}
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaMaxItemsChangeInResponseValidator.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaMaxItemsChangeInResponseValidator.java
new file mode 100755
index 0000000..037bd3f
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaMaxItemsChangeInResponseValidator.java
@@ -0,0 +1,54 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.response;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.DiffViolationMessages;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffValidationContext;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.SchemaPropertyChangeValidator;
+import io.swagger.v3.oas.models.media.Schema;
+
+import static org.apache.servicecomb.toolkit.oasv.diffvalidation.util.OasDiffValidationContextUtils.*;
+
+public class SchemaMaxItemsChangeInResponseValidator extends SchemaPropertyChangeValidator<Integer> {
+
+  @Override
+  protected Integer getProperty(Schema schema) {
+    return schema.getMaxItems();
+  }
+
+  @Override
+  protected String getPropertyName() {
+    return "maxItems";
+  }
+
+  @Override
+  protected boolean isAllowed(Integer leftProperty, Integer rightProperty) {
+    return rightProperty.compareTo(leftProperty) <= 0;
+  }
+
+  @Override
+  protected String getMessage(Integer leftProperty, Integer rightProperty) {
+    return DiffViolationMessages.NEW_NOT_LTE_OLD;
+  }
+
+  @Override
+  protected boolean needValidate(OasDiffValidationContext context) {
+    return isInResponse(context);
+  }
+
+}
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaMaxLengthChangeInResponseValidator.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaMaxLengthChangeInResponseValidator.java
new file mode 100755
index 0000000..9f292af
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaMaxLengthChangeInResponseValidator.java
@@ -0,0 +1,54 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.response;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.DiffViolationMessages;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffValidationContext;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.SchemaPropertyChangeValidator;
+import io.swagger.v3.oas.models.media.Schema;
+
+import static org.apache.servicecomb.toolkit.oasv.diffvalidation.util.OasDiffValidationContextUtils.*;
+
+public class SchemaMaxLengthChangeInResponseValidator extends SchemaPropertyChangeValidator<Integer> {
+
+  @Override
+  protected Integer getProperty(Schema schema) {
+    return schema.getMaxLength();
+  }
+
+  @Override
+  protected String getPropertyName() {
+    return "maxLength";
+  }
+
+  @Override
+  protected boolean isAllowed(Integer leftProperty, Integer rightProperty) {
+    return rightProperty.compareTo(leftProperty) <= 0;
+  }
+
+  @Override
+  protected String getMessage(Integer leftProperty, Integer rightProperty) {
+    return DiffViolationMessages.NEW_NOT_LTE_OLD;
+  }
+
+  @Override
+  protected boolean needValidate(OasDiffValidationContext context) {
+    return isInResponse(context);
+  }
+
+}
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaMaxPropertiesChangeInResponseValidator.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaMaxPropertiesChangeInResponseValidator.java
new file mode 100755
index 0000000..77d7f3c
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaMaxPropertiesChangeInResponseValidator.java
@@ -0,0 +1,54 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.response;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.DiffViolationMessages;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffValidationContext;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.SchemaPropertyChangeValidator;
+import io.swagger.v3.oas.models.media.Schema;
+
+import static org.apache.servicecomb.toolkit.oasv.diffvalidation.util.OasDiffValidationContextUtils.isInResponse;
+
+public class SchemaMaxPropertiesChangeInResponseValidator extends SchemaPropertyChangeValidator<Integer> {
+
+  @Override
+  protected Integer getProperty(Schema schema) {
+    return schema.getMaxProperties();
+  }
+
+  @Override
+  protected String getPropertyName() {
+    return "maxProperties";
+  }
+
+  @Override
+  protected boolean isAllowed(Integer leftProperty, Integer rightProperty) {
+    return rightProperty.compareTo(leftProperty) <= 0;
+  }
+
+  @Override
+  protected String getMessage(Integer leftProperty, Integer rightProperty) {
+    return DiffViolationMessages.NEW_NOT_LTE_OLD;
+  }
+
+  @Override
+  protected boolean needValidate(OasDiffValidationContext context) {
+    return isInResponse(context);
+  }
+
+}
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaMaximumChangeInResponseValidator.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaMaximumChangeInResponseValidator.java
new file mode 100755
index 0000000..65f8b88
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaMaximumChangeInResponseValidator.java
@@ -0,0 +1,56 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.response;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.DiffViolationMessages;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffValidationContext;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.SchemaPropertyChangeValidator;
+import io.swagger.v3.oas.models.media.Schema;
+
+import java.math.BigDecimal;
+
+import static org.apache.servicecomb.toolkit.oasv.diffvalidation.util.OasDiffValidationContextUtils.isInResponse;
+
+public class SchemaMaximumChangeInResponseValidator extends SchemaPropertyChangeValidator<BigDecimal> {
+
+  @Override
+  protected BigDecimal getProperty(Schema schema) {
+    return schema.getMaximum();
+  }
+
+  @Override
+  protected String getPropertyName() {
+    return "maximum";
+  }
+
+  @Override
+  protected boolean isAllowed(BigDecimal leftProperty, BigDecimal rightProperty) {
+    return rightProperty.compareTo(leftProperty) <= 0;
+  }
+
+  @Override
+  protected String getMessage(BigDecimal leftProperty, BigDecimal rightProperty) {
+    return DiffViolationMessages.NEW_NOT_LTE_OLD;
+  }
+
+  @Override
+  protected boolean needValidate(OasDiffValidationContext context) {
+    return isInResponse(context);
+  }
+
+}
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaMinItemsChangeInResponseValidator.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaMinItemsChangeInResponseValidator.java
new file mode 100755
index 0000000..9823fdc
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaMinItemsChangeInResponseValidator.java
@@ -0,0 +1,54 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.response;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.DiffViolationMessages;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffValidationContext;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.SchemaPropertyChangeValidator;
+import io.swagger.v3.oas.models.media.Schema;
+
+import static org.apache.servicecomb.toolkit.oasv.diffvalidation.util.OasDiffValidationContextUtils.isInResponse;
+
+public class SchemaMinItemsChangeInResponseValidator extends SchemaPropertyChangeValidator<Integer> {
+
+  @Override
+  protected Integer getProperty(Schema schema) {
+    return schema.getMinItems();
+  }
+
+  @Override
+  protected String getPropertyName() {
+    return "minItems";
+  }
+
+  @Override
+  protected boolean isAllowed(Integer leftProperty, Integer rightProperty) {
+    return rightProperty.compareTo(leftProperty) >= 0;
+  }
+
+  @Override
+  protected String getMessage(Integer leftProperty, Integer rightProperty) {
+    return DiffViolationMessages.NEW_NOT_GTE_OLD;
+  }
+
+  @Override
+  protected boolean needValidate(OasDiffValidationContext context) {
+    return isInResponse(context);
+  }
+
+}
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaMinLengthChangeInResponseValidator.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaMinLengthChangeInResponseValidator.java
new file mode 100755
index 0000000..461a32d
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaMinLengthChangeInResponseValidator.java
@@ -0,0 +1,54 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.response;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.DiffViolationMessages;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffValidationContext;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.SchemaPropertyChangeValidator;
+import io.swagger.v3.oas.models.media.Schema;
+
+import static org.apache.servicecomb.toolkit.oasv.diffvalidation.util.OasDiffValidationContextUtils.isInResponse;
+
+public class SchemaMinLengthChangeInResponseValidator extends SchemaPropertyChangeValidator<Integer> {
+
+  @Override
+  protected Integer getProperty(Schema schema) {
+    return schema.getMinLength();
+  }
+
+  @Override
+  protected String getPropertyName() {
+    return "minLength";
+  }
+
+  @Override
+  protected boolean isAllowed(Integer leftProperty, Integer rightProperty) {
+    return rightProperty.compareTo(leftProperty) >= 0;
+  }
+
+  @Override
+  protected String getMessage(Integer leftProperty, Integer rightProperty) {
+    return DiffViolationMessages.NEW_NOT_GTE_OLD;
+  }
+
+  @Override
+  protected boolean needValidate(OasDiffValidationContext context) {
+    return isInResponse(context);
+  }
+
+}
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaMinPropertiesChangeInResponseValidator.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaMinPropertiesChangeInResponseValidator.java
new file mode 100755
index 0000000..eac3764
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaMinPropertiesChangeInResponseValidator.java
@@ -0,0 +1,54 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.response;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.DiffViolationMessages;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffValidationContext;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.SchemaPropertyChangeValidator;
+import io.swagger.v3.oas.models.media.Schema;
+
+import static org.apache.servicecomb.toolkit.oasv.diffvalidation.util.OasDiffValidationContextUtils.isInResponse;
+
+public class SchemaMinPropertiesChangeInResponseValidator extends SchemaPropertyChangeValidator<Integer> {
+
+  @Override
+  protected Integer getProperty(Schema schema) {
+    return schema.getMinProperties();
+  }
+
+  @Override
+  protected String getPropertyName() {
+    return "minProperties";
+  }
+
+  @Override
+  protected boolean isAllowed(Integer leftProperty, Integer rightProperty) {
+    return rightProperty.compareTo(leftProperty) >= 0;
+  }
+
+  @Override
+  protected String getMessage(Integer leftProperty, Integer rightProperty) {
+    return DiffViolationMessages.NEW_NOT_GTE_OLD;
+  }
+
+  @Override
+  protected boolean needValidate(OasDiffValidationContext context) {
+    return isInResponse(context);
+  }
+
+}
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaMinimumChangeInResponseValidator.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaMinimumChangeInResponseValidator.java
new file mode 100755
index 0000000..055034c
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaMinimumChangeInResponseValidator.java
@@ -0,0 +1,56 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.response;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.DiffViolationMessages;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffValidationContext;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.SchemaPropertyChangeValidator;
+import io.swagger.v3.oas.models.media.Schema;
+
+import java.math.BigDecimal;
+
+import static org.apache.servicecomb.toolkit.oasv.diffvalidation.util.OasDiffValidationContextUtils.*;
+
+public class SchemaMinimumChangeInResponseValidator extends SchemaPropertyChangeValidator<BigDecimal> {
+
+  @Override
+  protected BigDecimal getProperty(Schema schema) {
+    return schema.getMinimum();
+  }
+
+  @Override
+  protected String getPropertyName() {
+    return "minimum";
+  }
+
+  @Override
+  protected boolean isAllowed(BigDecimal leftProperty, BigDecimal rightProperty) {
+    return rightProperty.compareTo(leftProperty) >= 0;
+  }
+
+  @Override
+  protected String getMessage(BigDecimal leftProperty, BigDecimal rightProperty) {
+    return DiffViolationMessages.NEW_NOT_GTE_OLD;
+  }
+
+  @Override
+  protected boolean needValidate(OasDiffValidationContext context) {
+    return isInResponse(context);
+  }
+
+}
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaMultipleOfChangeInResponseValidator.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaMultipleOfChangeInResponseValidator.java
new file mode 100755
index 0000000..0614ecb
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaMultipleOfChangeInResponseValidator.java
@@ -0,0 +1,55 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.response;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffValidationContext;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.SchemaPropertyChangeValidator;
+import io.swagger.v3.oas.models.media.Schema;
+
+import java.math.BigDecimal;
+
+import static org.apache.servicecomb.toolkit.oasv.diffvalidation.util.OasDiffValidationContextUtils.isInResponse;
+
+public class SchemaMultipleOfChangeInResponseValidator extends SchemaPropertyChangeValidator<BigDecimal> {
+
+  @Override
+  protected BigDecimal getProperty(Schema schema) {
+    return schema.getMultipleOf();
+  }
+
+  @Override
+  protected String getPropertyName() {
+    return "multipleOf";
+  }
+
+  @Override
+  protected String getMessage(BigDecimal leftProperty, BigDecimal rightProperty) {
+    return "ๆ–ฐๅ€ผๅฟ…้กป==ๆ—งๅ€ผๆˆ–ๆ˜ฏๆ—งๅ€ผ็š„ๅ€ๆ•ฐ";
+  }
+
+  @Override
+  protected boolean isAllowed(BigDecimal leftProperty, BigDecimal rightProperty) {
+    return BigDecimal.ZERO.compareTo(rightProperty.divideAndRemainder(leftProperty)[1]) == 0;
+  }
+
+  @Override
+  protected boolean needValidate(OasDiffValidationContext context) {
+    return isInResponse(context);
+  }
+
+}
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaNullableChangeInResponseValidator.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaNullableChangeInResponseValidator.java
new file mode 100755
index 0000000..2c69efb
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaNullableChangeInResponseValidator.java
@@ -0,0 +1,57 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.response;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffValidationContext;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.util.ChangeRangeCheckUtils;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.SchemaPropertyChangeValidator;
+import io.swagger.v3.oas.models.media.Schema;
+import org.apache.commons.lang3.ObjectUtils;
+
+import static org.apache.servicecomb.toolkit.oasv.diffvalidation.util.OasDiffValidationContextUtils.isInResponse;
+import static java.util.Collections.singletonList;
+
+public class SchemaNullableChangeInResponseValidator extends SchemaPropertyChangeValidator<Boolean> {
+
+  @Override
+  protected Boolean getProperty(Schema schema) {
+    return ObjectUtils.defaultIfNull(schema.getNullable(), Boolean.FALSE);
+  }
+
+  @Override
+  protected String getPropertyName() {
+    return "nullable";
+  }
+
+  @Override
+  protected boolean isAllowed(Boolean leftProperty, Boolean rightProperty) {
+    return ChangeRangeCheckUtils
+      .isNotViolated(leftProperty, rightProperty, singletonList(new Object[] { true, false }));
+  }
+
+  @Override
+  protected String getMessage(Boolean leftProperty, Boolean rightProperty) {
+    return "ไป…ๅ…่ฎธtrue->false็š„ไฟฎๆ”น";
+  }
+
+  @Override
+  protected boolean needValidate(OasDiffValidationContext context) {
+    return isInResponse(context);
+  }
+
+}
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaRequiredChangeInResponseValidator.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaRequiredChangeInResponseValidator.java
new file mode 100755
index 0000000..7f64f45
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaRequiredChangeInResponseValidator.java
@@ -0,0 +1,57 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.response;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffValidationContext;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.SchemaPropertyChangeValidator;
+import io.swagger.v3.oas.models.media.Schema;
+import org.apache.commons.lang3.ObjectUtils;
+
+import java.util.List;
+
+import static org.apache.servicecomb.toolkit.oasv.diffvalidation.util.OasDiffValidationContextUtils.isInResponse;
+import static java.util.Collections.emptyList;
+
+public class SchemaRequiredChangeInResponseValidator extends SchemaPropertyChangeValidator<List<String>> {
+
+  @Override
+  protected List<String> getProperty(Schema schema) {
+    return ObjectUtils.defaultIfNull(schema.getRequired(), emptyList());
+  }
+
+  @Override
+  protected String getPropertyName() {
+    return "required";
+  }
+
+  @Override
+  protected boolean isAllowed(List<String> leftProperty, List<String> rightProperty) {
+    return rightProperty.containsAll(leftProperty);
+  }
+
+  @Override
+  protected String getMessage(List<String> leftProperty, List<String> rightProperty) {
+    return "ไธๅ…่ฎธๅˆ ้™คrequiredๅญ—ๆฎต";
+  }
+
+  @Override
+  protected boolean needValidate(OasDiffValidationContext context) {
+    return isInResponse(context);
+  }
+
+}
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaTypeFormatChangeInResponseValidator.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaTypeFormatChangeInResponseValidator.java
new file mode 100755
index 0000000..264c1c2
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaTypeFormatChangeInResponseValidator.java
@@ -0,0 +1,65 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.response;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffValidationContext;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.SchemaTypeFormatChangeValidator;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.TypeFormat;
+
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.List;
+
+import static org.apache.servicecomb.toolkit.oasv.diffvalidation.util.OasDiffValidationContextUtils.isInResponse;
+
+public class SchemaTypeFormatChangeInResponseValidator extends SchemaTypeFormatChangeValidator {
+
+  private static final List<Object[]> allowedChangedList;
+
+  static {
+    Object[][] allowedChange = new Object[][] {
+      new Object[] { new TypeFormat("integer", null), new TypeFormat("integer", "int64") },
+      new Object[] { new TypeFormat("integer", null), new TypeFormat("integer", "int32") },
+
+      new Object[] { new TypeFormat("integer", "int64"), new TypeFormat("integer", null) },
+      new Object[] { new TypeFormat("integer", "int64"), new TypeFormat("integer", "int32") },
+
+      new Object[] { new TypeFormat("number", null), new TypeFormat("number", "double") },
+      new Object[] { new TypeFormat("number", null), new TypeFormat("number", "float") },
+
+      new Object[] { new TypeFormat("number", "double"), new TypeFormat("number", null) },
+      new Object[] { new TypeFormat("number", "double"), new TypeFormat("number", "float") },
+
+      new Object[] { new TypeFormat("string", null), new TypeFormat("string", "password") },
+
+      new Object[] { new TypeFormat("string", "password"), new TypeFormat("string", null) },
+    };
+    allowedChangedList = Collections.unmodifiableList(Arrays.asList(allowedChange));
+  }
+
+  @Override
+  protected List<Object[]> getAllowedChangedList() {
+    return allowedChangedList;
+  }
+
+  @Override
+  protected boolean needValidate(OasDiffValidationContext context) {
+    return isInResponse(context);
+  }
+
+}
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaUniqueItemsChangeInResponseValidator.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaUniqueItemsChangeInResponseValidator.java
new file mode 100755
index 0000000..372dae7
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaUniqueItemsChangeInResponseValidator.java
@@ -0,0 +1,56 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.response;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffValidationContext;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.util.ChangeRangeCheckUtils;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.SchemaPropertyChangeValidator;
+import io.swagger.v3.oas.models.media.Schema;
+
+import static org.apache.servicecomb.toolkit.oasv.diffvalidation.util.OasDiffValidationContextUtils.isInResponse;
+import static java.util.Collections.singletonList;
+
+public class SchemaUniqueItemsChangeInResponseValidator extends SchemaPropertyChangeValidator<Boolean> {
+
+  @Override
+  protected Boolean getProperty(Schema schema) {
+    return schema.getUniqueItems();
+  }
+
+  @Override
+  protected String getPropertyName() {
+    return "uniqueItems";
+  }
+
+  @Override
+  protected boolean isAllowed(Boolean leftProperty, Boolean rightProperty) {
+    return ChangeRangeCheckUtils
+      .isNotViolated(leftProperty, rightProperty, singletonList(new Object[] { false, true }));
+  }
+
+  @Override
+  protected String getMessage(Boolean leftProperty, Boolean rightProperty) {
+    return "ไป…ๅ…่ฎธfalse->true็š„ไฟฎๆ”น";
+  }
+
+  @Override
+  protected boolean needValidate(OasDiffValidationContext context) {
+    return isInResponse(context);
+  }
+
+}
diff --git a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/OasCompatibilityTestBase.java b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/OasCompatibilityTestBase.java
new file mode 100755
index 0000000..efbf135
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/OasCompatibilityTestBase.java
@@ -0,0 +1,37 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.validators;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.test.OasDiffValidatorTestBase;
+import io.swagger.v3.parser.core.models.ParseOptions;
+
+public class OasCompatibilityTestBase extends OasDiffValidatorTestBase {
+
+  @Override
+  protected ParseOptions createParseOptions() {
+
+    ParseOptions parseOptions = new ParseOptions();
+    parseOptions.setResolve(true);
+    parseOptions.setResolveCombinators(true);
+    parseOptions.setResolveFully(true);
+    parseOptions.setFlatten(false);
+    return parseOptions;
+
+  }
+
+}
diff --git a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/encoding/EncodingAddNotAllowedDiffValidatorTest.java b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/encoding/EncodingAddNotAllowedDiffValidatorTest.java
new file mode 100755
index 0000000..b653655
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/encoding/EncodingAddNotAllowedDiffValidatorTest.java
@@ -0,0 +1,77 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.validators.encoding;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.DiffViolationMessages;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.EncodingDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffViolation;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.config.OasDiffValidatorsSkeletonConfiguration;
+
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.OasCompatibilityTestBase;
+import io.swagger.v3.oas.models.OpenAPI;
+import org.junit.Test;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.context.annotation.Import;
+import org.springframework.test.context.ContextConfiguration;
+
+import java.util.List;
+
+import static org.apache.servicecomb.toolkit.oasv.common.OasObjectType.*;
+import static org.assertj.core.api.Assertions.assertThat;
+
+@ContextConfiguration(classes = EncodingAddNotAllowedDiffValidatorTest.TestConfiguration.class)
+public class EncodingAddNotAllowedDiffValidatorTest extends OasCompatibilityTestBase {
+
+  @Test
+  public void validate() {
+    OpenAPI leftOpenAPI = loadRelative("petstore-encoding-add-a.yaml");
+    OpenAPI rightOpenAPI = loadRelative("petstore-encoding-add-b.yaml");
+    List<OasDiffViolation> violations = oasSpecDiffValidator
+      .validate(createContext(leftOpenAPI, rightOpenAPI), leftOpenAPI, rightOpenAPI);
+
+    assertThat(violations)
+      .containsExactlyInAnyOrder(
+        createViolationRight(
+          DiffViolationMessages.OP_ADD_FORBIDDEN,
+          new Object[] {
+            "paths", PATHS,
+            "/pets", PATH_ITEM,
+            "post", OPERATION,
+            "requestBody", REQUEST_BODY,
+            "content.'application/x-www-form-urlencoded'", MEDIA_TYPE,
+            "encoding.'bar'", ENCODING
+          }
+        )
+      );
+
+  }
+
+  @Configuration
+  @Import(OasDiffValidatorsSkeletonConfiguration.class)
+  public static class TestConfiguration {
+
+    @Bean
+    public EncodingDiffValidator encodingAddNotAllowedDiffValidator() {
+
+      return new EncodingAddNotAllowedDiffValidator();
+    }
+
+  }
+
+}
diff --git a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/encoding/EncodingAllowedReservedChangeDiffValidatorTest.java b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/encoding/EncodingAllowedReservedChangeDiffValidatorTest.java
new file mode 100755
index 0000000..d9d640f
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/encoding/EncodingAllowedReservedChangeDiffValidatorTest.java
@@ -0,0 +1,89 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.validators.encoding;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.EncodingDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffViolation;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.config.OasDiffValidatorsSkeletonConfiguration;
+
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.OasCompatibilityTestBase;
+import io.swagger.v3.oas.models.OpenAPI;
+import org.junit.Test;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.context.annotation.Import;
+import org.springframework.test.context.ContextConfiguration;
+
+import java.util.List;
+
+import static org.apache.servicecomb.toolkit.oasv.common.OasObjectType.*;
+import static org.assertj.core.api.Assertions.assertThat;
+
+@ContextConfiguration(classes = EncodingAllowedReservedChangeDiffValidatorTest.TestConfiguration.class)
+public class EncodingAllowedReservedChangeDiffValidatorTest extends OasCompatibilityTestBase {
+
+  @Test
+  public void validate() {
+    OpenAPI leftOpenAPI = loadRelative("petstore-encoding-allow-reserved-a.yaml");
+    System.out.println(leftOpenAPI.toString());
+    OpenAPI rightOpenAPI = loadRelative("petstore-encoding-allow-reserved-b.yaml");
+    List<OasDiffViolation> violations = oasSpecDiffValidator
+      .validate(createContext(leftOpenAPI, rightOpenAPI), leftOpenAPI, rightOpenAPI);
+
+    assertThat(violations)
+      .containsExactlyInAnyOrder(
+        createViolation(
+          "ไป…ๅ…่ฎธfalse->true็š„ไฟฎๆ”น",
+          new Object[] {
+            "paths", PATHS,
+            "/pets", PATH_ITEM,
+            "post", OPERATION,
+            "requestBody", REQUEST_BODY,
+            "content.'application/x-www-form-urlencoded'", MEDIA_TYPE,
+            "encoding.'foo'", ENCODING,
+            "allowReserved", null
+          },
+          new Object[] {
+            "paths", PATHS,
+            "/pets", PATH_ITEM,
+            "post", OPERATION,
+            "requestBody", REQUEST_BODY,
+            "content.'application/x-www-form-urlencoded'", MEDIA_TYPE,
+            "encoding.'foo'", ENCODING,
+            "allowReserved", null
+          }
+        )
+      );
+
+  }
+
+  @Configuration
+  @Import(OasDiffValidatorsSkeletonConfiguration.class)
+  public static class TestConfiguration {
+
+    @Bean
+    public EncodingDiffValidator encodingAllowedReservedChangeDiffValidator() {
+
+      return new EncodingAllowedReservedChangeDiffValidator();
+    }
+
+  }
+
+}
+
+
diff --git a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/encoding/EncodingContentTypeNotSameDiffValidatorTest.java b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/encoding/EncodingContentTypeNotSameDiffValidatorTest.java
new file mode 100755
index 0000000..b054967
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/encoding/EncodingContentTypeNotSameDiffValidatorTest.java
@@ -0,0 +1,88 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.validators.encoding;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.DiffViolationMessages;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.EncodingDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffViolation;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.config.OasDiffValidatorsSkeletonConfiguration;
+
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.OasCompatibilityTestBase;
+import io.swagger.v3.oas.models.OpenAPI;
+import org.junit.Test;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.context.annotation.Import;
+import org.springframework.test.context.ContextConfiguration;
+
+import java.util.List;
+
+import static org.apache.servicecomb.toolkit.oasv.common.OasObjectType.*;
+import static org.assertj.core.api.Assertions.assertThat;
+
+@ContextConfiguration(classes = EncodingContentTypeNotSameDiffValidatorTest.TestConfiguration.class)
+public class EncodingContentTypeNotSameDiffValidatorTest extends OasCompatibilityTestBase {
+
+  @Test
+  public void validate() {
+    OpenAPI leftOpenAPI = loadRelative("petstore-encoding-content-type-a.yaml");
+    OpenAPI rightOpenAPI = loadRelative("petstore-encoding-content-type-b.yaml");
+    List<OasDiffViolation> violations = oasSpecDiffValidator
+      .validate(createContext(leftOpenAPI, rightOpenAPI), leftOpenAPI, rightOpenAPI);
+
+    assertThat(violations)
+      .containsExactlyInAnyOrder(
+        createViolation(
+          DiffViolationMessages.NEW_NOT_EQ_OLD,
+          new Object[] {
+            "paths", PATHS,
+            "/pets", PATH_ITEM,
+            "post", OPERATION,
+            "requestBody", REQUEST_BODY,
+            "content.'application/x-www-form-urlencoded'", MEDIA_TYPE,
+            "encoding.'foo'", ENCODING,
+            "contentType", null
+          },
+          new Object[] {
+            "paths", PATHS,
+            "/pets", PATH_ITEM,
+            "post", OPERATION,
+            "requestBody", REQUEST_BODY,
+            "content.'application/x-www-form-urlencoded'", MEDIA_TYPE,
+            "encoding.'foo'", ENCODING,
+            "contentType", null
+          }
+        )
+      );
+
+  }
+
+  @Configuration
+  @Import(OasDiffValidatorsSkeletonConfiguration.class)
+  public static class TestConfiguration {
+
+    @Bean
+    public EncodingDiffValidator encodingContentTypeNotSameDiffValidator() {
+
+      return new EncodingContentTypeNotSameDiffValidator();
+    }
+
+  }
+
+}
+
diff --git a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/encoding/EncodingDelNotAllowedDiffValidatorTest.java b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/encoding/EncodingDelNotAllowedDiffValidatorTest.java
new file mode 100755
index 0000000..444f667
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/encoding/EncodingDelNotAllowedDiffValidatorTest.java
@@ -0,0 +1,77 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.validators.encoding;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.DiffViolationMessages;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.EncodingDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffViolation;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.config.OasDiffValidatorsSkeletonConfiguration;
+
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.OasCompatibilityTestBase;
+import io.swagger.v3.oas.models.OpenAPI;
+import org.junit.Test;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.context.annotation.Import;
+import org.springframework.test.context.ContextConfiguration;
+
+import java.util.List;
+
+import static org.apache.servicecomb.toolkit.oasv.common.OasObjectType.*;
+import static org.assertj.core.api.Assertions.assertThat;
+
+@ContextConfiguration(classes = EncodingDelNotAllowedDiffValidatorTest.TestConfiguration.class)
+public class EncodingDelNotAllowedDiffValidatorTest extends OasCompatibilityTestBase {
+
+  @Test
+  public void validate() {
+    OpenAPI leftOpenAPI = loadRelative("petstore-encoding-del-a.yaml");
+    OpenAPI rightOpenAPI = loadRelative("petstore-encoding-del-b.yaml");
+    List<OasDiffViolation> violations = oasSpecDiffValidator
+      .validate(createContext(leftOpenAPI, rightOpenAPI), leftOpenAPI, rightOpenAPI);
+
+    assertThat(violations)
+      .containsExactlyInAnyOrder(
+        createViolationLeft(
+          DiffViolationMessages.OP_DEL_FORBIDDEN,
+          new Object[] {
+            "paths", PATHS,
+            "/pets", PATH_ITEM,
+            "post", OPERATION,
+            "requestBody", REQUEST_BODY,
+            "content.'application/x-www-form-urlencoded'", MEDIA_TYPE,
+            "encoding.'bar'", ENCODING
+          }
+        )
+      );
+
+  }
+
+  @Configuration
+  @Import(OasDiffValidatorsSkeletonConfiguration.class)
+  public static class TestConfiguration {
+
+    @Bean
+    public EncodingDiffValidator encodingDelNotAllowedDiffValidator() {
+
+      return new EncodingDelNotAllowedDiffValidator();
+    }
+
+  }
+
+}
diff --git a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/encoding/EncodingExplodeNotSameDiffValidatorTest.java b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/encoding/EncodingExplodeNotSameDiffValidatorTest.java
new file mode 100755
index 0000000..32659ed
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/encoding/EncodingExplodeNotSameDiffValidatorTest.java
@@ -0,0 +1,88 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.validators.encoding;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.DiffViolationMessages;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffViolation;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.EncodingDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.config.OasDiffValidatorsSkeletonConfiguration;
+
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.OasCompatibilityTestBase;
+import io.swagger.v3.oas.models.OpenAPI;
+import org.junit.Test;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.context.annotation.Import;
+import org.springframework.test.context.ContextConfiguration;
+
+import java.util.List;
+
+import static org.apache.servicecomb.toolkit.oasv.common.OasObjectType.*;
+import static org.assertj.core.api.Assertions.assertThat;
+
+@ContextConfiguration(classes = EncodingExplodeNotSameDiffValidatorTest.TestConfiguration.class)
+public class EncodingExplodeNotSameDiffValidatorTest extends OasCompatibilityTestBase {
+
+  @Test
+  public void validate() {
+    OpenAPI leftOpenAPI = loadRelative("petstore-encoding-explode-a.yaml");
+    OpenAPI rightOpenAPI = loadRelative("petstore-encoding-explode-b.yaml");
+    List<OasDiffViolation> violations = oasSpecDiffValidator
+      .validate(createContext(leftOpenAPI, rightOpenAPI), leftOpenAPI, rightOpenAPI);
+
+    assertThat(violations)
+      .containsExactlyInAnyOrder(
+        createViolation(
+          DiffViolationMessages.NEW_NOT_EQ_OLD,
+          new Object[] {
+            "paths", PATHS,
+            "/pets", PATH_ITEM,
+            "post", OPERATION,
+            "requestBody", REQUEST_BODY,
+            "content.'application/x-www-form-urlencoded'", MEDIA_TYPE,
+            "encoding.'foo'", ENCODING,
+            "explode", null
+          },
+          new Object[] {
+            "paths", PATHS,
+            "/pets", PATH_ITEM,
+            "post", OPERATION,
+            "requestBody", REQUEST_BODY,
+            "content.'application/x-www-form-urlencoded'", MEDIA_TYPE,
+            "encoding.'foo'", ENCODING,
+            "explode", null
+          }
+        )
+      );
+
+  }
+
+  @Configuration
+  @Import(OasDiffValidatorsSkeletonConfiguration.class)
+  public static class TestConfiguration {
+
+    @Bean
+    public EncodingDiffValidator encodingExplodeNotSameDiffValidator() {
+
+      return new EncodingExplodeNotSameDiffValidator();
+    }
+
+  }
+
+}
+
diff --git a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/encoding/EncodingStyleNotSameDiffValidatorTest.java b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/encoding/EncodingStyleNotSameDiffValidatorTest.java
new file mode 100755
index 0000000..6cc0d44
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/encoding/EncodingStyleNotSameDiffValidatorTest.java
@@ -0,0 +1,88 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.validators.encoding;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.DiffViolationMessages;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.EncodingDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffViolation;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.config.OasDiffValidatorsSkeletonConfiguration;
+
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.OasCompatibilityTestBase;
+import io.swagger.v3.oas.models.OpenAPI;
+import org.junit.Test;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.context.annotation.Import;
+import org.springframework.test.context.ContextConfiguration;
+
+import java.util.List;
+
+import static org.apache.servicecomb.toolkit.oasv.common.OasObjectType.*;
+import static org.assertj.core.api.Assertions.assertThat;
+
+@ContextConfiguration(classes = EncodingStyleNotSameDiffValidatorTest.TestConfiguration.class)
+public class EncodingStyleNotSameDiffValidatorTest extends OasCompatibilityTestBase {
+
+  @Test
+  public void validate() {
+    OpenAPI leftOpenAPI = loadRelative("petstore-encoding-style-a.yaml");
+    OpenAPI rightOpenAPI = loadRelative("petstore-encoding-style-b.yaml");
+    List<OasDiffViolation> violations = oasSpecDiffValidator
+      .validate(createContext(leftOpenAPI, rightOpenAPI), leftOpenAPI, rightOpenAPI);
+
+    assertThat(violations)
+      .containsExactlyInAnyOrder(
+        createViolation(
+          DiffViolationMessages.NEW_NOT_EQ_OLD,
+          new Object[] {
+            "paths", PATHS,
+            "/pets", PATH_ITEM,
+            "post", OPERATION,
+            "requestBody", REQUEST_BODY,
+            "content.'application/x-www-form-urlencoded'", MEDIA_TYPE,
+            "encoding.'foo'", ENCODING,
+            "style", null
+          },
+          new Object[] {
+            "paths", PATHS,
+            "/pets", PATH_ITEM,
+            "post", OPERATION,
+            "requestBody", REQUEST_BODY,
+            "content.'application/x-www-form-urlencoded'", MEDIA_TYPE,
+            "encoding.'foo'", ENCODING,
+            "style", null
+          }
+        )
+      );
+
+  }
+
+  @Configuration
+  @Import(OasDiffValidatorsSkeletonConfiguration.class)
+  public static class TestConfiguration {
+
+    @Bean
+    public EncodingDiffValidator encodingStyleNotSameDiffValidator() {
+
+      return new EncodingStyleNotSameDiffValidator();
+    }
+
+  }
+
+}
+
diff --git a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/header/HeaderAddInRequestBodyNotAllowedDiffValidatorTest.java b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/header/HeaderAddInRequestBodyNotAllowedDiffValidatorTest.java
new file mode 100755
index 0000000..77283fb
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/header/HeaderAddInRequestBodyNotAllowedDiffValidatorTest.java
@@ -0,0 +1,79 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.validators.header;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.DiffViolationMessages;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.HeaderDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffViolation;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.config.OasDiffValidatorsSkeletonConfiguration;
+
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.OasCompatibilityTestBase;
+import io.swagger.v3.oas.models.OpenAPI;
+import org.junit.Test;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.context.annotation.Import;
+import org.springframework.test.context.ContextConfiguration;
+
+import java.util.List;
+
+import static org.apache.servicecomb.toolkit.oasv.common.OasObjectType.*;
+import static org.assertj.core.api.Assertions.assertThat;
+
+@ContextConfiguration(classes = HeaderAddInRequestBodyNotAllowedDiffValidatorTest.TestConfiguration.class)
+public class HeaderAddInRequestBodyNotAllowedDiffValidatorTest extends OasCompatibilityTestBase {
+
+  @Test
+  public void validate() {
+    OpenAPI leftOpenAPI = loadRelative("petstore-header-add-in-request-body-a.yaml");
+    OpenAPI rightOpenAPI = loadRelative("petstore-header-add-in-request-body-b.yaml");
+    List<OasDiffViolation> violations = oasSpecDiffValidator
+      .validate(createContext(leftOpenAPI, rightOpenAPI), leftOpenAPI, rightOpenAPI);
+
+    assertThat(violations)
+      .containsExactlyInAnyOrder(
+        createViolationRight(
+          DiffViolationMessages.OP_ADD_FORBIDDEN,
+          new Object[] {
+            "paths", PATHS,
+            "/pets", PATH_ITEM,
+            "post", OPERATION,
+            "requestBody", REQUEST_BODY,
+            "content.'application/x-www-form-urlencoded'", MEDIA_TYPE,
+            "encoding.'foo'", ENCODING,
+            "headers.'X-Foo'", HEADER
+          }
+        )
+      );
+
+  }
+
+  @Configuration
+  @Import(OasDiffValidatorsSkeletonConfiguration.class)
+  public static class TestConfiguration {
+
+    @Bean
+    public HeaderDiffValidator headerAddInRequestBodyNotAllowed() {
+
+      return new HeaderAddInRequestBodyNotAllowedDiffValidator();
+    }
+
+  }
+
+}
+
diff --git a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/header/HeaderDelInResponseNotAllowedDiffValidatorTest.java b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/header/HeaderDelInResponseNotAllowedDiffValidatorTest.java
new file mode 100755
index 0000000..f5c9477
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/header/HeaderDelInResponseNotAllowedDiffValidatorTest.java
@@ -0,0 +1,78 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.validators.header;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.DiffViolationMessages;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.HeaderDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffViolation;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.config.OasDiffValidatorsSkeletonConfiguration;
+
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.OasCompatibilityTestBase;
+import io.swagger.v3.oas.models.OpenAPI;
+import org.junit.Test;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.context.annotation.Import;
+import org.springframework.test.context.ContextConfiguration;
+
+import java.util.List;
+
+import static org.apache.servicecomb.toolkit.oasv.common.OasObjectType.*;
+import static org.assertj.core.api.Assertions.assertThat;
+
+@ContextConfiguration(classes = HeaderDelInResponseNotAllowedDiffValidatorTest.TestConfiguration.class)
+public class HeaderDelInResponseNotAllowedDiffValidatorTest extends OasCompatibilityTestBase {
+
+  @Test
+  public void validate() {
+    OpenAPI leftOpenAPI = loadRelative("petstore-header-del-in-response-a.yaml");
+    OpenAPI rightOpenAPI = loadRelative("petstore-header-del-in-response-b.yaml");
+    List<OasDiffViolation> violations = oasSpecDiffValidator
+      .validate(createContext(leftOpenAPI, rightOpenAPI), leftOpenAPI, rightOpenAPI);
+
+    assertThat(violations)
+      .containsExactlyInAnyOrder(
+        createViolationLeft(
+          DiffViolationMessages.OP_DEL_FORBIDDEN,
+          new Object[] {
+            "paths", PATHS,
+            "/pets", PATH_ITEM,
+            "get", OPERATION,
+            "responses", RESPONSES,
+            "200", RESPONSE,
+            "headers.'X-Bar'", HEADER
+          }
+        )
+      );
+
+  }
+
+  @Configuration
+  @Import(OasDiffValidatorsSkeletonConfiguration.class)
+  public static class TestConfiguration {
+
+    @Bean
+    public HeaderDiffValidator headerDelInResponseNotAllowed() {
+
+      return new HeaderDelInResponseNotAllowedDiffValidator();
+    }
+
+  }
+
+}
+
diff --git a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/mediatype/MediaTypeAddInParameterNotAllowedDiffValidatorTest.java b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/mediatype/MediaTypeAddInParameterNotAllowedDiffValidatorTest.java
new file mode 100755
index 0000000..24391c7
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/mediatype/MediaTypeAddInParameterNotAllowedDiffValidatorTest.java
@@ -0,0 +1,77 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.validators.mediatype;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.DiffViolationMessages;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.MediaTypeDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffViolation;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.config.OasDiffValidatorsSkeletonConfiguration;
+
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.OasCompatibilityTestBase;
+import io.swagger.v3.oas.models.OpenAPI;
+import org.junit.Test;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.context.annotation.Import;
+import org.springframework.test.context.ContextConfiguration;
+
+import java.util.List;
+
+import static org.apache.servicecomb.toolkit.oasv.common.OasObjectType.*;
+import static org.assertj.core.api.Assertions.assertThat;
+
+@ContextConfiguration(classes = MediaTypeAddInParameterNotAllowedDiffValidatorTest.TestConfiguration.class)
+public class MediaTypeAddInParameterNotAllowedDiffValidatorTest extends OasCompatibilityTestBase {
+
+  @Test
+  public void validate() {
+    OpenAPI leftOpenAPI = loadRelative("petstore-media-type-add-in-parameter-a.yaml");
+    OpenAPI rightOpenAPI = loadRelative("petstore-media-type-add-in-parameter-b.yaml");
+    List<OasDiffViolation> violations = oasSpecDiffValidator
+      .validate(createContext(leftOpenAPI, rightOpenAPI), leftOpenAPI, rightOpenAPI);
+
+    assertThat(violations)
+      .containsExactlyInAnyOrder(
+        createViolationRight(
+          DiffViolationMessages.OP_ADD_FORBIDDEN,
+          new Object[] {
+            "paths", PATHS,
+            "/pets", PATH_ITEM,
+            "get", OPERATION,
+            "parameters[0]", PARAMETER,
+            "content.'application/json'", MEDIA_TYPE
+          }
+        )
+      );
+
+  }
+
+  @Configuration
+  @Import(OasDiffValidatorsSkeletonConfiguration.class)
+  public static class TestConfiguration {
+
+    @Bean
+    public MediaTypeDiffValidator mediaTypeAddInParameterNotAllowedDiffValidator() {
+
+      return new MediaTypeAddInParameterNotAllowedDiffValidator();
+    }
+
+  }
+
+}
+
diff --git a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/mediatype/MediaTypeDelInParameterNotAllowedDiffValidatorTest.java b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/mediatype/MediaTypeDelInParameterNotAllowedDiffValidatorTest.java
new file mode 100755
index 0000000..06b07cd
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/mediatype/MediaTypeDelInParameterNotAllowedDiffValidatorTest.java
@@ -0,0 +1,77 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.validators.mediatype;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.DiffViolationMessages;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.MediaTypeDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffViolation;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.config.OasDiffValidatorsSkeletonConfiguration;
+
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.OasCompatibilityTestBase;
+import io.swagger.v3.oas.models.OpenAPI;
+import org.junit.Test;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.context.annotation.Import;
+import org.springframework.test.context.ContextConfiguration;
+
+import java.util.List;
+
+import static org.apache.servicecomb.toolkit.oasv.common.OasObjectType.*;
+import static org.assertj.core.api.Assertions.assertThat;
+
+@ContextConfiguration(classes = MediaTypeDelInParameterNotAllowedDiffValidatorTest.TestConfiguration.class)
+public class MediaTypeDelInParameterNotAllowedDiffValidatorTest extends OasCompatibilityTestBase {
+
+  @Test
+  public void validate() {
+    OpenAPI leftOpenAPI = loadRelative("petstore-media-type-del-in-parameter-a.yaml");
+    OpenAPI rightOpenAPI = loadRelative("petstore-media-type-del-in-parameter-b.yaml");
+    List<OasDiffViolation> violations = oasSpecDiffValidator
+      .validate(createContext(leftOpenAPI, rightOpenAPI), leftOpenAPI, rightOpenAPI);
+
+    assertThat(violations)
+      .containsExactlyInAnyOrder(
+        createViolationLeft(
+          DiffViolationMessages.OP_DEL_FORBIDDEN,
+          new Object[] {
+            "paths", PATHS,
+            "/pets", PATH_ITEM,
+            "get", OPERATION,
+            "parameters[0]", PARAMETER,
+            "content.'application/json'", MEDIA_TYPE
+          }
+        )
+      );
+
+  }
+
+  @Configuration
+  @Import(OasDiffValidatorsSkeletonConfiguration.class)
+  public static class TestConfiguration {
+
+    @Bean
+    public MediaTypeDiffValidator mediaTypeDelInParameterNotAllowedDiffValidator() {
+
+      return new MediaTypeDelInParameterNotAllowedDiffValidator();
+    }
+
+  }
+
+}
+
diff --git a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/mediatype/MediaTypeDelInRequestBodyNotAllowedDiffValidatorTest.java b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/mediatype/MediaTypeDelInRequestBodyNotAllowedDiffValidatorTest.java
new file mode 100755
index 0000000..eb62a01
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/mediatype/MediaTypeDelInRequestBodyNotAllowedDiffValidatorTest.java
@@ -0,0 +1,77 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.validators.mediatype;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.DiffViolationMessages;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.MediaTypeDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffViolation;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.config.OasDiffValidatorsSkeletonConfiguration;
+
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.OasCompatibilityTestBase;
+import io.swagger.v3.oas.models.OpenAPI;
+import org.junit.Test;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.context.annotation.Import;
+import org.springframework.test.context.ContextConfiguration;
+
+import java.util.List;
+
+import static org.apache.servicecomb.toolkit.oasv.common.OasObjectType.*;
+import static org.assertj.core.api.Assertions.assertThat;
+
+@ContextConfiguration(classes = MediaTypeDelInRequestBodyNotAllowedDiffValidatorTest.TestConfiguration.class)
+public class MediaTypeDelInRequestBodyNotAllowedDiffValidatorTest extends OasCompatibilityTestBase {
+
+  @Test
+  public void validate() {
+    OpenAPI leftOpenAPI = loadRelative("petstore-media-type-del-in-request-body-a.yaml");
+    OpenAPI rightOpenAPI = loadRelative("petstore-media-type-del-in-request-body-b.yaml");
+    List<OasDiffViolation> violations = oasSpecDiffValidator
+      .validate(createContext(leftOpenAPI, rightOpenAPI), leftOpenAPI, rightOpenAPI);
+
+    assertThat(violations)
+      .containsExactlyInAnyOrder(
+        createViolationLeft(
+          DiffViolationMessages.OP_DEL_FORBIDDEN,
+          new Object[] {
+            "paths", PATHS,
+            "/pets", PATH_ITEM,
+            "get", OPERATION,
+            "requestBody", REQUEST_BODY,
+            "content.'application/json'", MEDIA_TYPE
+          }
+        )
+      );
+
+  }
+
+  @Configuration
+  @Import(OasDiffValidatorsSkeletonConfiguration.class)
+  public static class TestConfiguration {
+
+    @Bean
+    public MediaTypeDiffValidator mediaTypeDelInRequestBodyNotAllowedDiffValidator() {
+
+      return new MediaTypeDelInRequestBodyNotAllowedDiffValidator();
+    }
+
+  }
+
+}
+
diff --git a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/mediatype/MediaTypeDelInResponseNotAllowedDiffValidatorTest.java b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/mediatype/MediaTypeDelInResponseNotAllowedDiffValidatorTest.java
new file mode 100755
index 0000000..db8914a
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/mediatype/MediaTypeDelInResponseNotAllowedDiffValidatorTest.java
@@ -0,0 +1,78 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.validators.mediatype;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.DiffViolationMessages;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.MediaTypeDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffViolation;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.config.OasDiffValidatorsSkeletonConfiguration;
+
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.OasCompatibilityTestBase;
+import io.swagger.v3.oas.models.OpenAPI;
+import org.junit.Test;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.context.annotation.Import;
+import org.springframework.test.context.ContextConfiguration;
+
+import java.util.List;
+
+import static org.apache.servicecomb.toolkit.oasv.common.OasObjectType.*;
+import static org.assertj.core.api.Assertions.assertThat;
+
+@ContextConfiguration(classes = MediaTypeDelInResponseNotAllowedDiffValidatorTest.TestConfiguration.class)
+public class MediaTypeDelInResponseNotAllowedDiffValidatorTest extends OasCompatibilityTestBase {
+
+  @Test
+  public void validate() {
+    OpenAPI leftOpenAPI = loadRelative("petstore-media-type-del-in-response-a.yaml");
+    OpenAPI rightOpenAPI = loadRelative("petstore-media-type-del-in-response-b.yaml");
+    List<OasDiffViolation> violations = oasSpecDiffValidator
+      .validate(createContext(leftOpenAPI, rightOpenAPI), leftOpenAPI, rightOpenAPI);
+
+    assertThat(violations)
+      .containsExactlyInAnyOrder(
+        createViolationLeft(
+          DiffViolationMessages.OP_DEL_FORBIDDEN,
+          new Object[] {
+            "paths", PATHS,
+            "/pets", PATH_ITEM,
+            "get", OPERATION,
+            "responses", RESPONSES,
+            "200", RESPONSE,
+            "content.'application/xml'", MEDIA_TYPE
+          }
+        )
+      );
+
+  }
+
+  @Configuration
+  @Import(OasDiffValidatorsSkeletonConfiguration.class)
+  public static class TestConfiguration {
+
+    @Bean
+    public MediaTypeDiffValidator mediaTypeDelInResponseNotAllowedDiffValidator() {
+
+      return new MediaTypeDelInResponseNotAllowedDiffValidator();
+    }
+
+  }
+
+}
+
diff --git a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/operation/OperationDeleteNotAllowedDiffValidatorTest.java b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/operation/OperationDeleteNotAllowedDiffValidatorTest.java
new file mode 100755
index 0000000..8cfb32d
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/operation/OperationDeleteNotAllowedDiffValidatorTest.java
@@ -0,0 +1,74 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.validators.operation;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.DiffViolationMessages;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffViolation;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OperationDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.config.OasDiffValidatorsSkeletonConfiguration;
+
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.OasCompatibilityTestBase;
+import io.swagger.v3.oas.models.OpenAPI;
+import org.junit.Test;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.context.annotation.Import;
+import org.springframework.test.context.ContextConfiguration;
+
+import java.util.List;
+
+import static org.apache.servicecomb.toolkit.oasv.common.OasObjectType.*;
+import static org.assertj.core.api.Assertions.assertThat;
+
+@ContextConfiguration(classes = OperationDeleteNotAllowedDiffValidatorTest.TestConfiguration.class)
+public class OperationDeleteNotAllowedDiffValidatorTest extends OasCompatibilityTestBase {
+
+  @Test
+  public void validate() {
+    OpenAPI leftOpenAPI = loadRelative("petstore-operation-delete-a.yaml");
+    OpenAPI rightOpenAPI = loadRelative("petstore-operation-delete-b.yaml");
+    List<OasDiffViolation> violations = oasSpecDiffValidator
+      .validate(createContext(leftOpenAPI, rightOpenAPI), leftOpenAPI, rightOpenAPI);
+
+    assertThat(violations)
+      .containsExactlyInAnyOrder(
+        createViolationLeft(
+          DiffViolationMessages.OP_DEL_FORBIDDEN,
+          new Object[] {
+            "paths", PATHS,
+            "/pets", PATH_ITEM,
+            "post", OPERATION
+          }
+        )
+      );
+
+  }
+
+  @Configuration
+  @Import(OasDiffValidatorsSkeletonConfiguration.class)
+  public static class TestConfiguration {
+
+    @Bean
+    public OperationDiffValidator operationDeleteNotAllowedDiffValidator() {
+
+      return new OperationDeleteNotAllowedDiffValidator();
+    }
+
+  }
+
+}
diff --git a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/operation/OperationIdNotSameDiffValidatorTest.java b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/operation/OperationIdNotSameDiffValidatorTest.java
new file mode 100755
index 0000000..981ca2b
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/operation/OperationIdNotSameDiffValidatorTest.java
@@ -0,0 +1,76 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
... 32417 lines suppressed ...


[servicecomb-toolkit] 17/26: SCB-1553 Integrate oas-validator compliance check to cli Increase test coverage.

Posted by ni...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ningjiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/servicecomb-toolkit.git

commit e26fac5d7edbe618e62e7697c88d0353cbec5c15
Author: Daniel Qian <ch...@gmail.com>
AuthorDate: Tue Nov 5 22:56:35 2019 +0800

    SCB-1553 Integrate oas-validator compliance check to cli
    Increase test coverage.
---
 .../apache/servicecomb/toolkit/cli/CliTest.java    | 10 ++++
 cli/src/test/resources/oas/parser-test.yaml        | 48 +++++++++++++++
 .../oas-validator-compatibility-spring/pom.xml     |  8 ++-
 .../config/ValidatorConfigurationsTest.java        | 64 ++++++++++++++++++++
 .../src/test/resources/logback-test.xml            | 22 +++++++
 .../oas-validator-compliance-spring/pom.xml        |  6 ++
 .../config/ValidatorConfigurationsTest.java        | 68 ++++++++++++++++++++++
 .../src/test/resources/logback-test.xml            | 22 +++++++
 8 files changed, 247 insertions(+), 1 deletion(-)

diff --git a/cli/src/test/java/org/apache/servicecomb/toolkit/cli/CliTest.java b/cli/src/test/java/org/apache/servicecomb/toolkit/cli/CliTest.java
index 631bf28..3c2fd7b 100755
--- a/cli/src/test/java/org/apache/servicecomb/toolkit/cli/CliTest.java
+++ b/cli/src/test/java/org/apache/servicecomb/toolkit/cli/CliTest.java
@@ -90,4 +90,14 @@ public class CliTest {
 
     tempDir.toFile().deleteOnExit();
   }
+
+  @Test
+  public void testCheckStyle() throws IOException {
+    String[] args = new String[] {
+        "checkstyle",
+        Paths.get("./src/test/resources/oas/parser-test.yaml").toFile().getCanonicalPath()
+    };
+    ToolkitMain.main(args);
+  }
+
 }
diff --git a/cli/src/test/resources/oas/parser-test.yaml b/cli/src/test/resources/oas/parser-test.yaml
new file mode 100644
index 0000000..f7b88b5
--- /dev/null
+++ b/cli/src/test/resources/oas/parser-test.yaml
@@ -0,0 +1,48 @@
+## ---------------------------------------------------------------------------
+## Licensed to the Apache Software Foundation (ASF) under one or more
+## contributor license agreements.  See the NOTICE file distributed with
+## this work for additional information regarding copyright ownership.
+## The ASF licenses this file to You under the Apache License, Version 2.0
+## (the "License"); you may not use this file except in compliance with
+## the License.  You may obtain a copy of the License at
+##
+##      http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+## ---------------------------------------------------------------------------
+openapi: "3.0.0"
+info:
+  version: 1.0.0
+  title: Pet petstore
+paths:
+  /pets:
+    get:
+      summary: List all pets
+      operationId: listpets
+      responses:
+        '200':
+          description: A paged array of pets
+
+    post:
+      summary: List all pets
+      operationId: foo
+      requestBody:
+        content:
+          application/x-www-form-urlencoded:
+            schema:
+              type: object
+              properties:
+                foo:
+                  type: string
+                bar:
+                  type: string
+            encoding:
+              foo:
+                contentType: 'application/octet-stream'
+      responses:
+        '200':
+          description: A paged array of pets
diff --git a/oas-validator/oas-validator-compatibility-spring/pom.xml b/oas-validator/oas-validator-compatibility-spring/pom.xml
index 7a4c85b..f60ee7b 100644
--- a/oas-validator/oas-validator-compatibility-spring/pom.xml
+++ b/oas-validator/oas-validator-compatibility-spring/pom.xml
@@ -41,10 +41,16 @@
       <groupId>org.apache.servicecomb.toolkit</groupId>
       <artifactId>oas-validator-core-spring</artifactId>
     </dependency>
-    
+
+    <dependency>
+      <groupId>org.springframework.boot</groupId>
+      <artifactId>spring-boot-starter</artifactId>
+    </dependency>
+
     <dependency>
       <groupId>org.springframework.boot</groupId>
       <artifactId>spring-boot-starter-test</artifactId>
+      <scope>test</scope>
     </dependency>
 
   </dependencies>
diff --git a/oas-validator/oas-validator-compatibility-spring/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/config/ValidatorConfigurationsTest.java b/oas-validator/oas-validator-compatibility-spring/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/config/ValidatorConfigurationsTest.java
new file mode 100644
index 0000000..e2ca246
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility-spring/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/config/ValidatorConfigurationsTest.java
@@ -0,0 +1,64 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.config;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.EncodingDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.HeaderDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.MediaTypeDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OperationDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.ParameterDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.PathItemDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.RequestBodyDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.ResponseDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.SchemaDiffValidator;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.springframework.beans.BeansException;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+import org.springframework.boot.test.context.SpringBootTest;
+import org.springframework.context.ApplicationContext;
+import org.springframework.context.ApplicationContextAware;
+import org.springframework.test.context.junit4.SpringRunner;
+
+@RunWith(SpringRunner.class)
+@SpringBootTest
+@SpringBootApplication
+public class ValidatorConfigurationsTest implements ApplicationContextAware {
+
+  private ApplicationContext applicationContext;
+
+  @Test
+  public void testConfigurations() {
+    assertThat(applicationContext.getBeansOfType(EncodingDiffValidator.class)).hasSize(7);
+    assertThat(applicationContext.getBeansOfType(HeaderDiffValidator.class)).hasSize(3);
+    assertThat(applicationContext.getBeansOfType(MediaTypeDiffValidator.class)).hasSize(6);
+    assertThat(applicationContext.getBeansOfType(OperationDiffValidator.class)).hasSize(5);
+    assertThat(applicationContext.getBeansOfType(ParameterDiffValidator.class)).hasSize(8);
+    assertThat(applicationContext.getBeansOfType(PathItemDiffValidator.class)).hasSize(3);
+    assertThat(applicationContext.getBeansOfType(RequestBodyDiffValidator.class)).hasSize(2);
+    assertThat(applicationContext.getBeansOfType(ResponseDiffValidator.class)).hasSize(3);
+    assertThat(applicationContext.getBeansOfType(SchemaDiffValidator.class)).hasSize(1);
+  }
+
+  @Override
+  public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
+    this.applicationContext = applicationContext;
+  }
+}
diff --git a/oas-validator/oas-validator-compatibility-spring/src/test/resources/logback-test.xml b/oas-validator/oas-validator-compatibility-spring/src/test/resources/logback-test.xml
new file mode 100644
index 0000000..a1ba69a
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility-spring/src/test/resources/logback-test.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one or more
+  ~ contributor license agreements.  See the NOTICE file distributed with
+  ~ this work for additional information regarding copyright ownership.
+  ~ The ASF licenses this file to You under the Apache License, Version 2.0
+  ~ (the "License"); you may not use this file except in compliance with
+  ~ the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing, software
+  ~ distributed under the License is distributed on an "AS IS" BASIS,
+  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  ~ See the License for the specific language governing permissions and
+  ~ limitations under the License.
+  -->
+
+<configuration>
+  <include resource="org/springframework/boot/logging/logback/base.xml" />
+  <logger name="org.springframework" level="OFF"/>
+</configuration>
diff --git a/oas-validator/oas-validator-compliance-spring/pom.xml b/oas-validator/oas-validator-compliance-spring/pom.xml
index 5e4b0f9..f143d9e 100644
--- a/oas-validator/oas-validator-compliance-spring/pom.xml
+++ b/oas-validator/oas-validator-compliance-spring/pom.xml
@@ -47,6 +47,12 @@
       <artifactId>spring-boot-starter</artifactId>
     </dependency>
 
+    <dependency>
+      <groupId>org.springframework.boot</groupId>
+      <artifactId>spring-boot-starter-test</artifactId>
+      <scope>test</scope>
+    </dependency>
+
   </dependencies>
 
   <build>
diff --git a/oas-validator/oas-validator-compliance-spring/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/config/ValidatorConfigurationsTest.java b/oas-validator/oas-validator-compliance-spring/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/config/ValidatorConfigurationsTest.java
new file mode 100644
index 0000000..dda31f8
--- /dev/null
+++ b/oas-validator/oas-validator-compliance-spring/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/config/ValidatorConfigurationsTest.java
@@ -0,0 +1,68 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compliance.config;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import org.apache.servicecomb.toolkit.oasv.validation.api.ComponentsValidator;
+import org.apache.servicecomb.toolkit.oasv.validation.api.EncodingValidator;
+import org.apache.servicecomb.toolkit.oasv.validation.api.HeaderValidator;
+import org.apache.servicecomb.toolkit.oasv.validation.api.InfoValidator;
+import org.apache.servicecomb.toolkit.oasv.validation.api.OpenApiValidator;
+import org.apache.servicecomb.toolkit.oasv.validation.api.OperationValidator;
+import org.apache.servicecomb.toolkit.oasv.validation.api.ParameterValidator;
+import org.apache.servicecomb.toolkit.oasv.validation.api.PathsValidator;
+import org.apache.servicecomb.toolkit.oasv.validation.api.RequestBodyValidator;
+import org.apache.servicecomb.toolkit.oasv.validation.api.SchemaValidator;
+import org.apache.servicecomb.toolkit.oasv.validation.api.TagValidator;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.springframework.beans.BeansException;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+import org.springframework.boot.test.context.SpringBootTest;
+import org.springframework.context.ApplicationContext;
+import org.springframework.context.ApplicationContextAware;
+import org.springframework.test.context.junit4.SpringRunner;
+
+@RunWith(SpringRunner.class)
+@SpringBootTest
+@SpringBootApplication
+public class ValidatorConfigurationsTest implements ApplicationContextAware {
+
+  private ApplicationContext applicationContext;
+
+  @Test
+  public void testConfigurations() {
+    assertThat(applicationContext.getBeansOfType(ComponentsValidator.class)).hasSize(14);
+    assertThat(applicationContext.getBeansOfType(EncodingValidator.class)).hasSize(2);
+    assertThat(applicationContext.getBeansOfType(HeaderValidator.class)).hasSize(2);
+    assertThat(applicationContext.getBeansOfType(InfoValidator.class)).hasSize(1);
+    assertThat(applicationContext.getBeansOfType(OpenApiValidator.class)).hasSize(8);
+    assertThat(applicationContext.getBeansOfType(OperationValidator.class)).hasSize(8);
+    assertThat(applicationContext.getBeansOfType(ParameterValidator.class)).hasSize(7);
+    assertThat(applicationContext.getBeansOfType(PathsValidator.class)).hasSize(2);
+    assertThat(applicationContext.getBeansOfType(RequestBodyValidator.class)).hasSize(2);
+    assertThat(applicationContext.getBeansOfType(SchemaValidator.class)).hasSize(2);
+    assertThat(applicationContext.getBeansOfType(TagValidator.class)).hasSize(3);
+  }
+
+  @Override
+  public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
+    this.applicationContext = applicationContext;
+  }
+}
diff --git a/oas-validator/oas-validator-compliance-spring/src/test/resources/logback-test.xml b/oas-validator/oas-validator-compliance-spring/src/test/resources/logback-test.xml
new file mode 100644
index 0000000..a1ba69a
--- /dev/null
+++ b/oas-validator/oas-validator-compliance-spring/src/test/resources/logback-test.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one or more
+  ~ contributor license agreements.  See the NOTICE file distributed with
+  ~ this work for additional information regarding copyright ownership.
+  ~ The ASF licenses this file to You under the Apache License, Version 2.0
+  ~ (the "License"); you may not use this file except in compliance with
+  ~ the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing, software
+  ~ distributed under the License is distributed on an "AS IS" BASIS,
+  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  ~ See the License for the specific language governing permissions and
+  ~ limitations under the License.
+  -->
+
+<configuration>
+  <include resource="org/springframework/boot/logging/logback/base.xml" />
+  <logger name="org.springframework" level="OFF"/>
+</configuration>


[servicecomb-toolkit] 24/26: remove stdout in test

Posted by ni...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ningjiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/servicecomb-toolkit.git

commit 1109b7e4317a730f702b65c597d1cad38d8ee7a8
Author: Daniel Qian <ch...@gmail.com>
AuthorDate: Thu Nov 7 15:32:29 2019 +0800

    remove stdout in test
---
 .../parameter/ParameterAllowReservedChangeDiffValidatorTest.java         | 1 -
 1 file changed, 1 deletion(-)

diff --git a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/parameter/ParameterAllowReservedChangeDiffValidatorTest.java b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/parameter/ParameterAllowReservedChangeDiffValidatorTest.java
index 70b82a8..a5a4b5b 100755
--- a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/parameter/ParameterAllowReservedChangeDiffValidatorTest.java
+++ b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/parameter/ParameterAllowReservedChangeDiffValidatorTest.java
@@ -45,7 +45,6 @@ public class ParameterAllowReservedChangeDiffValidatorTest extends OasCompatibil
   @Test
   public void validateBroken() {
     OpenAPI leftOpenAPI = loadRelative("petstore-parameter-allow-reserved-a.yaml");
-    System.out.println(leftOpenAPI.toString());
     OpenAPI rightOpenAPI = loadRelative("petstore-parameter-allow-reserved-b.yaml");
     List<OasDiffViolation> violations = oasSpecDiffValidator
       .validate(createContext(leftOpenAPI, rightOpenAPI), leftOpenAPI, rightOpenAPI);


[servicecomb-toolkit] 21/26: SCB-1555 Integrate oas-validator compability check to cli Add subcommands checkcompatibility and cs to cli

Posted by ni...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ningjiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/servicecomb-toolkit.git

commit 653b4b2cfc1316b1cc1847dee57bdddd1faf9103
Author: Daniel Qian <ch...@gmail.com>
AuthorDate: Thu Nov 7 14:25:47 2019 +0800

    SCB-1555 Integrate oas-validator compability check to cli
    Add subcommands checkcompatibility and cs to cli
---
 cli/pom.xml                                        |   5 +
 .../toolkit/cli/CheckCompatibility.java            |  26 +++++
 .../toolkit/cli/CheckCompatibilityAbbr.java        |  26 +++++
 .../toolkit/cli/CheckCompatibilityBase.java        | 129 +++++++++++++++++++++
 .../servicecomb/toolkit/cli/CheckStyleBase.java    |  14 +--
 .../servicecomb/toolkit/cli/ToolkitMain.java       |   7 +-
 .../apache/servicecomb/toolkit/cli/CliTest.java    |  25 +++-
 .../{parser-test.yaml => compatibility-left.yaml}  |   6 +-
 .../{parser-test.yaml => compatibility-right.yaml} |   8 +-
 .../resources/oas/{parser-test.yaml => style.yaml} |   0
 ...dingAllowedReservedChangeDiffValidatorTest.java |   1 -
 .../oasv/common/OasObjectPropertyLocation.java     |  14 +++
 .../oasv/common/OasObjectPropertyLocationTest.java |  16 +++
 13 files changed, 259 insertions(+), 18 deletions(-)

diff --git a/cli/pom.xml b/cli/pom.xml
index 6a222d7..4499804 100644
--- a/cli/pom.xml
+++ b/cli/pom.xml
@@ -85,6 +85,11 @@
       <groupId>org.apache.servicecomb.toolkit</groupId>
       <artifactId>oas-validator-compliance</artifactId>
     </dependency>
+
+    <dependency>
+      <groupId>org.apache.servicecomb.toolkit</groupId>
+      <artifactId>oas-validator-compatibility</artifactId>
+    </dependency>
   </dependencies>
 
   <build>
diff --git a/cli/src/main/java/org/apache/servicecomb/toolkit/cli/CheckCompatibility.java b/cli/src/main/java/org/apache/servicecomb/toolkit/cli/CheckCompatibility.java
new file mode 100644
index 0000000..c12439d
--- /dev/null
+++ b/cli/src/main/java/org/apache/servicecomb/toolkit/cli/CheckCompatibility.java
@@ -0,0 +1,26 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.cli;
+
+import io.airlift.airline.Command;
+
+@Command(name = "checkcompatibility",
+    description = "Check compatibility for two OpenAPI v3 spec yamls, right one should be semantically compatible with left one")
+public class CheckCompatibility extends CheckCompatibilityBase {
+
+}
diff --git a/cli/src/main/java/org/apache/servicecomb/toolkit/cli/CheckCompatibilityAbbr.java b/cli/src/main/java/org/apache/servicecomb/toolkit/cli/CheckCompatibilityAbbr.java
new file mode 100644
index 0000000..2f14b2b
--- /dev/null
+++ b/cli/src/main/java/org/apache/servicecomb/toolkit/cli/CheckCompatibilityAbbr.java
@@ -0,0 +1,26 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.cli;
+
+import io.airlift.airline.Command;
+
+@Command(name = "cc",
+    description = "Check compatibility for two OpenAPI v3 spec yamls, right one should be semantically compatible with left one")
+public class CheckCompatibilityAbbr extends CheckCompatibilityBase {
+
+}
diff --git a/cli/src/main/java/org/apache/servicecomb/toolkit/cli/CheckCompatibilityBase.java b/cli/src/main/java/org/apache/servicecomb/toolkit/cli/CheckCompatibilityBase.java
new file mode 100644
index 0000000..298132f
--- /dev/null
+++ b/cli/src/main/java/org/apache/servicecomb/toolkit/cli/CheckCompatibilityBase.java
@@ -0,0 +1,129 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.cli;
+
+import java.io.IOException;
+import java.nio.file.Path;
+import java.nio.file.Paths;
+import java.util.List;
+import java.util.StringJoiner;
+
+import org.apache.commons.collections4.CollectionUtils;
+import org.apache.commons.io.FileUtils;
+import org.apache.servicecomb.toolkit.oasv.common.OasObjectPropertyLocation;
+import org.apache.servicecomb.toolkit.oasv.compatibility.CompatibilityCheckParser;
+import org.apache.servicecomb.toolkit.oasv.compatibility.factory.DefaultOasSpecDiffValidatorFactory;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffValidationContext;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffViolation;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasSpecDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.factory.OasSpecDiffValidatorFactory;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.springframework.context.annotation.AnnotationConfigApplicationContext;
+
+import io.airlift.airline.Arguments;
+import io.swagger.v3.oas.models.OpenAPI;
+import io.swagger.v3.parser.core.models.SwaggerParseResult;
+
+public class CheckCompatibilityBase implements Runnable {
+
+  private final Logger LOGGER = LoggerFactory.getLogger(this.getClass());
+
+  @Arguments(
+      title = "files", required = true,
+      description = "Two OpenAPI v3 spec yamls"
+  )
+  private List<String> filePaths;
+
+  @Override
+  public void run() {
+
+    if (filePaths.size() != 2) {
+      LOGGER.error("Require 2 files");
+      return;
+    }
+
+    OpenAPI oldOas = null;
+    OpenAPI newOas = null;
+    try {
+      oldOas = loadOpenApi(filePaths.get(0));
+      newOas = loadOpenApi(filePaths.get(1));
+    } catch (Exception e) {
+      LOGGER.error(e.getMessage());
+      return;
+    }
+
+    OasSpecDiffValidator diffValidator = createOasSpecDiffValidator();
+
+    List<OasDiffViolation> violations = diffValidator.validate(createContext(oldOas, newOas), oldOas, newOas);
+
+    if (CollectionUtils.isNotEmpty(violations)) {
+      for (OasDiffViolation violation : violations) {
+        LOGGER.info("left  : {}\nright : {}\nerror : {}\n------",
+            OasObjectPropertyLocation.toPathString(violation.getLeftLocation()),
+            OasObjectPropertyLocation.toPathString(violation.getRightLocation()),
+            violation.getError()
+        );
+      }
+      return;
+    }
+    LOGGER.info("Everything is good");
+  }
+
+  private OpenAPI loadOpenApi(String filePath) throws IOException {
+    String yaml = loadFileContent(filePath);
+    SwaggerParseResult oldParseResult = CompatibilityCheckParser.parseYaml(yaml);
+    OpenAPI openAPI = oldParseResult.getOpenAPI();
+    if (openAPI == null) {
+      StringJoiner errors = new StringJoiner("\n", "Parse errors:", "");
+      if (CollectionUtils.isNotEmpty(oldParseResult.getMessages())) {
+        for (String message : oldParseResult.getMessages()) {
+          errors.add(message);
+        }
+      }
+      throw new RuntimeException(errors.toString());
+    }
+
+    return openAPI;
+  }
+
+
+  private OasSpecDiffValidator createOasSpecDiffValidator() {
+    AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext(
+        DefaultOasSpecDiffValidatorFactory.class.getPackage().getName());
+    try {
+      OasSpecDiffValidatorFactory diffValidatorFactory = ctx.getBean(OasSpecDiffValidatorFactory.class);
+      return diffValidatorFactory.create();
+    } finally {
+      ctx.close();
+    }
+  }
+
+
+  private String loadFileContent(String filePath) throws IOException {
+    Path specPath = Paths.get(filePath);
+    specPath.toAbsolutePath().toString();
+    return FileUtils.readFileToString(specPath.toFile());
+  }
+
+  private OasDiffValidationContext createContext(OpenAPI leftOpenAPI, OpenAPI rightOpenAPI) {
+
+    OasDiffValidationContext context = new OasDiffValidationContext(leftOpenAPI, rightOpenAPI);
+    return context;
+  }
+}
diff --git a/cli/src/main/java/org/apache/servicecomb/toolkit/cli/CheckStyleBase.java b/cli/src/main/java/org/apache/servicecomb/toolkit/cli/CheckStyleBase.java
index e021d9f..393d97d 100644
--- a/cli/src/main/java/org/apache/servicecomb/toolkit/cli/CheckStyleBase.java
+++ b/cli/src/main/java/org/apache/servicecomb/toolkit/cli/CheckStyleBase.java
@@ -24,7 +24,6 @@ import java.util.List;
 
 import org.apache.commons.collections4.CollectionUtils;
 import org.apache.commons.io.FileUtils;
-import org.apache.servicecomb.toolkit.oasv.common.OasObjectProperty;
 import org.apache.servicecomb.toolkit.oasv.common.OasObjectPropertyLocation;
 import org.apache.servicecomb.toolkit.oasv.compliance.ComplianceCheckParser;
 import org.apache.servicecomb.toolkit.oasv.compliance.factory.DefaultOasSpecValidatorFactory;
@@ -37,7 +36,6 @@ import org.slf4j.LoggerFactory;
 import org.springframework.context.annotation.AnnotationConfigApplicationContext;
 
 import io.airlift.airline.Arguments;
-import io.airlift.airline.Command;
 import io.swagger.v3.oas.models.OpenAPI;
 import io.swagger.v3.parser.core.models.SwaggerParseResult;
 
@@ -79,22 +77,14 @@ public class CheckStyleBase implements Runnable {
     List<OasViolation> violations = oasSpecValidator.validate(createContext(openAPI), openAPI);
     if (CollectionUtils.isNotEmpty(violations)) {
       for (OasViolation violation : violations) {
-        LOGGER.info("{}: {}", toPathString(violation.getLocation()), violation.getError());
+        LOGGER.info("path  : {}\nerror : {}\n------",
+            OasObjectPropertyLocation.toPathString(violation.getLocation()), violation.getError());
       }
       return;
     }
     LOGGER.info("Everything is good");
   }
 
-  private String toPathString(OasObjectPropertyLocation location) {
-    StringBuilder sb = new StringBuilder();
-    List<OasObjectProperty> path = location.getPath();
-    for (OasObjectProperty property : path) {
-      sb.append(property.getName()).append('.');
-    }
-    sb.deleteCharAt(sb.length() - 1);
-    return sb.toString();
-  }
 
   private OasSpecValidator createOasSpecValidator() {
     AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext(
diff --git a/cli/src/main/java/org/apache/servicecomb/toolkit/cli/ToolkitMain.java b/cli/src/main/java/org/apache/servicecomb/toolkit/cli/ToolkitMain.java
index 39b2477..5a75e86 100755
--- a/cli/src/main/java/org/apache/servicecomb/toolkit/cli/ToolkitMain.java
+++ b/cli/src/main/java/org/apache/servicecomb/toolkit/cli/ToolkitMain.java
@@ -37,7 +37,12 @@ public class ToolkitMain {
     builder.withDescription("Microservice development toolkit(version " + projectVersion
         + "). ");
     builder.withDefaultCommand(Help.class);
-    builder.withCommands(CodeGenerate.class, DocGenerate.class, CheckStyle.class, CheckStyleAbbr.class, Help.class);
+    builder.withCommands(
+        CodeGenerate.class, DocGenerate.class,
+        CheckStyle.class, CheckStyleAbbr.class,
+        CheckCompatibility.class, CheckCompatibilityAbbr.class,
+        Help.class
+    );
     Runnable cmd = builder.build().parse(args);
 
     cmd.run();
diff --git a/cli/src/test/java/org/apache/servicecomb/toolkit/cli/CliTest.java b/cli/src/test/java/org/apache/servicecomb/toolkit/cli/CliTest.java
index 2068ddb..5990a0b 100755
--- a/cli/src/test/java/org/apache/servicecomb/toolkit/cli/CliTest.java
+++ b/cli/src/test/java/org/apache/servicecomb/toolkit/cli/CliTest.java
@@ -95,7 +95,7 @@ public class CliTest {
   public void testCheckStyle() throws IOException {
     String[] args = new String[] {
         "checkstyle",
-        Paths.get("./src/test/resources/oas/parser-test.yaml").toFile().getCanonicalPath()
+        Paths.get("./src/test/resources/oas/style.yaml").toFile().getCanonicalPath()
     };
     ToolkitMain.main(args);
   }
@@ -104,9 +104,30 @@ public class CliTest {
   public void testCheckStyleAbbr() throws IOException {
     String[] args = new String[] {
         "cs",
-        Paths.get("./src/test/resources/oas/parser-test.yaml").toFile().getCanonicalPath()
+        Paths.get("./src/test/resources/oas/style.yaml").toFile().getCanonicalPath()
     };
     ToolkitMain.main(args);
   }
 
+  @Test
+  public void testCheckCompatibility() throws IOException {
+    String[] args = new String[] {
+        "checkcompatibility",
+        Paths.get("./src/test/resources/oas/compatibility-left.yaml").toFile().getCanonicalPath(),
+        Paths.get("./src/test/resources/oas/compatibility-right.yaml").toFile().getCanonicalPath()
+    };
+    ToolkitMain.main(args);
+  }
+
+  @Test
+  public void testCheckCompatibilityAbbr() throws IOException {
+    String[] args = new String[] {
+        "cc",
+        Paths.get("./src/test/resources/oas/compatibility-left.yaml").toFile().getCanonicalPath(),
+        Paths.get("./src/test/resources/oas/compatibility-right.yaml").toFile().getCanonicalPath()
+    };
+    ToolkitMain.main(args);
+  }
+
+
 }
diff --git a/cli/src/test/resources/oas/parser-test.yaml b/cli/src/test/resources/oas/compatibility-left.yaml
old mode 100644
new mode 100755
similarity index 94%
copy from cli/src/test/resources/oas/parser-test.yaml
copy to cli/src/test/resources/oas/compatibility-left.yaml
index f7b88b5..ea3e0e8
--- a/cli/src/test/resources/oas/parser-test.yaml
+++ b/cli/src/test/resources/oas/compatibility-left.yaml
@@ -17,7 +17,11 @@
 openapi: "3.0.0"
 info:
   version: 1.0.0
-  title: Pet petstore
+  title: Swagger petstore
+  license:
+    name: MIT
+servers:
+  - url: http://petstore.swagger.io/v1
 paths:
   /pets:
     get:
diff --git a/cli/src/test/resources/oas/parser-test.yaml b/cli/src/test/resources/oas/compatibility-right.yaml
old mode 100644
new mode 100755
similarity index 90%
copy from cli/src/test/resources/oas/parser-test.yaml
copy to cli/src/test/resources/oas/compatibility-right.yaml
index f7b88b5..5854b12
--- a/cli/src/test/resources/oas/parser-test.yaml
+++ b/cli/src/test/resources/oas/compatibility-right.yaml
@@ -17,7 +17,11 @@
 openapi: "3.0.0"
 info:
   version: 1.0.0
-  title: Pet petstore
+  title: Swagger petstore
+  license:
+    name: MIT
+servers:
+  - url: http://petstore.swagger.io/v1
 paths:
   /pets:
     get:
@@ -43,6 +47,8 @@ paths:
             encoding:
               foo:
                 contentType: 'application/octet-stream'
+              bar:
+                contentType: 'application/octet-stream'
       responses:
         '200':
           description: A paged array of pets
diff --git a/cli/src/test/resources/oas/parser-test.yaml b/cli/src/test/resources/oas/style.yaml
similarity index 100%
rename from cli/src/test/resources/oas/parser-test.yaml
rename to cli/src/test/resources/oas/style.yaml
diff --git a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/encoding/EncodingAllowedReservedChangeDiffValidatorTest.java b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/encoding/EncodingAllowedReservedChangeDiffValidatorTest.java
index d9d640f..e0e7e51 100755
--- a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/encoding/EncodingAllowedReservedChangeDiffValidatorTest.java
+++ b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/encoding/EncodingAllowedReservedChangeDiffValidatorTest.java
@@ -40,7 +40,6 @@ public class EncodingAllowedReservedChangeDiffValidatorTest extends OasCompatibi
   @Test
   public void validate() {
     OpenAPI leftOpenAPI = loadRelative("petstore-encoding-allow-reserved-a.yaml");
-    System.out.println(leftOpenAPI.toString());
     OpenAPI rightOpenAPI = loadRelative("petstore-encoding-allow-reserved-b.yaml");
     List<OasDiffViolation> violations = oasSpecDiffValidator
       .validate(createContext(leftOpenAPI, rightOpenAPI), leftOpenAPI, rightOpenAPI);
diff --git a/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/common/OasObjectPropertyLocation.java b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/common/OasObjectPropertyLocation.java
index 346e667..a97ef0f 100755
--- a/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/common/OasObjectPropertyLocation.java
+++ b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/common/OasObjectPropertyLocation.java
@@ -117,4 +117,18 @@ public class OasObjectPropertyLocation {
       .add("path=" + path)
       .toString();
   }
+
+  public static String toPathString(OasObjectPropertyLocation location) {
+    if (location == null) {
+      return "";
+    }
+
+    StringBuilder sb = new StringBuilder();
+    List<OasObjectProperty> path = location.getPath();
+    for (OasObjectProperty property : path) {
+      sb.append(property.getName()).append('.');
+    }
+    sb.deleteCharAt(sb.length() - 1);
+    return sb.toString();
+  }
 }
diff --git a/oas-validator/oas-validator-core/src/test/java/org/apache/servicecomb/toolkit/oasv/common/OasObjectPropertyLocationTest.java b/oas-validator/oas-validator-core/src/test/java/org/apache/servicecomb/toolkit/oasv/common/OasObjectPropertyLocationTest.java
new file mode 100644
index 0000000..ac5bcd5
--- /dev/null
+++ b/oas-validator/oas-validator-core/src/test/java/org/apache/servicecomb/toolkit/oasv/common/OasObjectPropertyLocationTest.java
@@ -0,0 +1,16 @@
+package org.apache.servicecomb.toolkit.oasv.common;
+
+import static org.junit.Assert.assertEquals;
+
+import org.junit.Test;
+
+public class OasObjectPropertyLocationTest {
+
+  @Test
+  public void toPathString() {
+    assertEquals("$.foo.bar",
+        OasObjectPropertyLocation.toPathString(OasObjectPropertyLocation.root().property("foo").property("bar")));
+
+    assertEquals("", OasObjectPropertyLocation.toPathString(null));
+  }
+}


[servicecomb-toolkit] 26/26: fix unit test

Posted by ni...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ningjiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/servicecomb-toolkit.git

commit a82dd34ecb111e8a7c723406abcb70f4eb511f96
Author: Daniel Qian <ch...@gmail.com>
AuthorDate: Thu Nov 7 18:25:04 2019 +0800

    fix unit test
---
 .../factory/DefaultComponentsDiffValidatorFactoryTest.java              | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultComponentsDiffValidatorFactoryTest.java b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultComponentsDiffValidatorFactoryTest.java
index fc98e19..5652cb7 100644
--- a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultComponentsDiffValidatorFactoryTest.java
+++ b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultComponentsDiffValidatorFactoryTest.java
@@ -38,7 +38,7 @@ public class DefaultComponentsDiffValidatorFactoryTest {
   @Test
   public void create() {
     List<ComponentsDiffValidator> validators = validatorFactory.create();
-    assertThat(validators).hasSize(7);
+    assertThat(validators).hasSize(6);
   }
 }
 


[servicecomb-toolkit] 10/26: SCB-1553 Integrate oas-validator compliance check to cli Add compliance check capability to cli

Posted by ni...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ningjiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/servicecomb-toolkit.git

commit c09b33fea6f78b54db4f20002d1027475042b491
Author: Daniel Qian <ch...@gmail.com>
AuthorDate: Fri Nov 1 16:33:47 2019 +0800

    SCB-1553 Integrate oas-validator compliance check to cli
    Add compliance check capability to cli
---
 cli/pom.xml                                        |   5 +
 .../apache/servicecomb/toolkit/cli/CheckStyle.java | 125 +++++++++++++++++++++
 .../servicecomb/toolkit/cli/ToolkitMain.java       |   2 +-
 pom.xml                                            |  43 +++++++
 4 files changed, 174 insertions(+), 1 deletion(-)

diff --git a/cli/pom.xml b/cli/pom.xml
index 750c82f..6a222d7 100755
--- a/cli/pom.xml
+++ b/cli/pom.xml
@@ -80,6 +80,11 @@
       <artifactId>log4j-core</artifactId>
       <version>${log4j2.version}</version>
     </dependency>
+
+    <dependency>
+      <groupId>org.apache.servicecomb.toolkit</groupId>
+      <artifactId>oas-validator-compliance</artifactId>
+    </dependency>
   </dependencies>
 
   <build>
diff --git a/cli/src/main/java/org/apache/servicecomb/toolkit/cli/CheckStyle.java b/cli/src/main/java/org/apache/servicecomb/toolkit/cli/CheckStyle.java
new file mode 100644
index 0000000..2ea2f99
--- /dev/null
+++ b/cli/src/main/java/org/apache/servicecomb/toolkit/cli/CheckStyle.java
@@ -0,0 +1,125 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.cli;
+
+import java.io.IOException;
+import java.nio.file.Path;
+import java.nio.file.Paths;
+import java.util.List;
+
+import org.apache.commons.collections4.CollectionUtils;
+import org.apache.commons.io.FileUtils;
+import org.apache.commons.io.IOUtils;
+import org.apache.servicecomb.toolkit.oasv.common.OasObjectProperty;
+import org.apache.servicecomb.toolkit.oasv.common.OasObjectPropertyLocation;
+import org.apache.servicecomb.toolkit.oasv.compliance.ComplianceCheckParser;
+import org.apache.servicecomb.toolkit.oasv.compliance.factory.DefaultOasSpecValidatorFactory;
+import org.apache.servicecomb.toolkit.oasv.validation.api.OasSpecValidator;
+import org.apache.servicecomb.toolkit.oasv.validation.api.OasValidationContext;
+import org.apache.servicecomb.toolkit.oasv.validation.api.OasViolation;
+import org.apache.servicecomb.toolkit.oasv.validation.factory.OasSpecValidatorFactory;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import org.springframework.context.annotation.AnnotationConfigApplicationContext;
+
+import io.airlift.airline.Arguments;
+import io.airlift.airline.Command;
+import io.swagger.v3.oas.models.OpenAPI;
+import io.swagger.v3.parser.core.models.SwaggerParseResult;
+
+@Command(name = "checkstyle",
+    description = "Check style of OpenAPI v3 spec yaml")
+public class CheckStyle implements Runnable {
+
+  private final static Logger LOGGER = LoggerFactory.getLogger(CheckStyle.class);
+
+  @Arguments(
+      title = "file", required = true,
+      description = "OpenAPI v3 spec yaml"
+  )
+  private String filePath;
+
+  @Override
+  public void run() {
+
+    String yaml = null;
+    try {
+      yaml = loadFileContent(filePath);
+    } catch (IOException e) {
+      LOGGER.error(e.getMessage());
+      return;
+    }
+
+    SwaggerParseResult parseResult = ComplianceCheckParser.parseYaml(yaml);
+    OpenAPI openAPI = parseResult.getOpenAPI();
+    if (openAPI == null) {
+      if (CollectionUtils.isNotEmpty(parseResult.getMessages())) {
+        for (String message : parseResult.getMessages()) {
+          LOGGER.error(message);
+        }
+      }
+      LOGGER.error("Parse error");
+      return;
+    }
+
+    OasSpecValidator oasSpecValidator = createOasSpecValidator();
+
+    List<OasViolation> violations = oasSpecValidator.validate(createContext(openAPI), openAPI);
+    if (CollectionUtils.isNotEmpty(violations)) {
+      for (OasViolation violation : violations) {
+        LOGGER.info("{}: {}", toPathString(violation.getLocation()), violation.getError());
+      }
+      return;
+    }
+    LOGGER.info("Everything is good");
+  }
+
+  private String toPathString(OasObjectPropertyLocation location) {
+    StringBuilder sb = new StringBuilder();
+    List<OasObjectProperty> path = location.getPath();
+    for (OasObjectProperty property : path) {
+      sb.append(property.getName()).append('.');
+    }
+    sb.deleteCharAt(sb.length() - 1);
+    return sb.toString();
+  }
+
+  private OasSpecValidator createOasSpecValidator() {
+    AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext(
+        DefaultOasSpecValidatorFactory.class.getPackage().getName());
+    try {
+      OasSpecValidatorFactory oasSpecValidatorFactory = ctx.getBean(OasSpecValidatorFactory.class);
+      return oasSpecValidatorFactory.create();
+    } finally {
+      ctx.close();
+    }
+  }
+
+
+  private String loadFileContent(String filePath) throws IOException {
+    Path specPath = Paths.get(filePath);
+    specPath.toAbsolutePath().toString();
+    return FileUtils.readFileToString(specPath.toFile());
+  }
+
+  private OasValidationContext createContext(OpenAPI openAPI) {
+
+    OasValidationContext oasValidationContext = new OasValidationContext(openAPI);
+    return oasValidationContext;
+  }
+}
diff --git a/cli/src/main/java/org/apache/servicecomb/toolkit/cli/ToolkitMain.java b/cli/src/main/java/org/apache/servicecomb/toolkit/cli/ToolkitMain.java
index b5da899..7bd38f9 100755
--- a/cli/src/main/java/org/apache/servicecomb/toolkit/cli/ToolkitMain.java
+++ b/cli/src/main/java/org/apache/servicecomb/toolkit/cli/ToolkitMain.java
@@ -37,7 +37,7 @@ public class ToolkitMain {
     builder.withDescription("Microservice development toolkit(version " + projectVersion
         + "). ");
     builder.withDefaultCommand(Help.class);
-    builder.withCommands(CodeGenerate.class, DocGenerate.class, Help.class);
+    builder.withCommands(CodeGenerate.class, DocGenerate.class, CheckStyle.class, Help.class);
     Runnable cmd = builder.build().parse(args);
 
     cmd.run();
diff --git a/pom.xml b/pom.xml
index f06893e..768f030 100755
--- a/pom.xml
+++ b/pom.xml
@@ -156,6 +156,49 @@
         <artifactId>toolkit-maven-plugin</artifactId>
         <version>${project.version}</version>
       </dependency>
+
+      <dependency>
+        <groupId>org.apache.servicecomb.toolkit</groupId>
+        <artifactId>oas-validator-core</artifactId>
+        <version>${project.version}</version>
+      </dependency>
+
+      <dependency>
+        <groupId>org.apache.servicecomb.toolkit</groupId>
+        <artifactId>oas-validator-core-spring</artifactId>
+        <version>${project.version}</version>
+      </dependency>
+
+      <dependency>
+        <groupId>org.apache.servicecomb.toolkit</groupId>
+        <artifactId>oas-validator-test</artifactId>
+        <version>${project.version}</version>
+      </dependency>
+
+      <dependency>
+        <groupId>org.apache.servicecomb.toolkit</groupId>
+        <artifactId>oas-validator-compliance</artifactId>
+        <version>${project.version}</version>
+      </dependency>
+
+      <dependency>
+        <groupId>org.apache.servicecomb.toolkit</groupId>
+        <artifactId>oas-validator-compliance-spring</artifactId>
+        <version>${project.version}</version>
+      </dependency>
+
+      <dependency>
+        <groupId>org.apache.servicecomb.toolkit</groupId>
+        <artifactId>oas-validator-compatibility</artifactId>
+        <version>${project.version}</version>
+      </dependency>
+
+      <dependency>
+        <groupId>org.apache.servicecomb.toolkit</groupId>
+        <artifactId>oas-validator-compatibility-spring</artifactId>
+        <version>${project.version}</version>
+      </dependency>
+
     </dependencies>
   </dependencyManagement>
 


[servicecomb-toolkit] 22/26: SCB-1555 Integrate oas-validator compability check to cli Translate compatibility error message to english

Posted by ni...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ningjiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/servicecomb-toolkit.git

commit b979aa6a3686de97355449641eb5aee03c838230
Author: Daniel Qian <ch...@gmail.com>
AuthorDate: Thu Nov 7 15:20:22 2019 +0800

    SCB-1555 Integrate oas-validator compability check to cli
    Translate compatibility error message to english
---
 .../toolkit/cli/CheckCompatibilityAbbr.java        |  3 ++-
 ...EncodingAllowedReservedChangeDiffValidator.java |  3 ++-
 .../parameter/ParameterAddDiffValidator.java       |  4 +++-
 ...arameterAllowEmptyValueChangeDiffValidator.java |  3 ++-
 .../ParameterAllowReservedChangeDiffValidator.java |  3 ++-
 .../ParameterRequiredChangeDiffValidator.java      |  3 ++-
 .../RequestBodyRequiredChangeDiffValidator.java    |  3 ++-
 .../schema/SchemaTypeFormatChangeValidator.java    |  4 ++--
 .../SchemaEnumChangeInRequestValidator.java        |  4 +++-
 ...maExclusiveMaximumChangeInRequestValidator.java |  3 ++-
 ...maExclusiveMinimumChangeInRequestValidator.java |  3 ++-
 .../SchemaMultipleOfChangeInRequestValidator.java  |  4 +++-
 .../SchemaNullableChangeInRequestValidator.java    |  3 ++-
 .../SchemaRequiredChangeInRequestValidator.java    |  4 +++-
 .../SchemaUniqueItemsChangeInRequestValidator.java |  3 ++-
 .../SchemaEnumChangeInResponseValidator.java       |  4 +++-
 ...aExclusiveMaximumChangeInResponseValidator.java |  3 ++-
 ...aExclusiveMinimumChangeInResponseValidator.java |  3 ++-
 .../SchemaMultipleOfChangeInResponseValidator.java |  4 +++-
 .../SchemaNullableChangeInResponseValidator.java   |  3 ++-
 .../SchemaRequiredChangeInResponseValidator.java   |  4 +++-
 ...SchemaUniqueItemsChangeInResponseValidator.java |  3 ++-
 ...dingAllowedReservedChangeDiffValidatorTest.java |  3 ++-
 .../parameter/ParameterAddDiffValidatorTest.java   |  3 ++-
 ...eterAllowEmptyValueChangeDiffValidatorTest.java |  3 ++-
 ...ameterAllowReservedChangeDiffValidatorTest.java |  8 +++-----
 .../ParameterRequiredChangeDiffValidatorTest.java  |  3 ++-
 ...RequestBodyRequiredChangeDiffValidatorTest.java |  3 ++-
 .../SchemaEnumChangeInRequestValidatorTest.java    | 24 ++++++++++++++--------
 ...clusiveMaximumChangeInRequestValidatorTest.java |  5 +++--
 ...clusiveMinimumChangeInRequestValidatorTest.java |  5 +++--
 ...hemaMultipleOfChangeInRequestValidatorTest.java |  4 ++--
 ...SchemaNullableChangeInRequestValidatorTest.java |  5 +++--
 ...SchemaRequiredChangeInRequestValidatorTest.java |  4 ++--
 ...hemaTypeFormatChangeInRequestValidatorTest.java |  4 ++--
 ...emaUniqueItemsChangeInRequestValidatorTest.java |  5 +++--
 .../SchemaEnumChangeInResponseValidatorTest.java   |  2 +-
 ...lusiveMaximumChangeInResponseValidatorTest.java |  3 ++-
 ...lusiveMinimumChangeInResponseValidatorTest.java |  3 ++-
 ...emaMultipleOfChangeInResponseValidatorTest.java |  2 +-
 ...chemaNullableChangeInResponseValidatorTest.java |  3 ++-
 ...chemaRequiredChangeInResponseValidatorTest.java |  2 +-
 ...emaTypeFormatChangeInResponseValidatorTest.java |  2 +-
 ...maUniqueItemsChangeInResponseValidatorTest.java |  3 ++-
 .../diffvalidation/api/DiffViolationMessages.java  | 13 +++++++-----
 .../oasv/common/OasObjectPropertyLocationTest.java | 17 +++++++++++++++
 oas-validator/pom.xml                              |  2 +-
 47 files changed, 135 insertions(+), 70 deletions(-)

diff --git a/cli/src/main/java/org/apache/servicecomb/toolkit/cli/CheckCompatibilityAbbr.java b/cli/src/main/java/org/apache/servicecomb/toolkit/cli/CheckCompatibilityAbbr.java
index 2f14b2b..6b09553 100644
--- a/cli/src/main/java/org/apache/servicecomb/toolkit/cli/CheckCompatibilityAbbr.java
+++ b/cli/src/main/java/org/apache/servicecomb/toolkit/cli/CheckCompatibilityAbbr.java
@@ -20,7 +20,8 @@ package org.apache.servicecomb.toolkit.cli;
 import io.airlift.airline.Command;
 
 @Command(name = "cc",
-    description = "Check compatibility for two OpenAPI v3 spec yamls, right one should be semantically compatible with left one")
+    description = "Check compatibility for two OpenAPI v3 spec yamls,"
+        + " right one should be semantically compatible with left one(abbr for checkcompatibility)")
 public class CheckCompatibilityAbbr extends CheckCompatibilityBase {
 
 }
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/encoding/EncodingAllowedReservedChangeDiffValidator.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/encoding/EncodingAllowedReservedChangeDiffValidator.java
index 614471b..b29e9f2 100755
--- a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/encoding/EncodingAllowedReservedChangeDiffValidator.java
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/encoding/EncodingAllowedReservedChangeDiffValidator.java
@@ -18,6 +18,7 @@
 package org.apache.servicecomb.toolkit.oasv.compatibility.validators.encoding;
 
 import org.apache.servicecomb.toolkit.oasv.common.OasObjectPropertyLocation;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.DiffViolationMessages;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.EncodingDiffValidator;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffValidationContext;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffViolation;
@@ -50,7 +51,7 @@ public class EncodingAllowedReservedChangeDiffValidator
     return singletonList(new OasDiffViolation(
       leftLocation.property("allowReserved"),
       rightLocation.property("allowReserved"),
-      "ไป…ๅ…่ฎธfalse->true็š„ไฟฎๆ”น"
+      DiffViolationMessages.FALSE_TO_TRUE
     ));
 
   }
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/parameter/ParameterAddDiffValidator.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/parameter/ParameterAddDiffValidator.java
index e5ee7e2..d7c4909 100755
--- a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/parameter/ParameterAddDiffValidator.java
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/parameter/ParameterAddDiffValidator.java
@@ -34,6 +34,8 @@ public class ParameterAddDiffValidator
   extends OasObjectDiffValidatorTemplate<Parameter>
   implements ParameterDiffValidator {
 
+  public static final String VIOLATION_MESSAGE = "required=true parameter is not allowed on right side";
+
   @Override
   protected List<OasDiffViolation> validateAdd(OasDiffValidationContext context,
     OasObjectPropertyLocation rightLocation, Parameter rightOasObject) {
@@ -45,7 +47,7 @@ public class ParameterAddDiffValidator
     String message = new StringBuilder()
       .append(ParameterUtils.getKeyString(rightOasObject))
       .append(':')
-      .append("ไป…ๅ…่ฎธๆ–ฐๅขžrequired=false็š„parameter")
+      .append(VIOLATION_MESSAGE)
       .toString()
       ;
 
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/parameter/ParameterAllowEmptyValueChangeDiffValidator.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/parameter/ParameterAllowEmptyValueChangeDiffValidator.java
index 8ac7d39..d181744 100755
--- a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/parameter/ParameterAllowEmptyValueChangeDiffValidator.java
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/parameter/ParameterAllowEmptyValueChangeDiffValidator.java
@@ -18,6 +18,7 @@
 package org.apache.servicecomb.toolkit.oasv.compatibility.validators.parameter;
 
 import org.apache.servicecomb.toolkit.oasv.common.OasObjectPropertyLocation;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.DiffViolationMessages;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffValidationContext;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffViolation;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasObjectDiffValidatorTemplate;
@@ -55,7 +56,7 @@ public class ParameterAllowEmptyValueChangeDiffValidator
     String message = new StringBuilder()
       .append(ParameterUtils.getKeyString(rightOasObject))
       .append(':')
-      .append("ไป…ๅ…่ฎธfalse->true็š„ไฟฎๆ”น")
+      .append(DiffViolationMessages.FALSE_TO_TRUE)
       .toString();
 
     return singletonList(new OasDiffViolation(
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/parameter/ParameterAllowReservedChangeDiffValidator.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/parameter/ParameterAllowReservedChangeDiffValidator.java
index 9cca97a..537c4ba 100755
--- a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/parameter/ParameterAllowReservedChangeDiffValidator.java
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/parameter/ParameterAllowReservedChangeDiffValidator.java
@@ -18,6 +18,7 @@
 package org.apache.servicecomb.toolkit.oasv.compatibility.validators.parameter;
 
 import org.apache.servicecomb.toolkit.oasv.common.OasObjectPropertyLocation;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.DiffViolationMessages;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffValidationContext;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffViolation;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasObjectDiffValidatorTemplate;
@@ -54,7 +55,7 @@ public class ParameterAllowReservedChangeDiffValidator
     String message = new StringBuilder()
       .append(ParameterUtils.getKeyString(rightOasObject))
       .append(':')
-      .append("ไป…ๅ…่ฎธfalse->true็š„ไฟฎๆ”น")
+      .append(DiffViolationMessages.FALSE_TO_TRUE)
       .toString();
 
     return singletonList(new OasDiffViolation(
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/parameter/ParameterRequiredChangeDiffValidator.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/parameter/ParameterRequiredChangeDiffValidator.java
index f629812..36b4bd9 100755
--- a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/parameter/ParameterRequiredChangeDiffValidator.java
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/parameter/ParameterRequiredChangeDiffValidator.java
@@ -18,6 +18,7 @@
 package org.apache.servicecomb.toolkit.oasv.compatibility.validators.parameter;
 
 import org.apache.servicecomb.toolkit.oasv.common.OasObjectPropertyLocation;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.DiffViolationMessages;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffValidationContext;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffViolation;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasObjectDiffValidatorTemplate;
@@ -54,7 +55,7 @@ public class ParameterRequiredChangeDiffValidator
     String message = new StringBuilder()
       .append(ParameterUtils.getKeyString(rightOasObject))
       .append(':')
-      .append("ไป…ๅ…่ฎธtrue->false็š„ไฟฎๆ”น")
+      .append(DiffViolationMessages.TRUE_TO_FALSE)
       .toString();
 
     return singletonList(new OasDiffViolation(
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/requestbody/RequestBodyRequiredChangeDiffValidator.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/requestbody/RequestBodyRequiredChangeDiffValidator.java
index 76acb03..28c6e70 100755
--- a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/requestbody/RequestBodyRequiredChangeDiffValidator.java
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/requestbody/RequestBodyRequiredChangeDiffValidator.java
@@ -18,6 +18,7 @@
 package org.apache.servicecomb.toolkit.oasv.compatibility.validators.requestbody;
 
 import org.apache.servicecomb.toolkit.oasv.common.OasObjectPropertyLocation;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.DiffViolationMessages;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffValidationContext;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffViolation;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasObjectDiffValidatorTemplate;
@@ -53,7 +54,7 @@ public class RequestBodyRequiredChangeDiffValidator
     return singletonList(new OasDiffViolation(
       leftLocation.property("required"),
       rightLocation.property("required"),
-      "ไป…ๅ…่ฎธtrue->false็š„ไฟฎๆ”น"
+      DiffViolationMessages.TRUE_TO_FALSE
     ));
 
   }
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/SchemaTypeFormatChangeValidator.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/SchemaTypeFormatChangeValidator.java
index e302456..7c683ea 100755
--- a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/SchemaTypeFormatChangeValidator.java
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/SchemaTypeFormatChangeValidator.java
@@ -46,7 +46,7 @@ public abstract class SchemaTypeFormatChangeValidator implements SchemaCompareVa
       return emptyList();
     }
 
-    StringBuilder message = new StringBuilder("ไธๅ…่ฎธ");
+    StringBuilder message = new StringBuilder("the change ");
     message
       .append("(type=")
       .append(leftTypeFormat.getType())
@@ -59,7 +59,7 @@ public abstract class SchemaTypeFormatChangeValidator implements SchemaCompareVa
       .append(",format=")
       .append(rightTypeFormat.getFormat())
       .append(')')
-      .append("็š„ไฟฎๆ”น");
+      .append(" is not allowed");
 
     return singletonList(new OasDiffViolation(leftLocation, rightLocation, message.toString()));
 
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaEnumChangeInRequestValidator.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaEnumChangeInRequestValidator.java
index ef8192f..d1ba7db 100755
--- a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaEnumChangeInRequestValidator.java
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaEnumChangeInRequestValidator.java
@@ -30,6 +30,8 @@ import static java.util.Collections.emptyList;
 
 public class SchemaEnumChangeInRequestValidator extends SchemaPropertyChangeValidator<List> {
 
+  public static final String VIOLATION_MESSAGE = "delete enum on right side is not allowed";
+
   @Override
   protected List getProperty(Schema schema) {
     return ObjectUtils.defaultIfNull(schema.getEnum(), emptyList());
@@ -47,7 +49,7 @@ public class SchemaEnumChangeInRequestValidator extends SchemaPropertyChangeVali
 
   @Override
   protected String getMessage(List leftProperty, List rightProperty) {
-    return "ไธๅ…่ฎธๅˆ ้™คenum";
+    return VIOLATION_MESSAGE;
   }
 
   @Override
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaExclusiveMaximumChangeInRequestValidator.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaExclusiveMaximumChangeInRequestValidator.java
index b724510..7b13242 100755
--- a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaExclusiveMaximumChangeInRequestValidator.java
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaExclusiveMaximumChangeInRequestValidator.java
@@ -17,6 +17,7 @@
 
 package org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.request;
 
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.DiffViolationMessages;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffValidationContext;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.util.ChangeRangeCheckUtils;
 import org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.SchemaPropertyChangeValidator;
@@ -49,7 +50,7 @@ public class SchemaExclusiveMaximumChangeInRequestValidator extends SchemaProper
 
   @Override
   protected String getMessage(Boolean leftProperty, Boolean rightProperty) {
-    return "ไป…ๅ…่ฎธtrue->false็š„ไฟฎๆ”น";
+    return DiffViolationMessages.TRUE_TO_FALSE;
   }
 
   @Override
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaExclusiveMinimumChangeInRequestValidator.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaExclusiveMinimumChangeInRequestValidator.java
index 5481f59..fb4f343 100755
--- a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaExclusiveMinimumChangeInRequestValidator.java
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaExclusiveMinimumChangeInRequestValidator.java
@@ -17,6 +17,7 @@
 
 package org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.request;
 
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.DiffViolationMessages;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffValidationContext;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.util.ChangeRangeCheckUtils;
 import org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.SchemaPropertyChangeValidator;
@@ -47,7 +48,7 @@ public class SchemaExclusiveMinimumChangeInRequestValidator extends SchemaProper
 
   @Override
   protected String getMessage(Boolean leftProperty, Boolean rightProperty) {
-    return "ไป…ๅ…่ฎธtrue->false็š„ไฟฎๆ”น";
+    return DiffViolationMessages.TRUE_TO_FALSE;
   }
 
   @Override
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaMultipleOfChangeInRequestValidator.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaMultipleOfChangeInRequestValidator.java
index 1a9e619..f05af70 100755
--- a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaMultipleOfChangeInRequestValidator.java
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaMultipleOfChangeInRequestValidator.java
@@ -28,6 +28,8 @@ import static org.apache.servicecomb.toolkit.oasv.diffvalidation.util.OasDiffVal
 
 public class SchemaMultipleOfChangeInRequestValidator extends SchemaPropertyChangeValidator<BigDecimal> {
 
+  public static final String VIOLATION_MESSAGE = "right value is neither equal to left value nor a factor of left value";
+
   @Override
   protected BigDecimal getProperty(Schema schema) {
     return schema.getMultipleOf();
@@ -40,7 +42,7 @@ public class SchemaMultipleOfChangeInRequestValidator extends SchemaPropertyChan
 
   @Override
   protected String getMessage(BigDecimal leftProperty, BigDecimal rightProperty) {
-    return "ๆ–ฐๅ€ผๅฟ…้กป==ๆ—งๅ€ผๆˆ–ๆ˜ฏๆ—งๅ€ผ็š„ๅ› ๅญ";
+    return VIOLATION_MESSAGE;
   }
 
   @Override
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaNullableChangeInRequestValidator.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaNullableChangeInRequestValidator.java
index abebca1..2ab676f 100755
--- a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaNullableChangeInRequestValidator.java
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaNullableChangeInRequestValidator.java
@@ -17,6 +17,7 @@
 
 package org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.request;
 
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.DiffViolationMessages;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffValidationContext;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.util.ChangeRangeCheckUtils;
 import org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.SchemaPropertyChangeValidator;
@@ -47,7 +48,7 @@ public class SchemaNullableChangeInRequestValidator extends SchemaPropertyChange
 
   @Override
   protected String getMessage(Boolean leftProperty, Boolean rightProperty) {
-    return "ไป…ๅ…่ฎธfalse->true็š„ไฟฎๆ”น";
+    return DiffViolationMessages.FALSE_TO_TRUE;
   }
 
   @Override
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaRequiredChangeInRequestValidator.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaRequiredChangeInRequestValidator.java
index c090054..004d1e8 100755
--- a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaRequiredChangeInRequestValidator.java
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaRequiredChangeInRequestValidator.java
@@ -30,6 +30,8 @@ import static java.util.Collections.emptyList;
 
 public class SchemaRequiredChangeInRequestValidator extends SchemaPropertyChangeValidator<List<String>> {
 
+  public static final String VIOLATION_MESSAGE = "add required fields is not allowed on right side";
+
   @Override
   protected List<String> getProperty(Schema schema) {
     return ObjectUtils.defaultIfNull(schema.getRequired(), emptyList());
@@ -47,7 +49,7 @@ public class SchemaRequiredChangeInRequestValidator extends SchemaPropertyChange
 
   @Override
   protected String getMessage(List<String> leftProperty, List<String> rightProperty) {
-    return "ไธๅ…่ฎธๆ–ฐๅขžrequiredๅญ—ๆฎต";
+    return VIOLATION_MESSAGE;
   }
 
   @Override
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaUniqueItemsChangeInRequestValidator.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaUniqueItemsChangeInRequestValidator.java
index de69be0..7ba71f2 100755
--- a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaUniqueItemsChangeInRequestValidator.java
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaUniqueItemsChangeInRequestValidator.java
@@ -17,6 +17,7 @@
 
 package org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.request;
 
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.DiffViolationMessages;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffValidationContext;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.util.ChangeRangeCheckUtils;
 import org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.SchemaPropertyChangeValidator;
@@ -46,7 +47,7 @@ public class SchemaUniqueItemsChangeInRequestValidator extends SchemaPropertyCha
 
   @Override
   protected String getMessage(Boolean leftProperty, Boolean rightProperty) {
-    return "ไป…ๅ…่ฎธtrue->false็š„ไฟฎๆ”น";
+    return DiffViolationMessages.TRUE_TO_FALSE;
   }
 
   @Override
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaEnumChangeInResponseValidator.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaEnumChangeInResponseValidator.java
index 0656f83..c5c9de6 100755
--- a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaEnumChangeInResponseValidator.java
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaEnumChangeInResponseValidator.java
@@ -29,6 +29,8 @@ import static java.util.Collections.emptyList;
 
 public class SchemaEnumChangeInResponseValidator extends SchemaPropertyChangeValidator<List> {
 
+  public static final String VIOLATION_MESSAGE = "add enum on right side is not allowed";
+
   @Override
   protected List getProperty(Schema schema) {
     return ObjectUtils.defaultIfNull(schema.getEnum(), emptyList());
@@ -46,7 +48,7 @@ public class SchemaEnumChangeInResponseValidator extends SchemaPropertyChangeVal
 
   @Override
   protected String getMessage(List leftProperty, List rightProperty) {
-    return "ไธๅ…่ฎธๆ–ฐๅขženum";
+    return VIOLATION_MESSAGE;
   }
 
   @Override
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaExclusiveMaximumChangeInResponseValidator.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaExclusiveMaximumChangeInResponseValidator.java
index 5c0084d..217d950 100755
--- a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaExclusiveMaximumChangeInResponseValidator.java
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaExclusiveMaximumChangeInResponseValidator.java
@@ -17,6 +17,7 @@
 
 package org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.response;
 
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.DiffViolationMessages;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffValidationContext;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.util.ChangeRangeCheckUtils;
 import org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.SchemaPropertyChangeValidator;
@@ -48,7 +49,7 @@ public class SchemaExclusiveMaximumChangeInResponseValidator extends SchemaPrope
 
   @Override
   protected String getMessage(Boolean leftProperty, Boolean rightProperty) {
-    return "ไป…ๅ…่ฎธfalse->true็š„ไฟฎๆ”น";
+    return DiffViolationMessages.FALSE_TO_TRUE;
   }
 
   @Override
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaExclusiveMinimumChangeInResponseValidator.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaExclusiveMinimumChangeInResponseValidator.java
index 25ce187..d34ffaf 100755
--- a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaExclusiveMinimumChangeInResponseValidator.java
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaExclusiveMinimumChangeInResponseValidator.java
@@ -17,6 +17,7 @@
 
 package org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.response;
 
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.DiffViolationMessages;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffValidationContext;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.util.ChangeRangeCheckUtils;
 import org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.SchemaPropertyChangeValidator;
@@ -48,7 +49,7 @@ public class SchemaExclusiveMinimumChangeInResponseValidator extends SchemaPrope
 
   @Override
   protected String getMessage(Boolean leftProperty, Boolean rightProperty) {
-    return "ไป…ๅ…่ฎธfalse->true็š„ไฟฎๆ”น";
+    return DiffViolationMessages.FALSE_TO_TRUE;
   }
 
   @Override
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaMultipleOfChangeInResponseValidator.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaMultipleOfChangeInResponseValidator.java
index 0614ecb..28564b8 100755
--- a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaMultipleOfChangeInResponseValidator.java
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaMultipleOfChangeInResponseValidator.java
@@ -27,6 +27,8 @@ import static org.apache.servicecomb.toolkit.oasv.diffvalidation.util.OasDiffVal
 
 public class SchemaMultipleOfChangeInResponseValidator extends SchemaPropertyChangeValidator<BigDecimal> {
 
+  public static final String VIOLATION_MESSAGE = "right value is neither equal to left value nor multiple of left value";
+
   @Override
   protected BigDecimal getProperty(Schema schema) {
     return schema.getMultipleOf();
@@ -39,7 +41,7 @@ public class SchemaMultipleOfChangeInResponseValidator extends SchemaPropertyCha
 
   @Override
   protected String getMessage(BigDecimal leftProperty, BigDecimal rightProperty) {
-    return "ๆ–ฐๅ€ผๅฟ…้กป==ๆ—งๅ€ผๆˆ–ๆ˜ฏๆ—งๅ€ผ็š„ๅ€ๆ•ฐ";
+    return VIOLATION_MESSAGE;
   }
 
   @Override
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaNullableChangeInResponseValidator.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaNullableChangeInResponseValidator.java
index 2c69efb..6c52d83 100755
--- a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaNullableChangeInResponseValidator.java
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaNullableChangeInResponseValidator.java
@@ -17,6 +17,7 @@
 
 package org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.response;
 
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.DiffViolationMessages;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffValidationContext;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.util.ChangeRangeCheckUtils;
 import org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.SchemaPropertyChangeValidator;
@@ -46,7 +47,7 @@ public class SchemaNullableChangeInResponseValidator extends SchemaPropertyChang
 
   @Override
   protected String getMessage(Boolean leftProperty, Boolean rightProperty) {
-    return "ไป…ๅ…่ฎธtrue->false็š„ไฟฎๆ”น";
+    return DiffViolationMessages.TRUE_TO_FALSE;
   }
 
   @Override
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaRequiredChangeInResponseValidator.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaRequiredChangeInResponseValidator.java
index 7f64f45..987742d 100755
--- a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaRequiredChangeInResponseValidator.java
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaRequiredChangeInResponseValidator.java
@@ -29,6 +29,8 @@ import static java.util.Collections.emptyList;
 
 public class SchemaRequiredChangeInResponseValidator extends SchemaPropertyChangeValidator<List<String>> {
 
+  public static final String VIOLATION_MESSAGE = "delete required fields is not allowed on right side";
+
   @Override
   protected List<String> getProperty(Schema schema) {
     return ObjectUtils.defaultIfNull(schema.getRequired(), emptyList());
@@ -46,7 +48,7 @@ public class SchemaRequiredChangeInResponseValidator extends SchemaPropertyChang
 
   @Override
   protected String getMessage(List<String> leftProperty, List<String> rightProperty) {
-    return "ไธๅ…่ฎธๅˆ ้™คrequiredๅญ—ๆฎต";
+    return SchemaRequiredChangeInResponseValidator.VIOLATION_MESSAGE;
   }
 
   @Override
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaUniqueItemsChangeInResponseValidator.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaUniqueItemsChangeInResponseValidator.java
index 372dae7..946668f 100755
--- a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaUniqueItemsChangeInResponseValidator.java
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaUniqueItemsChangeInResponseValidator.java
@@ -17,6 +17,7 @@
 
 package org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.response;
 
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.DiffViolationMessages;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffValidationContext;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.util.ChangeRangeCheckUtils;
 import org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.SchemaPropertyChangeValidator;
@@ -45,7 +46,7 @@ public class SchemaUniqueItemsChangeInResponseValidator extends SchemaPropertyCh
 
   @Override
   protected String getMessage(Boolean leftProperty, Boolean rightProperty) {
-    return "ไป…ๅ…่ฎธfalse->true็š„ไฟฎๆ”น";
+    return DiffViolationMessages.FALSE_TO_TRUE;
   }
 
   @Override
diff --git a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/encoding/EncodingAllowedReservedChangeDiffValidatorTest.java b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/encoding/EncodingAllowedReservedChangeDiffValidatorTest.java
index e0e7e51..9fe0a75 100755
--- a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/encoding/EncodingAllowedReservedChangeDiffValidatorTest.java
+++ b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/encoding/EncodingAllowedReservedChangeDiffValidatorTest.java
@@ -17,6 +17,7 @@
 
 package org.apache.servicecomb.toolkit.oasv.compatibility.validators.encoding;
 
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.DiffViolationMessages;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.EncodingDiffValidator;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffViolation;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.config.OasDiffValidatorsSkeletonConfiguration;
@@ -47,7 +48,7 @@ public class EncodingAllowedReservedChangeDiffValidatorTest extends OasCompatibi
     assertThat(violations)
       .containsExactlyInAnyOrder(
         createViolation(
-          "ไป…ๅ…่ฎธfalse->true็š„ไฟฎๆ”น",
+          DiffViolationMessages.FALSE_TO_TRUE,
           new Object[] {
             "paths", PATHS,
             "/pets", PATH_ITEM,
diff --git a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/parameter/ParameterAddDiffValidatorTest.java b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/parameter/ParameterAddDiffValidatorTest.java
index 0c9c9aa..0182be1 100755
--- a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/parameter/ParameterAddDiffValidatorTest.java
+++ b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/parameter/ParameterAddDiffValidatorTest.java
@@ -32,6 +32,7 @@ import org.springframework.test.context.ContextConfiguration;
 import java.util.List;
 
 import static org.apache.servicecomb.toolkit.oasv.common.OasObjectType.*;
+import static org.apache.servicecomb.toolkit.oasv.compatibility.validators.parameter.ParameterAddDiffValidator.VIOLATION_MESSAGE;
 import static org.assertj.core.api.Assertions.assertThat;
 
 @ContextConfiguration(classes = ParameterAddDiffValidatorTest.TestConfiguration.class)
@@ -47,7 +48,7 @@ public class ParameterAddDiffValidatorTest extends OasCompatibilityTestBase {
     assertThat(violations)
       .containsExactlyInAnyOrder(
         createViolationRight(
-          "[name=bar,in=query]:ไป…ๅ…่ฎธๆ–ฐๅขžrequired=false็š„parameter",
+          "[name=bar,in=query]:" + VIOLATION_MESSAGE,
           new Object[] {
             "paths", PATHS,
             "/pets", PATH_ITEM,
diff --git a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/parameter/ParameterAllowEmptyValueChangeDiffValidatorTest.java b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/parameter/ParameterAllowEmptyValueChangeDiffValidatorTest.java
index e16caa0..45d80b0 100755
--- a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/parameter/ParameterAllowEmptyValueChangeDiffValidatorTest.java
+++ b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/parameter/ParameterAllowEmptyValueChangeDiffValidatorTest.java
@@ -17,6 +17,7 @@
 
 package org.apache.servicecomb.toolkit.oasv.compatibility.validators.parameter;
 
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.DiffViolationMessages;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffViolation;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.ParameterDiffValidator;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.config.OasDiffValidatorsSkeletonConfiguration;
@@ -47,7 +48,7 @@ public class ParameterAllowEmptyValueChangeDiffValidatorTest extends OasCompatib
     assertThat(violations)
       .containsExactlyInAnyOrder(
         createViolation(
-          "[name=limit4,in=query]:ไป…ๅ…่ฎธfalse->true็š„ไฟฎๆ”น",
+          "[name=limit4,in=query]:" + DiffViolationMessages.FALSE_TO_TRUE,
           new Object[] {
             "paths", PATHS,
             "/pets", PATH_ITEM,
diff --git a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/parameter/ParameterAllowReservedChangeDiffValidatorTest.java b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/parameter/ParameterAllowReservedChangeDiffValidatorTest.java
index 96f2a52..70b82a8 100755
--- a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/parameter/ParameterAllowReservedChangeDiffValidatorTest.java
+++ b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/parameter/ParameterAllowReservedChangeDiffValidatorTest.java
@@ -17,6 +17,7 @@
 
 package org.apache.servicecomb.toolkit.oasv.compatibility.validators.parameter;
 
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.DiffViolationMessages;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffViolation;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.ParameterDiffValidator;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.config.OasDiffValidatorsSkeletonConfiguration;
@@ -41,10 +42,7 @@ public class ParameterAllowReservedChangeDiffValidatorTest extends OasCompatibil
   public void validate() {
   }
 
-  /**
-   * TODO swagger parserๅฏนไบŽallowReservedๅญ—ๆฎต็š„ๅๅบๅˆ—ๅŒ–ๅญ˜ๅœจ้—ฎ้ข˜๏ผŒๅ…ˆ่ทณ่ฟ‡ๆญคๆต‹่ฏ•
-   * https://github.com/swagger-api/swagger-parser/issues/1108
-   */
+  @Test
   public void validateBroken() {
     OpenAPI leftOpenAPI = loadRelative("petstore-parameter-allow-reserved-a.yaml");
     System.out.println(leftOpenAPI.toString());
@@ -55,7 +53,7 @@ public class ParameterAllowReservedChangeDiffValidatorTest extends OasCompatibil
     assertThat(violations)
       .containsExactlyInAnyOrder(
         createViolation(
-          "[name=limit4,in=query]:ไป…ๅ…่ฎธfalse->true็š„ไฟฎๆ”น",
+          "[name=limit4,in=query]:" + DiffViolationMessages.FALSE_TO_TRUE,
           new Object[] {
             "paths", PATHS,
             "/pets", PATH_ITEM,
diff --git a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/parameter/ParameterRequiredChangeDiffValidatorTest.java b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/parameter/ParameterRequiredChangeDiffValidatorTest.java
index b6535ab..7273321 100755
--- a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/parameter/ParameterRequiredChangeDiffValidatorTest.java
+++ b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/parameter/ParameterRequiredChangeDiffValidatorTest.java
@@ -17,6 +17,7 @@
 
 package org.apache.servicecomb.toolkit.oasv.compatibility.validators.parameter;
 
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.DiffViolationMessages;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffViolation;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.ParameterDiffValidator;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.config.OasDiffValidatorsSkeletonConfiguration;
@@ -47,7 +48,7 @@ public class ParameterRequiredChangeDiffValidatorTest extends OasCompatibilityTe
     assertThat(violations)
       .containsExactlyInAnyOrder(
         createViolation(
-          "[name=limit,in=query]:ไป…ๅ…่ฎธtrue->false็š„ไฟฎๆ”น",
+          "[name=limit,in=query]:" + DiffViolationMessages.TRUE_TO_FALSE,
           new Object[] {
             "paths", PATHS,
             "/pets", PATH_ITEM,
diff --git a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/requestbody/RequestBodyRequiredChangeDiffValidatorTest.java b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/requestbody/RequestBodyRequiredChangeDiffValidatorTest.java
index a16bb42..f8d2ea4 100755
--- a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/requestbody/RequestBodyRequiredChangeDiffValidatorTest.java
+++ b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/requestbody/RequestBodyRequiredChangeDiffValidatorTest.java
@@ -17,6 +17,7 @@
 
 package org.apache.servicecomb.toolkit.oasv.compatibility.validators.requestbody;
 
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.DiffViolationMessages;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffViolation;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.RequestBodyDiffValidator;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.config.OasDiffValidatorsSkeletonConfiguration;
@@ -47,7 +48,7 @@ public class RequestBodyRequiredChangeDiffValidatorTest extends OasCompatibility
     assertThat(violations)
       .containsExactlyInAnyOrder(
         createViolationBoth(
-          "ไป…ๅ…่ฎธtrue->false็š„ไฟฎๆ”น",
+          DiffViolationMessages.TRUE_TO_FALSE,
           new Object[] {
             "paths", PATHS,
             "/pets", PATH_ITEM,
diff --git a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaEnumChangeInRequestValidatorTest.java b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaEnumChangeInRequestValidatorTest.java
index 67abd6d..b5e3fb0 100755
--- a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaEnumChangeInRequestValidatorTest.java
+++ b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaEnumChangeInRequestValidatorTest.java
@@ -17,22 +17,28 @@
 
 package org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.request;
 
+import static org.apache.servicecomb.toolkit.oasv.common.OasObjectType.MEDIA_TYPE;
+import static org.apache.servicecomb.toolkit.oasv.common.OasObjectType.OPERATION;
+import static org.apache.servicecomb.toolkit.oasv.common.OasObjectType.PARAMETER;
+import static org.apache.servicecomb.toolkit.oasv.common.OasObjectType.PATHS;
+import static org.apache.servicecomb.toolkit.oasv.common.OasObjectType.PATH_ITEM;
+import static org.apache.servicecomb.toolkit.oasv.common.OasObjectType.REQUEST_BODY;
+import static org.apache.servicecomb.toolkit.oasv.common.OasObjectType.SCHEMA;
+import static org.assertj.core.api.Assertions.assertThat;
+
+import java.util.List;
+
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.OasCompatibilityTestBase;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffViolation;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.SchemaCompareValidator;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.config.OasDiffValidatorsSkeletonConfiguration;
-
-import org.apache.servicecomb.toolkit.oasv.compatibility.validators.OasCompatibilityTestBase;
-import io.swagger.v3.oas.models.OpenAPI;
 import org.junit.Test;
 import org.springframework.context.annotation.Bean;
 import org.springframework.context.annotation.Configuration;
 import org.springframework.context.annotation.Import;
 import org.springframework.test.context.ContextConfiguration;
 
-import java.util.List;
-
-import static org.apache.servicecomb.toolkit.oasv.common.OasObjectType.*;
-import static org.assertj.core.api.Assertions.assertThat;
+import io.swagger.v3.oas.models.OpenAPI;
 
 @ContextConfiguration(classes = SchemaEnumChangeInRequestValidatorTest.TestConfiguration.class)
 public class SchemaEnumChangeInRequestValidatorTest extends OasCompatibilityTestBase {
@@ -47,7 +53,7 @@ public class SchemaEnumChangeInRequestValidatorTest extends OasCompatibilityTest
     assertThat(violations)
       .containsExactlyInAnyOrder(
         createViolationBoth(
-          "ไธๅ…่ฎธๅˆ ้™คenum",
+            SchemaEnumChangeInRequestValidator.VIOLATION_MESSAGE,
           new Object[] {
             "paths", PATHS,
             "/pets", PATH_ITEM,
@@ -59,7 +65,7 @@ public class SchemaEnumChangeInRequestValidatorTest extends OasCompatibilityTest
           }
         ),
         createViolationBoth(
-          "ไธๅ…่ฎธๅˆ ้™คenum",
+            SchemaEnumChangeInRequestValidator.VIOLATION_MESSAGE,
           new Object[] {
             "paths", PATHS,
             "/pets", PATH_ITEM,
diff --git a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaExclusiveMaximumChangeInRequestValidatorTest.java b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaExclusiveMaximumChangeInRequestValidatorTest.java
index 8d0ec1a..60bd30a 100755
--- a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaExclusiveMaximumChangeInRequestValidatorTest.java
+++ b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaExclusiveMaximumChangeInRequestValidatorTest.java
@@ -17,6 +17,7 @@
 
 package org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.request;
 
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.DiffViolationMessages;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffViolation;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.SchemaCompareValidator;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.config.OasDiffValidatorsSkeletonConfiguration;
@@ -47,7 +48,7 @@ public class SchemaExclusiveMaximumChangeInRequestValidatorTest extends OasCompa
     assertThat(violations)
       .containsExactlyInAnyOrder(
         createViolationBoth(
-          "ไป…ๅ…่ฎธtrue->false็š„ไฟฎๆ”น",
+          DiffViolationMessages.TRUE_TO_FALSE,
           new Object[] {
             "paths", PATHS,
             "/pets", PATH_ITEM,
@@ -59,7 +60,7 @@ public class SchemaExclusiveMaximumChangeInRequestValidatorTest extends OasCompa
           }
         ),
         createViolationBoth(
-          "ไป…ๅ…่ฎธtrue->false็š„ไฟฎๆ”น",
+          DiffViolationMessages.TRUE_TO_FALSE,
           new Object[] {
             "paths", PATHS,
             "/pets", PATH_ITEM,
diff --git a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaExclusiveMinimumChangeInRequestValidatorTest.java b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaExclusiveMinimumChangeInRequestValidatorTest.java
index 2896312..09fc099 100755
--- a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaExclusiveMinimumChangeInRequestValidatorTest.java
+++ b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaExclusiveMinimumChangeInRequestValidatorTest.java
@@ -17,6 +17,7 @@
 
 package org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.request;
 
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.DiffViolationMessages;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffViolation;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.SchemaCompareValidator;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.config.OasDiffValidatorsSkeletonConfiguration;
@@ -47,7 +48,7 @@ public class SchemaExclusiveMinimumChangeInRequestValidatorTest extends OasCompa
     assertThat(violations)
       .containsExactlyInAnyOrder(
         createViolationBoth(
-          "ไป…ๅ…่ฎธtrue->false็š„ไฟฎๆ”น",
+          DiffViolationMessages.TRUE_TO_FALSE,
           new Object[] {
             "paths", PATHS,
             "/pets", PATH_ITEM,
@@ -59,7 +60,7 @@ public class SchemaExclusiveMinimumChangeInRequestValidatorTest extends OasCompa
           }
         ),
         createViolationBoth(
-          "ไป…ๅ…่ฎธtrue->false็š„ไฟฎๆ”น",
+          DiffViolationMessages.TRUE_TO_FALSE,
           new Object[] {
             "paths", PATHS,
             "/pets", PATH_ITEM,
diff --git a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaMultipleOfChangeInRequestValidatorTest.java b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaMultipleOfChangeInRequestValidatorTest.java
index 9bae7c6..8d5fdd4 100755
--- a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaMultipleOfChangeInRequestValidatorTest.java
+++ b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaMultipleOfChangeInRequestValidatorTest.java
@@ -47,7 +47,7 @@ public class SchemaMultipleOfChangeInRequestValidatorTest extends OasCompatibili
     assertThat(violations)
       .containsExactlyInAnyOrder(
         createViolationBoth(
-          "ๆ–ฐๅ€ผๅฟ…้กป==ๆ—งๅ€ผๆˆ–ๆ˜ฏๆ—งๅ€ผ็š„ๅ› ๅญ",
+            SchemaMultipleOfChangeInRequestValidator.VIOLATION_MESSAGE,
           new Object[] {
             "paths", PATHS,
             "/pets", PATH_ITEM,
@@ -59,7 +59,7 @@ public class SchemaMultipleOfChangeInRequestValidatorTest extends OasCompatibili
           }
         ),
         createViolationBoth(
-          "ๆ–ฐๅ€ผๅฟ…้กป==ๆ—งๅ€ผๆˆ–ๆ˜ฏๆ—งๅ€ผ็š„ๅ› ๅญ",
+            SchemaMultipleOfChangeInRequestValidator.VIOLATION_MESSAGE,
           new Object[] {
             "paths", PATHS,
             "/pets", PATH_ITEM,
diff --git a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaNullableChangeInRequestValidatorTest.java b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaNullableChangeInRequestValidatorTest.java
index da437cb..d575194 100755
--- a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaNullableChangeInRequestValidatorTest.java
+++ b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaNullableChangeInRequestValidatorTest.java
@@ -17,6 +17,7 @@
 
 package org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.request;
 
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.DiffViolationMessages;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffViolation;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.SchemaCompareValidator;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.config.OasDiffValidatorsSkeletonConfiguration;
@@ -47,7 +48,7 @@ public class SchemaNullableChangeInRequestValidatorTest extends OasCompatibility
     assertThat(violations)
       .containsExactlyInAnyOrder(
         createViolationBoth(
-          "ไป…ๅ…่ฎธfalse->true็š„ไฟฎๆ”น",
+          DiffViolationMessages.FALSE_TO_TRUE,
           new Object[] {
             "paths", PATHS,
             "/pets", PATH_ITEM,
@@ -59,7 +60,7 @@ public class SchemaNullableChangeInRequestValidatorTest extends OasCompatibility
           }
         ),
         createViolationBoth(
-          "ไป…ๅ…่ฎธfalse->true็š„ไฟฎๆ”น",
+          DiffViolationMessages.FALSE_TO_TRUE,
           new Object[] {
             "paths", PATHS,
             "/pets", PATH_ITEM,
diff --git a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaRequiredChangeInRequestValidatorTest.java b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaRequiredChangeInRequestValidatorTest.java
index ab6974b..882eea9 100755
--- a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaRequiredChangeInRequestValidatorTest.java
+++ b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaRequiredChangeInRequestValidatorTest.java
@@ -47,7 +47,7 @@ public class SchemaRequiredChangeInRequestValidatorTest extends OasCompatibility
     assertThat(violations)
       .containsExactlyInAnyOrder(
         createViolationBoth(
-          "ไธๅ…่ฎธๆ–ฐๅขžrequiredๅญ—ๆฎต",
+            SchemaRequiredChangeInRequestValidator.VIOLATION_MESSAGE,
           new Object[] {
             "paths", PATHS,
             "/pets", PATH_ITEM,
@@ -58,7 +58,7 @@ public class SchemaRequiredChangeInRequestValidatorTest extends OasCompatibility
           }
         ),
         createViolationBoth(
-          "ไธๅ…่ฎธๆ–ฐๅขžrequiredๅญ—ๆฎต",
+            SchemaRequiredChangeInRequestValidator.VIOLATION_MESSAGE,
           new Object[] {
             "paths", PATHS,
             "/pets", PATH_ITEM,
diff --git a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaTypeFormatChangeInRequestValidatorTest.java b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaTypeFormatChangeInRequestValidatorTest.java
index f04d4d5..a93d5e2 100755
--- a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaTypeFormatChangeInRequestValidatorTest.java
+++ b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaTypeFormatChangeInRequestValidatorTest.java
@@ -47,7 +47,7 @@ public class SchemaTypeFormatChangeInRequestValidatorTest extends OasCompatibili
     assertThat(violations)
       .containsExactlyInAnyOrder(
         createViolationBoth(
-          "ไธๅ…่ฎธ(type=integer,format=null)->(type=string,format=null)็š„ไฟฎๆ”น",
+          "the change (type=integer,format=null)->(type=string,format=null) is not allowed",
           new Object[] {
             "paths", PATHS,
             "/pets", PATH_ITEM,
@@ -59,7 +59,7 @@ public class SchemaTypeFormatChangeInRequestValidatorTest extends OasCompatibili
         ),
 
         createViolationBoth(
-          "ไธๅ…่ฎธ(type=integer,format=null)->(type=string,format=null)็š„ไฟฎๆ”น",
+          "the change (type=integer,format=null)->(type=string,format=null) is not allowed",
           new Object[] {
             "paths", PATHS,
             "/pets", PATH_ITEM,
diff --git a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaUniqueItemsChangeInRequestValidatorTest.java b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaUniqueItemsChangeInRequestValidatorTest.java
index 4356b44..9c74e37 100755
--- a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaUniqueItemsChangeInRequestValidatorTest.java
+++ b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/request/SchemaUniqueItemsChangeInRequestValidatorTest.java
@@ -17,6 +17,7 @@
 
 package org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.request;
 
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.DiffViolationMessages;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffViolation;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.SchemaCompareValidator;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.config.OasDiffValidatorsSkeletonConfiguration;
@@ -47,7 +48,7 @@ public class SchemaUniqueItemsChangeInRequestValidatorTest extends OasCompatibil
     assertThat(violations)
       .containsExactlyInAnyOrder(
         createViolationBoth(
-          "ไป…ๅ…่ฎธtrue->false็š„ไฟฎๆ”น",
+          DiffViolationMessages.TRUE_TO_FALSE,
           new Object[] {
             "paths", PATHS,
             "/pets", PATH_ITEM,
@@ -59,7 +60,7 @@ public class SchemaUniqueItemsChangeInRequestValidatorTest extends OasCompatibil
           }
         ),
         createViolationBoth(
-          "ไป…ๅ…่ฎธtrue->false็š„ไฟฎๆ”น",
+          DiffViolationMessages.TRUE_TO_FALSE,
           new Object[] {
             "paths", PATHS,
             "/pets", PATH_ITEM,
diff --git a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaEnumChangeInResponseValidatorTest.java b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaEnumChangeInResponseValidatorTest.java
index 6b9c193..e28ebe5 100755
--- a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaEnumChangeInResponseValidatorTest.java
+++ b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaEnumChangeInResponseValidatorTest.java
@@ -47,7 +47,7 @@ public class SchemaEnumChangeInResponseValidatorTest extends OasCompatibilityTes
     assertThat(violations)
       .containsExactlyInAnyOrder(
         createViolationBoth(
-          "ไธๅ…่ฎธๆ–ฐๅขženum",
+            SchemaEnumChangeInResponseValidator.VIOLATION_MESSAGE,
           new Object[] {
             "paths", PATHS,
             "/pets", PATH_ITEM,
diff --git a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaExclusiveMaximumChangeInResponseValidatorTest.java b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaExclusiveMaximumChangeInResponseValidatorTest.java
index cb7ebec..3d86716 100755
--- a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaExclusiveMaximumChangeInResponseValidatorTest.java
+++ b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaExclusiveMaximumChangeInResponseValidatorTest.java
@@ -17,6 +17,7 @@
 
 package org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.response;
 
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.DiffViolationMessages;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffViolation;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.SchemaCompareValidator;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.config.OasDiffValidatorsSkeletonConfiguration;
@@ -47,7 +48,7 @@ public class SchemaExclusiveMaximumChangeInResponseValidatorTest extends OasComp
     assertThat(violations)
       .containsExactlyInAnyOrder(
         createViolationBoth(
-          "ไป…ๅ…่ฎธfalse->true็š„ไฟฎๆ”น",
+          DiffViolationMessages.FALSE_TO_TRUE,
           new Object[] {
             "paths", PATHS,
             "/pets", PATH_ITEM,
diff --git a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaExclusiveMinimumChangeInResponseValidatorTest.java b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaExclusiveMinimumChangeInResponseValidatorTest.java
index 93e7d0e..cc91dfc 100755
--- a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaExclusiveMinimumChangeInResponseValidatorTest.java
+++ b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaExclusiveMinimumChangeInResponseValidatorTest.java
@@ -17,6 +17,7 @@
 
 package org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.response;
 
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.DiffViolationMessages;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffViolation;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.SchemaCompareValidator;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.config.OasDiffValidatorsSkeletonConfiguration;
@@ -47,7 +48,7 @@ public class SchemaExclusiveMinimumChangeInResponseValidatorTest extends OasComp
     assertThat(violations)
       .containsExactlyInAnyOrder(
         createViolationBoth(
-          "ไป…ๅ…่ฎธfalse->true็š„ไฟฎๆ”น",
+          DiffViolationMessages.FALSE_TO_TRUE,
           new Object[] {
             "paths", PATHS,
             "/pets", PATH_ITEM,
diff --git a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaMultipleOfChangeInResponseValidatorTest.java b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaMultipleOfChangeInResponseValidatorTest.java
index fe3dd51..4dc8677 100755
--- a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaMultipleOfChangeInResponseValidatorTest.java
+++ b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaMultipleOfChangeInResponseValidatorTest.java
@@ -47,7 +47,7 @@ public class SchemaMultipleOfChangeInResponseValidatorTest extends OasCompatibil
     assertThat(violations)
       .containsExactlyInAnyOrder(
         createViolationBoth(
-          "ๆ–ฐๅ€ผๅฟ…้กป==ๆ—งๅ€ผๆˆ–ๆ˜ฏๆ—งๅ€ผ็š„ๅ€ๆ•ฐ",
+            SchemaMultipleOfChangeInResponseValidator.VIOLATION_MESSAGE,
           new Object[] {
             "paths", PATHS,
             "/pets", PATH_ITEM,
diff --git a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaNullableChangeInResponseValidatorTest.java b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaNullableChangeInResponseValidatorTest.java
index c90a165..a979da2 100755
--- a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaNullableChangeInResponseValidatorTest.java
+++ b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaNullableChangeInResponseValidatorTest.java
@@ -17,6 +17,7 @@
 
 package org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.response;
 
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.DiffViolationMessages;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffViolation;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.SchemaCompareValidator;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.config.OasDiffValidatorsSkeletonConfiguration;
@@ -47,7 +48,7 @@ public class SchemaNullableChangeInResponseValidatorTest extends OasCompatibilit
     assertThat(violations)
       .containsExactlyInAnyOrder(
         createViolationBoth(
-          "ไป…ๅ…่ฎธtrue->false็š„ไฟฎๆ”น",
+          DiffViolationMessages.TRUE_TO_FALSE,
           new Object[] {
             "paths", PATHS,
             "/pets", PATH_ITEM,
diff --git a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaRequiredChangeInResponseValidatorTest.java b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaRequiredChangeInResponseValidatorTest.java
index fbca321..cb88149 100755
--- a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaRequiredChangeInResponseValidatorTest.java
+++ b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaRequiredChangeInResponseValidatorTest.java
@@ -47,7 +47,7 @@ public class SchemaRequiredChangeInResponseValidatorTest extends OasCompatibilit
     assertThat(violations)
       .containsExactlyInAnyOrder(
         createViolationBoth(
-          "ไธๅ…่ฎธๅˆ ้™คrequiredๅญ—ๆฎต",
+            SchemaRequiredChangeInResponseValidator.VIOLATION_MESSAGE,
           new Object[] {
             "paths", PATHS,
             "/pets", PATH_ITEM,
diff --git a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaTypeFormatChangeInResponseValidatorTest.java b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaTypeFormatChangeInResponseValidatorTest.java
index 9ad950f..5105a75 100755
--- a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaTypeFormatChangeInResponseValidatorTest.java
+++ b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaTypeFormatChangeInResponseValidatorTest.java
@@ -47,7 +47,7 @@ public class SchemaTypeFormatChangeInResponseValidatorTest extends OasCompatibil
     assertThat(violations)
       .containsExactlyInAnyOrder(
         createViolationBoth(
-          "ไธๅ…่ฎธ(type=integer,format=int32)->(type=integer,format=int64)็š„ไฟฎๆ”น",
+          "the change (type=integer,format=int32)->(type=integer,format=int64) is not allowed",
           new Object[] {
             "paths", PATHS,
             "/pets", PATH_ITEM,
diff --git a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaUniqueItemsChangeInResponseValidatorTest.java b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaUniqueItemsChangeInResponseValidatorTest.java
index 12f0fe8..96ef083 100755
--- a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaUniqueItemsChangeInResponseValidatorTest.java
+++ b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/schema/response/SchemaUniqueItemsChangeInResponseValidatorTest.java
@@ -17,6 +17,7 @@
 
 package org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.response;
 
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.DiffViolationMessages;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffViolation;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.SchemaCompareValidator;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.config.OasDiffValidatorsSkeletonConfiguration;
@@ -47,7 +48,7 @@ public class SchemaUniqueItemsChangeInResponseValidatorTest extends OasCompatibi
     assertThat(violations)
       .containsExactlyInAnyOrder(
         createViolationBoth(
-          "ไป…ๅ…่ฎธfalse->true็š„ไฟฎๆ”น",
+          DiffViolationMessages.FALSE_TO_TRUE,
           new Object[] {
             "paths", PATHS,
             "/pets", PATH_ITEM,
diff --git a/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/api/DiffViolationMessages.java b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/api/DiffViolationMessages.java
index 167a1cc..f739c87 100755
--- a/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/api/DiffViolationMessages.java
+++ b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/api/DiffViolationMessages.java
@@ -19,11 +19,14 @@ package org.apache.servicecomb.toolkit.oasv.diffvalidation.api;
 
 public abstract class DiffViolationMessages {
 
-  public static final String OP_DEL_FORBIDDEN = "ไธๅ…่ฎธๅœจๆ–ฐ็‰ˆๆœฌไธญๅˆ ้™ค";
-  public static final String OP_ADD_FORBIDDEN = "ไธๅ…่ฎธๅœจๆ–ฐ็‰ˆๆœฌไธญๆทปๅŠ ";
+  public static final String OP_DEL_FORBIDDEN = "deletion is no allowed on right side";
+  public static final String OP_ADD_FORBIDDEN = "adding is not allowed on right side";
 
-  public static final String NEW_NOT_EQ_OLD = "ๆ–ฐๆ—งๅ€ผไธไธ€่‡ด";
-  public static final String NEW_NOT_GTE_OLD = "ๆ–ฐๅ€ผๅฟ…้กป>=ๆ—งๅ€ผ";
-  public static final String NEW_NOT_LTE_OLD = "ๆ–ฐๅ€ผๅฟ…้กป<=ๆ—งๅ€ผ";
+  public static final String NEW_NOT_EQ_OLD = "not equal on both side";
+  public static final String NEW_NOT_GTE_OLD = "left side must be >= right side";
+  public static final String NEW_NOT_LTE_OLD = "left side must be <= right side";
+
+  public static final String FALSE_TO_TRUE = "only false->true is allowed";
+  public static final String TRUE_TO_FALSE = "only true->false is allowed";
 
 }
diff --git a/oas-validator/oas-validator-core/src/test/java/org/apache/servicecomb/toolkit/oasv/common/OasObjectPropertyLocationTest.java b/oas-validator/oas-validator-core/src/test/java/org/apache/servicecomb/toolkit/oasv/common/OasObjectPropertyLocationTest.java
index ac5bcd5..1502a98 100644
--- a/oas-validator/oas-validator-core/src/test/java/org/apache/servicecomb/toolkit/oasv/common/OasObjectPropertyLocationTest.java
+++ b/oas-validator/oas-validator-core/src/test/java/org/apache/servicecomb/toolkit/oasv/common/OasObjectPropertyLocationTest.java
@@ -1,3 +1,20 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package org.apache.servicecomb.toolkit.oasv.common;
 
 import static org.junit.Assert.assertEquals;
diff --git a/oas-validator/pom.xml b/oas-validator/pom.xml
index 1546299..cc48467 100644
--- a/oas-validator/pom.xml
+++ b/oas-validator/pom.xml
@@ -39,7 +39,7 @@
     <maven-compiler-plugin.version>3.3</maven-compiler-plugin.version>
     <maven.surefire.version>3.0.0-M3</maven.surefire.version>
 
-    <swagger-parser.version>2.0.12</swagger-parser.version>
+    <swagger-parser.version>2.0.15</swagger-parser.version>
     <commons-collections4.version>4.3</commons-collections4.version>
     <commons-io.version>2.6</commons-io.version>
     <spring-boot.version>2.1.4.RELEASE</spring-boot.version>


[servicecomb-toolkit] 20/26: SCB-1555 Integrate oas-validator compability check to cli Add factories for compatibility check validators

Posted by ni...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ningjiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/servicecomb-toolkit.git

commit f33b5e5accfc2405b81fdf285550358f2529b233
Author: Daniel Qian <ch...@gmail.com>
AuthorDate: Thu Nov 7 13:54:13 2019 +0800

    SCB-1555 Integrate oas-validator compability check to cli
    Add factories for compatibility check validators
---
 oas-validator/oas-validator-compatibility/pom.xml  |  11 ++
 .../DefaultCallbackDiffValidatorFactory.java       |  35 ++++++
 .../DefaultComponentsDiffValidatorFactory.java     |  94 ++++++++++++++
 .../DefaultEncodingDiffValidatorFactory.java       |  64 ++++++++++
 .../DefaultExampleDiffValidatorFactory.java        |  34 ++++++
 .../factory/DefaultHeaderDiffValidatorFactory.java |  56 +++++++++
 .../factory/DefaultInfoDiffValidatorFactory.java   |  35 ++++++
 .../factory/DefaultLinkDiffValidatorFactory.java   |  35 ++++++
 .../DefaultMediaTypeDiffValidatorFactory.java      |  67 ++++++++++
 .../DefaultOasSpecDiffValidatorFactory.java        |  40 ++++++
 .../DefaultOpenApiDiffValidatorFactory.java        |  80 ++++++++++++
 .../DefaultOperationDiffValidatorFactory.java      |  70 +++++++++++
 .../DefaultParameterDiffValidatorFactory.java      |  72 +++++++++++
 .../DefaultPathItemDiffValidatorFactory.java       |  61 ++++++++++
 .../factory/DefaultPathsDiffValidatorFactory.java  |  51 ++++++++
 .../DefaultRequestBodyDiffValidatorFactory.java    |  54 +++++++++
 .../DefaultResponseDiffValidatorFactory.java       |  61 ++++++++++
 .../DefaultResponsesDiffValidatorFactory.java      |  52 ++++++++
 .../factory/DefaultSchemaDiffValidatorFactory.java | 135 +++++++++++++++++++++
 .../DefaultSecuritySchemeDiffValidatorFactory.java |  35 ++++++
 .../factory/DefaultServerDiffValidatorFactory.java |  34 ++++++
 .../factory/DefaultTagDiffValidatorFactory.java    |  34 ++++++
 .../DefaultCallbackDiffValidatorFactoryTest.java   |  43 +++++++
 .../DefaultComponentsDiffValidatorFactoryTest.java |  46 +++++++
 .../DefaultEncodingDiffValidatorFactoryTest.java   |  46 +++++++
 .../DefaultExampleDiffValidatorFactoryTest.java    |  43 +++++++
 .../DefaultInfoDiffValidatorFactoryTest.java       |  43 +++++++
 .../DefaultLinkDiffValidatorFactoryTest.java       |  43 +++++++
 .../DefaultMediaTypeDiffValidatorFactoryTest.java  |  46 +++++++
 .../DefaultOasSpecDiffValidatorFactoryTest.java    |  39 ++++++
 .../DefaultOpenApiDiffValidatorFactoryTest.java    |  46 +++++++
 .../DefaultOperationDiffValidatorFactoryTest.java  |  43 +++++++
 .../DefaultParameterDiffValidatorFactoryTest.java  |  43 +++++++
 .../DefaultPathItemDiffValidatorFactoryTest.java   |  46 +++++++
 .../DefaultPathsDiffValidatorFactoryTest.java      |  46 +++++++
 ...DefaultRequestBodyDiffValidatorFactoryTest.java |  46 +++++++
 .../DefaultResponseDiffValidatorFactoryTest.java   |  46 +++++++
 .../DefaultResponsesDiffValidatorFactoryTest.java  |  46 +++++++
 .../DefaultSchemaDiffValidatorFactoryTest.java     |  46 +++++++
 ...aultSecuritySchemeDiffValidatorFactoryTest.java |  46 +++++++
 .../DefaultServerDiffValidatorFactoryTest.java     |  46 +++++++
 .../DefaultTagDiffValidatorFactoryTest.java        |  46 +++++++
 .../DiffValidatorFactoryTestConfiguration.java     |  26 ++++
 .../factory/CallbackDiffValidatorFactory.java      |  23 ++++
 .../factory/ComponentsDiffValidatorFactory.java    |  23 ++++
 .../factory/EncodingDiffValidatorFactory.java      |  23 ++++
 .../factory/ExampleDiffValidatorFactory.java       |  23 ++++
 .../factory/HeaderDiffValidatorFactory.java        |  23 ++++
 .../factory/InfoDiffValidatorFactory.java          |  23 ++++
 .../factory/LinkDiffValidatorFactory.java          |  23 ++++
 .../factory/MediaTypeDiffValidatorFactory.java     |  23 ++++
 .../factory/OasObjectDiffValidatorFactory.java     |  27 +++++
 .../factory/OasSpecDiffValidatorFactory.java       |  26 ++++
 .../factory/OpenApiDiffValidatorFactory.java       |  23 ++++
 .../factory/OperationDiffValidatorFactory.java     |  23 ++++
 .../factory/ParameterDiffValidatorFactory.java     |  23 ++++
 .../factory/PathItemDiffValidatorFactory.java      |  23 ++++
 .../factory/PathsDiffValidatorFactory.java         |  23 ++++
 .../factory/RequestBodyDiffValidatorFactory.java   |  23 ++++
 .../factory/ResponseDiffValidatorFactory.java      |  23 ++++
 .../factory/ResponsesDiffValidatorFactory.java     |  23 ++++
 .../factory/SchemaDiffValidatorFactory.java        |  23 ++++
 .../SecuritySchemeDiffValidatorFactory.java        |  23 ++++
 .../factory/ServerDiffValidatorFactory.java        |  23 ++++
 .../factory/TagDiffValidatorFactory.java           |  23 ++++
 65 files changed, 2644 insertions(+)

diff --git a/oas-validator/oas-validator-compatibility/pom.xml b/oas-validator/oas-validator-compatibility/pom.xml
index 2e95188..1a2c926 100644
--- a/oas-validator/oas-validator-compatibility/pom.xml
+++ b/oas-validator/oas-validator-compatibility/pom.xml
@@ -37,6 +37,17 @@
       <artifactId>oas-validator-core</artifactId>
     </dependency>
 
+    <dependency>
+      <groupId>org.springframework</groupId>
+      <artifactId>spring-context</artifactId>
+    </dependency>
+
+    <dependency>
+      <groupId>org.slf4j</groupId>
+      <artifactId>slf4j-api</artifactId>
+      <scope>provided</scope>
+    </dependency>
+
     <!-- test deps -->
     <dependency>
       <groupId>org.apache.servicecomb.toolkit</groupId>
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultCallbackDiffValidatorFactory.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultCallbackDiffValidatorFactory.java
new file mode 100644
index 0000000..d411b7a
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultCallbackDiffValidatorFactory.java
@@ -0,0 +1,35 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.factory;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.CallbackDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.factory.CallbackDiffValidatorFactory;
+import org.springframework.stereotype.Component;
+
+@Component
+public class DefaultCallbackDiffValidatorFactory implements CallbackDiffValidatorFactory {
+
+  @Override
+  public List<CallbackDiffValidator> create() {
+    return Collections.emptyList();
+  }
+
+}
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultComponentsDiffValidatorFactory.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultComponentsDiffValidatorFactory.java
new file mode 100644
index 0000000..213d441
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultComponentsDiffValidatorFactory.java
@@ -0,0 +1,94 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.factory;
+
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.List;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.ComponentsDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.factory.CallbackDiffValidatorFactory;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.factory.ComponentsDiffValidatorFactory;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.factory.ExampleDiffValidatorFactory;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.factory.HeaderDiffValidatorFactory;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.factory.LinkDiffValidatorFactory;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.factory.ParameterDiffValidatorFactory;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.factory.RequestBodyDiffValidatorFactory;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.factory.ResponseDiffValidatorFactory;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.skeleton.components.ComponentsCallbacksDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.skeleton.components.ComponentsExamplesDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.skeleton.components.ComponentsHeadersDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.skeleton.components.ComponentsLinksDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.skeleton.components.ComponentsParametersDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.skeleton.components.ComponentsRequestBodiesDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.skeleton.components.ComponentsResponsesDiffValidator;
+import org.springframework.stereotype.Component;
+
+@Component
+public class DefaultComponentsDiffValidatorFactory implements ComponentsDiffValidatorFactory {
+
+  private final CallbackDiffValidatorFactory callbackDiffValidatorFactory;
+
+  private final ExampleDiffValidatorFactory exampleDiffValidatorFactory;
+
+  private final HeaderDiffValidatorFactory headerDiffValidatorFactory;
+
+  private final LinkDiffValidatorFactory linkDiffValidatorFactory;
+
+  private final ParameterDiffValidatorFactory parameterDiffValidatorFactory;
+
+  private final RequestBodyDiffValidatorFactory requestBodyDiffValidatorFactory;
+
+  private final ResponseDiffValidatorFactory responseDiffValidatorFactory;
+
+  public DefaultComponentsDiffValidatorFactory(
+      CallbackDiffValidatorFactory callbackDiffValidatorFactory,
+      ExampleDiffValidatorFactory exampleDiffValidatorFactory,
+      HeaderDiffValidatorFactory headerDiffValidatorFactory,
+      LinkDiffValidatorFactory linkDiffValidatorFactory,
+      ParameterDiffValidatorFactory parameterDiffValidatorFactory,
+      RequestBodyDiffValidatorFactory requestBodyDiffValidatorFactory,
+      ResponseDiffValidatorFactory responseDiffValidatorFactory) {
+    this.callbackDiffValidatorFactory = callbackDiffValidatorFactory;
+    this.exampleDiffValidatorFactory = exampleDiffValidatorFactory;
+    this.headerDiffValidatorFactory = headerDiffValidatorFactory;
+    this.linkDiffValidatorFactory = linkDiffValidatorFactory;
+    this.parameterDiffValidatorFactory = parameterDiffValidatorFactory;
+    this.requestBodyDiffValidatorFactory = requestBodyDiffValidatorFactory;
+    this.responseDiffValidatorFactory = responseDiffValidatorFactory;
+  }
+
+  @Override
+  public List<ComponentsDiffValidator> create() {
+
+    List<ComponentsDiffValidator> validators = new ArrayList<>();
+
+    // skeletons
+    validators.add(new ComponentsCallbacksDiffValidator(callbackDiffValidatorFactory.create()));
+    validators.add(new ComponentsExamplesDiffValidator(exampleDiffValidatorFactory.create()));
+    validators.add(new ComponentsHeadersDiffValidator(headerDiffValidatorFactory.create()));
+    validators.add(new ComponentsLinksDiffValidator(linkDiffValidatorFactory.create()));
+    validators.add(new ComponentsParametersDiffValidator(parameterDiffValidatorFactory.create()));
+    validators.add(new ComponentsRequestBodiesDiffValidator(requestBodyDiffValidatorFactory.create()));
+    validators.add(new ComponentsResponsesDiffValidator(responseDiffValidatorFactory.create()));
+
+    // concretes
+
+    return Collections.unmodifiableList(validators);
+  }
+}
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultEncodingDiffValidatorFactory.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultEncodingDiffValidatorFactory.java
new file mode 100644
index 0000000..92435ab
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultEncodingDiffValidatorFactory.java
@@ -0,0 +1,64 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.factory;
+
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.List;
+
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.encoding.EncodingAddNotAllowedDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.encoding.EncodingAllowedReservedChangeDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.encoding.EncodingContentTypeNotSameDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.encoding.EncodingDelNotAllowedDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.encoding.EncodingExplodeNotSameDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.encoding.EncodingStyleNotSameDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.EncodingDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.factory.EncodingDiffValidatorFactory;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.factory.HeaderDiffValidatorFactory;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.skeleton.encoding.EncodingHeadersDiffValidator;
+import org.springframework.stereotype.Component;
+
+@Component
+public class DefaultEncodingDiffValidatorFactory implements EncodingDiffValidatorFactory {
+
+  private final HeaderDiffValidatorFactory headerDiffValidatorFactory;
+
+  public DefaultEncodingDiffValidatorFactory(
+      HeaderDiffValidatorFactory headerDiffValidatorFactory) {
+    this.headerDiffValidatorFactory = headerDiffValidatorFactory;
+  }
+
+  @Override
+  public List<EncodingDiffValidator> create() {
+
+    List<EncodingDiffValidator> validators = new ArrayList<>();
+
+    // skeletons
+    validators.add(new EncodingHeadersDiffValidator(headerDiffValidatorFactory.create()));
+
+    // concretes
+    validators.add(new EncodingAddNotAllowedDiffValidator());
+    validators.add(new EncodingDelNotAllowedDiffValidator());
+    validators.add(new EncodingAllowedReservedChangeDiffValidator());
+    validators.add(new EncodingContentTypeNotSameDiffValidator());
+    validators.add(new EncodingExplodeNotSameDiffValidator());
+    validators.add(new EncodingStyleNotSameDiffValidator());
+
+    return Collections.unmodifiableList(validators);
+  }
+}
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultExampleDiffValidatorFactory.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultExampleDiffValidatorFactory.java
new file mode 100644
index 0000000..30d8190
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultExampleDiffValidatorFactory.java
@@ -0,0 +1,34 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.factory;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.ExampleDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.factory.ExampleDiffValidatorFactory;
+import org.springframework.stereotype.Component;
+
+@Component
+public class DefaultExampleDiffValidatorFactory implements ExampleDiffValidatorFactory {
+
+  @Override
+  public List<ExampleDiffValidator> create() {
+    return Collections.emptyList();
+  }
+}
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultHeaderDiffValidatorFactory.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultHeaderDiffValidatorFactory.java
new file mode 100644
index 0000000..ccac11e
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultHeaderDiffValidatorFactory.java
@@ -0,0 +1,56 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.factory;
+
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.List;
+
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.header.HeaderAddInRequestBodyNotAllowedDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.header.HeaderDelInResponseNotAllowedDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.HeaderDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.factory.HeaderDiffValidatorFactory;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.factory.SchemaDiffValidatorFactory;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.skeleton.header.HeaderSchemaDiffValidator;
+import org.springframework.stereotype.Component;
+
+@Component
+public class DefaultHeaderDiffValidatorFactory implements HeaderDiffValidatorFactory {
+
+  private final SchemaDiffValidatorFactory schemaDiffValidatorFactory;
+
+  public DefaultHeaderDiffValidatorFactory(
+      SchemaDiffValidatorFactory schemaDiffValidatorFactory) {
+    this.schemaDiffValidatorFactory = schemaDiffValidatorFactory;
+  }
+
+  @Override
+  public List<HeaderDiffValidator> create() {
+
+    List<HeaderDiffValidator> validators = new ArrayList<>();
+
+    // skeletons
+    validators.add(new HeaderSchemaDiffValidator(schemaDiffValidatorFactory.create()));
+
+    // concretes
+    validators.add(new HeaderAddInRequestBodyNotAllowedDiffValidator());
+    validators.add(new HeaderDelInResponseNotAllowedDiffValidator());
+
+    return Collections.unmodifiableList(validators);
+  }
+}
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultInfoDiffValidatorFactory.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultInfoDiffValidatorFactory.java
new file mode 100644
index 0000000..cdfd1d7
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultInfoDiffValidatorFactory.java
@@ -0,0 +1,35 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.factory;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.InfoDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.factory.InfoDiffValidatorFactory;
+import org.springframework.stereotype.Component;
+
+@Component
+public class DefaultInfoDiffValidatorFactory implements InfoDiffValidatorFactory {
+
+  @Override
+  public List<InfoDiffValidator> create() {
+    return Collections.emptyList();
+  }
+
+}
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultLinkDiffValidatorFactory.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultLinkDiffValidatorFactory.java
new file mode 100644
index 0000000..6ad9730
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultLinkDiffValidatorFactory.java
@@ -0,0 +1,35 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.factory;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.LinkDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.factory.LinkDiffValidatorFactory;
+import org.springframework.stereotype.Component;
+
+@Component
+public class DefaultLinkDiffValidatorFactory implements LinkDiffValidatorFactory {
+
+  @Override
+  public List<LinkDiffValidator> create() {
+    return Collections.emptyList();
+  }
+
+}
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultMediaTypeDiffValidatorFactory.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultMediaTypeDiffValidatorFactory.java
new file mode 100644
index 0000000..d8592e9
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultMediaTypeDiffValidatorFactory.java
@@ -0,0 +1,67 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.factory;
+
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.List;
+
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.mediatype.MediaTypeAddInParameterNotAllowedDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.mediatype.MediaTypeDelInParameterNotAllowedDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.mediatype.MediaTypeDelInRequestBodyNotAllowedDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.mediatype.MediaTypeDelInResponseNotAllowedDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.MediaTypeDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.factory.EncodingDiffValidatorFactory;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.factory.MediaTypeDiffValidatorFactory;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.factory.SchemaDiffValidatorFactory;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.skeleton.mediatype.MediaTypeEncodingDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.skeleton.mediatype.MediaTypeSchemaDiffValidator;
+import org.springframework.stereotype.Component;
+
+@Component
+public class DefaultMediaTypeDiffValidatorFactory implements MediaTypeDiffValidatorFactory {
+
+  private final EncodingDiffValidatorFactory encodingDiffValidatorFactory;
+
+  private final SchemaDiffValidatorFactory schemaDiffValidatorFactory;
+
+  public DefaultMediaTypeDiffValidatorFactory(
+      EncodingDiffValidatorFactory encodingDiffValidatorFactory,
+      SchemaDiffValidatorFactory schemaDiffValidatorFactory) {
+    this.encodingDiffValidatorFactory = encodingDiffValidatorFactory;
+    this.schemaDiffValidatorFactory = schemaDiffValidatorFactory;
+  }
+
+  @Override
+  public List<MediaTypeDiffValidator> create() {
+
+    List<MediaTypeDiffValidator> validators = new ArrayList<>();
+
+    // skeletons
+    validators.add(new MediaTypeEncodingDiffValidator(encodingDiffValidatorFactory.create()));
+    validators.add(new MediaTypeSchemaDiffValidator(schemaDiffValidatorFactory.create()));
+
+    // concretes
+    validators.add(new MediaTypeAddInParameterNotAllowedDiffValidator());
+    validators.add(new MediaTypeDelInParameterNotAllowedDiffValidator());
+    validators.add(new MediaTypeDelInRequestBodyNotAllowedDiffValidator());
+    validators.add(new MediaTypeDelInResponseNotAllowedDiffValidator());
+
+    return Collections.unmodifiableList(validators);
+  }
+}
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultOasSpecDiffValidatorFactory.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultOasSpecDiffValidatorFactory.java
new file mode 100644
index 0000000..6edf944
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultOasSpecDiffValidatorFactory.java
@@ -0,0 +1,40 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.factory;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.DefaultOasSpecDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasSpecDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.factory.OasSpecDiffValidatorFactory;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.factory.OpenApiDiffValidatorFactory;
+import org.springframework.stereotype.Component;
+
+@Component
+public class DefaultOasSpecDiffValidatorFactory implements OasSpecDiffValidatorFactory {
+
+  private final OpenApiDiffValidatorFactory openApiDiffValidatorFactory;
+
+  public DefaultOasSpecDiffValidatorFactory(
+      OpenApiDiffValidatorFactory openApiDiffValidatorFactory) {
+    this.openApiDiffValidatorFactory = openApiDiffValidatorFactory;
+  }
+
+  @Override
+  public OasSpecDiffValidator create() {
+    return new DefaultOasSpecDiffValidator(openApiDiffValidatorFactory.create());
+  }
+}
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultOpenApiDiffValidatorFactory.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultOpenApiDiffValidatorFactory.java
new file mode 100644
index 0000000..a9484dd
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultOpenApiDiffValidatorFactory.java
@@ -0,0 +1,80 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.factory;
+
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.List;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OpenApiDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.factory.ComponentsDiffValidatorFactory;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.factory.InfoDiffValidatorFactory;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.factory.OpenApiDiffValidatorFactory;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.factory.PathsDiffValidatorFactory;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.factory.ServerDiffValidatorFactory;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.factory.TagDiffValidatorFactory;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.skeleton.openapi.OpenApiComponentsDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.skeleton.openapi.OpenApiInfoDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.skeleton.openapi.OpenApiPathsDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.skeleton.openapi.OpenApiServersDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.skeleton.openapi.OpenApiTagsDiffValidator;
+import org.springframework.stereotype.Component;
+
+@Component
+public class DefaultOpenApiDiffValidatorFactory implements OpenApiDiffValidatorFactory {
+
+  private final ComponentsDiffValidatorFactory componentsDiffValidatorFactory;
+
+  private final InfoDiffValidatorFactory infoDiffValidatorFactory;
+
+  private final PathsDiffValidatorFactory pathsDiffValidatorFactory;
+
+  private final ServerDiffValidatorFactory serverDiffValidatorFactory;
+
+  private final TagDiffValidatorFactory tagDiffValidatorFactory;
+
+  public DefaultOpenApiDiffValidatorFactory(
+      ComponentsDiffValidatorFactory componentsDiffValidatorFactory,
+      InfoDiffValidatorFactory infoDiffValidatorFactory,
+      PathsDiffValidatorFactory pathsDiffValidatorFactory,
+      ServerDiffValidatorFactory serverDiffValidatorFactory,
+      TagDiffValidatorFactory tagDiffValidatorFactory) {
+    this.componentsDiffValidatorFactory = componentsDiffValidatorFactory;
+    this.infoDiffValidatorFactory = infoDiffValidatorFactory;
+    this.pathsDiffValidatorFactory = pathsDiffValidatorFactory;
+    this.serverDiffValidatorFactory = serverDiffValidatorFactory;
+    this.tagDiffValidatorFactory = tagDiffValidatorFactory;
+  }
+
+  @Override
+  public List<OpenApiDiffValidator> create() {
+
+    List<OpenApiDiffValidator> validators = new ArrayList<>();
+
+    // skeletons
+    validators.add(new OpenApiComponentsDiffValidator(componentsDiffValidatorFactory.create()));
+    validators.add(new OpenApiInfoDiffValidator(infoDiffValidatorFactory.create()));
+    validators.add(new OpenApiPathsDiffValidator(pathsDiffValidatorFactory.create()));
+    validators.add(new OpenApiServersDiffValidator(serverDiffValidatorFactory.create()));
+    validators.add(new OpenApiTagsDiffValidator(tagDiffValidatorFactory.create()));
+
+    // concretes
+
+    return Collections.unmodifiableList(validators);
+  }
+}
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultOperationDiffValidatorFactory.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultOperationDiffValidatorFactory.java
new file mode 100644
index 0000000..a4cb30a
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultOperationDiffValidatorFactory.java
@@ -0,0 +1,70 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.factory;
+
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.List;
+
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.operation.OperationDeleteNotAllowedDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.operation.OperationIdNotSameDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OperationDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.factory.OperationDiffValidatorFactory;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.factory.ParameterDiffValidatorFactory;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.factory.RequestBodyDiffValidatorFactory;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.factory.ResponsesDiffValidatorFactory;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.skeleton.operation.OperationParametersDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.skeleton.operation.OperationRequestBodyDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.skeleton.operation.OperationResponsesDiffValidator;
+import org.springframework.stereotype.Component;
+
+@Component
+public class DefaultOperationDiffValidatorFactory implements OperationDiffValidatorFactory {
+
+  private final ParameterDiffValidatorFactory parameterDiffValidatorFactory;
+
+  private final RequestBodyDiffValidatorFactory requestBodyDiffValidatorFactory;
+
+  private final ResponsesDiffValidatorFactory responsesDiffValidatorFactory;
+
+  public DefaultOperationDiffValidatorFactory(
+      ParameterDiffValidatorFactory parameterDiffValidatorFactory,
+      RequestBodyDiffValidatorFactory requestBodyDiffValidatorFactory,
+      ResponsesDiffValidatorFactory responsesDiffValidatorFactory) {
+    this.parameterDiffValidatorFactory = parameterDiffValidatorFactory;
+    this.requestBodyDiffValidatorFactory = requestBodyDiffValidatorFactory;
+    this.responsesDiffValidatorFactory = responsesDiffValidatorFactory;
+  }
+
+  @Override
+  public List<OperationDiffValidator> create() {
+
+    List<OperationDiffValidator> validators = new ArrayList<>();
+
+    // skeletons
+    validators.add(new OperationParametersDiffValidator(parameterDiffValidatorFactory.create()));
+    validators.add(new OperationRequestBodyDiffValidator(requestBodyDiffValidatorFactory.create()));
+    validators.add(new OperationResponsesDiffValidator(responsesDiffValidatorFactory.create()));
+
+    // concretes
+    validators.add(new OperationDeleteNotAllowedDiffValidator());
+    validators.add(new OperationIdNotSameDiffValidator());
+
+    return Collections.unmodifiableList(validators);
+  }
+}
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultParameterDiffValidatorFactory.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultParameterDiffValidatorFactory.java
new file mode 100644
index 0000000..8b5b141
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultParameterDiffValidatorFactory.java
@@ -0,0 +1,72 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.factory;
+
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.List;
+
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.parameter.ParameterAddDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.parameter.ParameterAllowEmptyValueChangeDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.parameter.ParameterAllowReservedChangeDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.parameter.ParameterExplodeNotSameDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.parameter.ParameterRequiredChangeDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.parameter.ParameterStyleNotSameDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.ParameterDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.factory.MediaTypeDiffValidatorFactory;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.factory.ParameterDiffValidatorFactory;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.factory.SchemaDiffValidatorFactory;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.skeleton.parameter.ParameterContentDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.skeleton.parameter.ParameterSchemaDiffValidator;
+import org.springframework.stereotype.Component;
+
+@Component
+public class DefaultParameterDiffValidatorFactory implements ParameterDiffValidatorFactory {
+
+
+  private final MediaTypeDiffValidatorFactory mediaTypeDiffValidatorFactory;
+
+  private final SchemaDiffValidatorFactory schemaDiffValidatorFactory;
+
+  public DefaultParameterDiffValidatorFactory(
+      MediaTypeDiffValidatorFactory mediaTypeDiffValidatorFactory,
+      SchemaDiffValidatorFactory schemaDiffValidatorFactory) {
+    this.mediaTypeDiffValidatorFactory = mediaTypeDiffValidatorFactory;
+    this.schemaDiffValidatorFactory = schemaDiffValidatorFactory;
+  }
+
+  @Override
+  public List<ParameterDiffValidator> create() {
+
+    List<ParameterDiffValidator> validators = new ArrayList<>();
+
+    // skeletons
+    validators.add(new ParameterContentDiffValidator(mediaTypeDiffValidatorFactory.create()));
+    validators.add(new ParameterSchemaDiffValidator(schemaDiffValidatorFactory.create()));
+
+    // concretes
+    validators.add(new ParameterAddDiffValidator());
+    validators.add(new ParameterRequiredChangeDiffValidator());
+    validators.add(new ParameterAllowEmptyValueChangeDiffValidator());
+    validators.add(new ParameterStyleNotSameDiffValidator());
+    validators.add(new ParameterExplodeNotSameDiffValidator());
+    validators.add(new ParameterAllowReservedChangeDiffValidator());
+
+    return Collections.unmodifiableList(validators);
+  }
+}
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultPathItemDiffValidatorFactory.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultPathItemDiffValidatorFactory.java
new file mode 100644
index 0000000..2f971f4
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultPathItemDiffValidatorFactory.java
@@ -0,0 +1,61 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.factory;
+
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.List;
+
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.pathitem.PathItemDeleteNotAllowedDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.PathItemDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.factory.OperationDiffValidatorFactory;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.factory.ParameterDiffValidatorFactory;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.factory.PathItemDiffValidatorFactory;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.skeleton.pathitem.PathItemOperationsDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.skeleton.pathitem.PathItemParametersDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.skeleton.paths.PathsPathItemsDiffValidator;
+import org.springframework.stereotype.Component;
+
+@Component
+public class DefaultPathItemDiffValidatorFactory implements PathItemDiffValidatorFactory {
+
+  private final OperationDiffValidatorFactory operationDiffValidatorFactory;
+  private final ParameterDiffValidatorFactory parameterDiffValidatorFactory;
+
+  public DefaultPathItemDiffValidatorFactory(
+      OperationDiffValidatorFactory operationDiffValidatorFactory,
+      ParameterDiffValidatorFactory parameterDiffValidatorFactory) {
+    this.operationDiffValidatorFactory = operationDiffValidatorFactory;
+    this.parameterDiffValidatorFactory = parameterDiffValidatorFactory;
+  }
+
+  @Override
+  public List<PathItemDiffValidator> create() {
+
+    List<PathItemDiffValidator> validators = new ArrayList<>();
+
+    // skeletons
+    validators.add(new PathItemOperationsDiffValidator(operationDiffValidatorFactory.create()));
+    validators.add(new PathItemParametersDiffValidator(parameterDiffValidatorFactory.create()));
+
+    // concretes
+    validators.add(new PathItemDeleteNotAllowedDiffValidator());
+
+    return Collections.unmodifiableList(validators);
+  }
+}
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultPathsDiffValidatorFactory.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultPathsDiffValidatorFactory.java
new file mode 100644
index 0000000..5c4f02b
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultPathsDiffValidatorFactory.java
@@ -0,0 +1,51 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.factory;
+
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.List;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.PathsDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.factory.PathItemDiffValidatorFactory;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.factory.PathsDiffValidatorFactory;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.skeleton.paths.PathsPathItemsDiffValidator;
+import org.springframework.stereotype.Component;
+
+@Component
+public class DefaultPathsDiffValidatorFactory implements PathsDiffValidatorFactory {
+
+  private final PathItemDiffValidatorFactory pathItemDiffValidatorFactory;
+
+  public DefaultPathsDiffValidatorFactory(
+      PathItemDiffValidatorFactory pathItemDiffValidatorFactory) {
+    this.pathItemDiffValidatorFactory = pathItemDiffValidatorFactory;
+  }
+
+  @Override
+  public List<PathsDiffValidator> create() {
+
+    List<PathsDiffValidator> validators = new ArrayList<>();
+
+    // skeletons
+    validators.add(new PathsPathItemsDiffValidator(pathItemDiffValidatorFactory.create()));
+
+    // concretes
+    return Collections.unmodifiableList(validators);
+  }
+}
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultRequestBodyDiffValidatorFactory.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultRequestBodyDiffValidatorFactory.java
new file mode 100644
index 0000000..2f2feb6
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultRequestBodyDiffValidatorFactory.java
@@ -0,0 +1,54 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.factory;
+
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.List;
+
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.requestbody.RequestBodyRequiredChangeDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.RequestBodyDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.factory.MediaTypeDiffValidatorFactory;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.factory.RequestBodyDiffValidatorFactory;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.skeleton.requestbody.RequestBodyContentDiffValidator;
+import org.springframework.stereotype.Component;
+
+@Component
+public class DefaultRequestBodyDiffValidatorFactory implements RequestBodyDiffValidatorFactory {
+
+  private final MediaTypeDiffValidatorFactory mediaTypeDiffValidatorFactory;
+
+  public DefaultRequestBodyDiffValidatorFactory(
+      MediaTypeDiffValidatorFactory mediaTypeDiffValidatorFactory) {
+    this.mediaTypeDiffValidatorFactory = mediaTypeDiffValidatorFactory;
+  }
+
+  @Override
+  public List<RequestBodyDiffValidator> create() {
+
+    List<RequestBodyDiffValidator> validators = new ArrayList<>();
+
+    // skeletons
+    validators.add(new RequestBodyContentDiffValidator(mediaTypeDiffValidatorFactory.create()));
+
+    // concretes
+    validators.add(new RequestBodyRequiredChangeDiffValidator());
+
+    return Collections.unmodifiableList(validators);
+  }
+}
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultResponseDiffValidatorFactory.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultResponseDiffValidatorFactory.java
new file mode 100644
index 0000000..d2050cf
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultResponseDiffValidatorFactory.java
@@ -0,0 +1,61 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.factory;
+
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.List;
+
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.response.ResponseAddNotAllowedDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.ResponseDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.factory.HeaderDiffValidatorFactory;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.factory.MediaTypeDiffValidatorFactory;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.factory.ResponseDiffValidatorFactory;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.skeleton.response.ResponseContentDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.skeleton.response.ResponseHeadersDiffValidator;
+import org.springframework.stereotype.Component;
+
+@Component
+public class DefaultResponseDiffValidatorFactory implements ResponseDiffValidatorFactory {
+
+  private final MediaTypeDiffValidatorFactory mediaTypeDiffValidatorFactory;
+
+  private final HeaderDiffValidatorFactory headerDiffValidatorFactory;
+
+  public DefaultResponseDiffValidatorFactory(
+      MediaTypeDiffValidatorFactory mediaTypeDiffValidatorFactory,
+      HeaderDiffValidatorFactory headerDiffValidatorFactory) {
+    this.mediaTypeDiffValidatorFactory = mediaTypeDiffValidatorFactory;
+    this.headerDiffValidatorFactory = headerDiffValidatorFactory;
+  }
+
+  @Override
+  public List<ResponseDiffValidator> create() {
+
+    List<ResponseDiffValidator> validators = new ArrayList<>();
+
+    // skeletons
+    validators.add(new ResponseContentDiffValidator(mediaTypeDiffValidatorFactory.create()));
+    validators.add(new ResponseHeadersDiffValidator(headerDiffValidatorFactory.create()));
+
+    // concretes
+    validators.add(new ResponseAddNotAllowedDiffValidator());
+
+    return Collections.unmodifiableList(validators);
+  }
+}
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultResponsesDiffValidatorFactory.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultResponsesDiffValidatorFactory.java
new file mode 100644
index 0000000..8b4d8e3
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultResponsesDiffValidatorFactory.java
@@ -0,0 +1,52 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.factory;
+
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.List;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.ResponsesDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.factory.ResponseDiffValidatorFactory;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.factory.ResponsesDiffValidatorFactory;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.skeleton.responses.ResponsesResponsesDiffValidator;
+import org.springframework.stereotype.Component;
+
+@Component
+public class DefaultResponsesDiffValidatorFactory implements ResponsesDiffValidatorFactory {
+
+  private final ResponseDiffValidatorFactory responseDiffValidatorFactory;
+
+  public DefaultResponsesDiffValidatorFactory(
+      ResponseDiffValidatorFactory responseDiffValidatorFactory) {
+    this.responseDiffValidatorFactory = responseDiffValidatorFactory;
+  }
+
+  @Override
+  public List<ResponsesDiffValidator> create() {
+
+    List<ResponsesDiffValidator> validators = new ArrayList<>();
+
+    // skeletons
+    validators.add(new ResponsesResponsesDiffValidator(responseDiffValidatorFactory.create()));
+
+    // concretes
+
+    return Collections.unmodifiableList(validators);
+  }
+}
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultSchemaDiffValidatorFactory.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultSchemaDiffValidatorFactory.java
new file mode 100644
index 0000000..1a5117f
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultSchemaDiffValidatorFactory.java
@@ -0,0 +1,135 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.factory;
+
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.List;
+
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.SchemaDiscriminatorChangeValidator;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.SchemaReadOnlyChangeValidator;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.SchemaWriteOnlyChangeValidator;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.SchemaXmlChangeValidator;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.request.SchemaEnumChangeInRequestValidator;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.request.SchemaExclusiveMaximumChangeInRequestValidator;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.request.SchemaExclusiveMinimumChangeInRequestValidator;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.request.SchemaMaxItemsChangeInRequestValidator;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.request.SchemaMaxLengthChangeInRequestValidator;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.request.SchemaMaxPropertiesChangeInRequestValidator;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.request.SchemaMaximumChangeInRequestValidator;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.request.SchemaMinItemsChangeInRequestValidator;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.request.SchemaMinLengthChangeInRequestValidator;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.request.SchemaMinPropertiesChangeInRequestValidator;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.request.SchemaMinimumChangeInRequestValidator;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.request.SchemaMultipleOfChangeInRequestValidator;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.request.SchemaNullableChangeInRequestValidator;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.request.SchemaRequiredChangeInRequestValidator;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.request.SchemaTypeFormatChangeInRequestValidator;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.request.SchemaUniqueItemsChangeInRequestValidator;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.response.SchemaEnumChangeInResponseValidator;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.response.SchemaExclusiveMaximumChangeInResponseValidator;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.response.SchemaExclusiveMinimumChangeInResponseValidator;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.response.SchemaMaxItemsChangeInResponseValidator;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.response.SchemaMaxLengthChangeInResponseValidator;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.response.SchemaMaxPropertiesChangeInResponseValidator;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.response.SchemaMaximumChangeInResponseValidator;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.response.SchemaMinItemsChangeInResponseValidator;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.response.SchemaMinLengthChangeInResponseValidator;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.response.SchemaMinPropertiesChangeInResponseValidator;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.response.SchemaMinimumChangeInResponseValidator;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.response.SchemaMultipleOfChangeInResponseValidator;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.response.SchemaNullableChangeInResponseValidator;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.response.SchemaRequiredChangeInResponseValidator;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.response.SchemaTypeFormatChangeInResponseValidator;
+import org.apache.servicecomb.toolkit.oasv.compatibility.validators.schema.response.SchemaUniqueItemsChangeInResponseValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.SchemaCompareValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.SchemaDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.factory.SchemaDiffValidatorFactory;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.skeleton.schema.SchemaDiffValidatorEngine;
+import org.springframework.stereotype.Component;
+
+@Component
+public class DefaultSchemaDiffValidatorFactory implements SchemaDiffValidatorFactory {
+
+
+  @Override
+  public List<SchemaDiffValidator> create() {
+
+    List<SchemaDiffValidator> validators = new ArrayList<>();
+
+    // skeletons
+    validators.add(new SchemaDiffValidatorEngine(
+        Collections.emptyList(),
+        Collections.emptyList(),
+        compareValidators()
+    ));
+
+    // concretes
+
+    return Collections.unmodifiableList(validators);
+  }
+
+  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);
+  }
+}
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultSecuritySchemeDiffValidatorFactory.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultSecuritySchemeDiffValidatorFactory.java
new file mode 100644
index 0000000..cbb01fc
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultSecuritySchemeDiffValidatorFactory.java
@@ -0,0 +1,35 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.factory;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.SecuritySchemeDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.factory.SecuritySchemeDiffValidatorFactory;
+import org.springframework.stereotype.Component;
+
+@Component
+public class DefaultSecuritySchemeDiffValidatorFactory implements SecuritySchemeDiffValidatorFactory {
+
+
+  @Override
+  public List<SecuritySchemeDiffValidator> create() {
+    return Collections.emptyList();
+  }
+}
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultServerDiffValidatorFactory.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultServerDiffValidatorFactory.java
new file mode 100644
index 0000000..937137a
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultServerDiffValidatorFactory.java
@@ -0,0 +1,34 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.factory;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.ServerDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.factory.ServerDiffValidatorFactory;
+import org.springframework.stereotype.Component;
+
+@Component
+public class DefaultServerDiffValidatorFactory implements ServerDiffValidatorFactory {
+
+  @Override
+  public List<ServerDiffValidator> create() {
+    return Collections.emptyList();
+  }
+}
diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultTagDiffValidatorFactory.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultTagDiffValidatorFactory.java
new file mode 100644
index 0000000..ee44ee8
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultTagDiffValidatorFactory.java
@@ -0,0 +1,34 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.factory;
+
+import java.util.Collections;
+import java.util.List;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.TagDiffValidator;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.factory.TagDiffValidatorFactory;
+import org.springframework.stereotype.Component;
+
+@Component
+public class DefaultTagDiffValidatorFactory implements TagDiffValidatorFactory {
+
+  @Override
+  public List<TagDiffValidator> create() {
+    return Collections.emptyList();
+  }
+}
diff --git a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultCallbackDiffValidatorFactoryTest.java b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultCallbackDiffValidatorFactoryTest.java
new file mode 100644
index 0000000..5bf0591
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultCallbackDiffValidatorFactoryTest.java
@@ -0,0 +1,43 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.factory;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import java.util.List;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.CallbackDiffValidator;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.test.context.ContextConfiguration;
+import org.springframework.test.context.junit4.SpringRunner;
+
+@RunWith(SpringRunner.class)
+@ContextConfiguration(classes = DiffValidatorFactoryTestConfiguration.class)
+public class DefaultCallbackDiffValidatorFactoryTest {
+
+  @Autowired
+  private DefaultCallbackDiffValidatorFactory validatorFactory;
+
+  @Test
+  public void create() {
+    List<CallbackDiffValidator> validators = validatorFactory.create();
+    assertThat(validators).isEmpty();
+  }
+}
diff --git a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultComponentsDiffValidatorFactoryTest.java b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultComponentsDiffValidatorFactoryTest.java
new file mode 100644
index 0000000..fc98e19
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultComponentsDiffValidatorFactoryTest.java
@@ -0,0 +1,46 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.factory;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import java.util.List;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.ComponentsDiffValidator;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.test.context.ContextConfiguration;
+import org.springframework.test.context.junit4.SpringRunner;
+
+@RunWith(SpringRunner.class)
+@ContextConfiguration(classes = DiffValidatorFactoryTestConfiguration.class)
+public class DefaultComponentsDiffValidatorFactoryTest {
+
+  @Autowired
+  private DefaultComponentsDiffValidatorFactory validatorFactory;
+
+  @Test
+  public void create() {
+    List<ComponentsDiffValidator> validators = validatorFactory.create();
+    assertThat(validators).hasSize(7);
+  }
+}
+
+
+
diff --git a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultEncodingDiffValidatorFactoryTest.java b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultEncodingDiffValidatorFactoryTest.java
new file mode 100644
index 0000000..c397ed2
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultEncodingDiffValidatorFactoryTest.java
@@ -0,0 +1,46 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.factory;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import java.util.List;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.EncodingDiffValidator;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.test.context.ContextConfiguration;
+import org.springframework.test.context.junit4.SpringRunner;
+
+@RunWith(SpringRunner.class)
+@ContextConfiguration(classes = DiffValidatorFactoryTestConfiguration.class)
+public class DefaultEncodingDiffValidatorFactoryTest {
+
+  @Autowired
+  private DefaultEncodingDiffValidatorFactory validatorFactory;
+
+  @Test
+  public void create() {
+    List<EncodingDiffValidator> validators = validatorFactory.create();
+    assertThat(validators).hasSize(7);
+  }
+}
+
+
+
diff --git a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultExampleDiffValidatorFactoryTest.java b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultExampleDiffValidatorFactoryTest.java
new file mode 100644
index 0000000..989c4af
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultExampleDiffValidatorFactoryTest.java
@@ -0,0 +1,43 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.factory;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import java.util.List;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.ExampleDiffValidator;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.test.context.ContextConfiguration;
+import org.springframework.test.context.junit4.SpringRunner;
+
+@RunWith(SpringRunner.class)
+@ContextConfiguration(classes = DiffValidatorFactoryTestConfiguration.class)
+public class DefaultExampleDiffValidatorFactoryTest {
+
+  @Autowired
+  private DefaultExampleDiffValidatorFactory validatorFactory;
+
+  @Test
+  public void create() {
+    List<ExampleDiffValidator> validators = validatorFactory.create();
+    assertThat(validators).isEmpty();
+  }
+}
diff --git a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultInfoDiffValidatorFactoryTest.java b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultInfoDiffValidatorFactoryTest.java
new file mode 100644
index 0000000..970c9ab
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultInfoDiffValidatorFactoryTest.java
@@ -0,0 +1,43 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.factory;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import java.util.List;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.InfoDiffValidator;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.test.context.ContextConfiguration;
+import org.springframework.test.context.junit4.SpringRunner;
+
+@RunWith(SpringRunner.class)
+@ContextConfiguration(classes = DiffValidatorFactoryTestConfiguration.class)
+public class DefaultInfoDiffValidatorFactoryTest {
+
+  @Autowired
+  private DefaultInfoDiffValidatorFactory validatorFactory;
+
+  @Test
+  public void create() {
+    List<InfoDiffValidator> validators = validatorFactory.create();
+    assertThat(validators).isEmpty();
+  }
+}
diff --git a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultLinkDiffValidatorFactoryTest.java b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultLinkDiffValidatorFactoryTest.java
new file mode 100644
index 0000000..bda081b
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultLinkDiffValidatorFactoryTest.java
@@ -0,0 +1,43 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.factory;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import java.util.List;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.LinkDiffValidator;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.test.context.ContextConfiguration;
+import org.springframework.test.context.junit4.SpringRunner;
+
+@RunWith(SpringRunner.class)
+@ContextConfiguration(classes = DiffValidatorFactoryTestConfiguration.class)
+public class DefaultLinkDiffValidatorFactoryTest {
+
+  @Autowired
+  private DefaultLinkDiffValidatorFactory validatorFactory;
+
+  @Test
+  public void create() {
+    List<LinkDiffValidator> validators = validatorFactory.create();
+    assertThat(validators).isEmpty();
+  }
+}
diff --git a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultMediaTypeDiffValidatorFactoryTest.java b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultMediaTypeDiffValidatorFactoryTest.java
new file mode 100644
index 0000000..944138f
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultMediaTypeDiffValidatorFactoryTest.java
@@ -0,0 +1,46 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.factory;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import java.util.List;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.MediaTypeDiffValidator;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.test.context.ContextConfiguration;
+import org.springframework.test.context.junit4.SpringRunner;
+
+@RunWith(SpringRunner.class)
+@ContextConfiguration(classes = DiffValidatorFactoryTestConfiguration.class)
+public class DefaultMediaTypeDiffValidatorFactoryTest {
+
+  @Autowired
+  private DefaultMediaTypeDiffValidatorFactory validatorFactory;
+
+  @Test
+  public void create() {
+    List<MediaTypeDiffValidator> validators = validatorFactory.create();
+    assertThat(validators).hasSize(6);
+  }
+}
+
+
+
diff --git a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultOasSpecDiffValidatorFactoryTest.java b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultOasSpecDiffValidatorFactoryTest.java
new file mode 100644
index 0000000..ab05f04
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultOasSpecDiffValidatorFactoryTest.java
@@ -0,0 +1,39 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.factory;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.test.context.ContextConfiguration;
+import org.springframework.test.context.junit4.SpringRunner;
+
+@RunWith(SpringRunner.class)
+@ContextConfiguration(classes = DiffValidatorFactoryTestConfiguration.class)
+public class DefaultOasSpecDiffValidatorFactoryTest {
+
+  @Autowired
+  private DefaultOasSpecDiffValidatorFactory validatorFactory;
+
+  @Test
+  public void create() {
+    assertThat(validatorFactory.create()).isNotNull();
+  }
+}
diff --git a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultOpenApiDiffValidatorFactoryTest.java b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultOpenApiDiffValidatorFactoryTest.java
new file mode 100644
index 0000000..f108447
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultOpenApiDiffValidatorFactoryTest.java
@@ -0,0 +1,46 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.factory;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import java.util.List;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OpenApiDiffValidator;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.test.context.ContextConfiguration;
+import org.springframework.test.context.junit4.SpringRunner;
+
+@RunWith(SpringRunner.class)
+@ContextConfiguration(classes = DiffValidatorFactoryTestConfiguration.class)
+public class DefaultOpenApiDiffValidatorFactoryTest {
+
+  @Autowired
+  private DefaultOpenApiDiffValidatorFactory validatorFactory;
+
+  @Test
+  public void create() {
+    List<OpenApiDiffValidator> validators = validatorFactory.create();
+    assertThat(validators).hasSize(5);
+  }
+}
+
+
+
diff --git a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultOperationDiffValidatorFactoryTest.java b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultOperationDiffValidatorFactoryTest.java
new file mode 100644
index 0000000..2fa6665
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultOperationDiffValidatorFactoryTest.java
@@ -0,0 +1,43 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.factory;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import java.util.List;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OperationDiffValidator;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.test.context.ContextConfiguration;
+import org.springframework.test.context.junit4.SpringRunner;
+
+@RunWith(SpringRunner.class)
+@ContextConfiguration(classes = DiffValidatorFactoryTestConfiguration.class)
+public class DefaultOperationDiffValidatorFactoryTest {
+
+  @Autowired
+  private DefaultOperationDiffValidatorFactory validatorFactory;
+
+  @Test
+  public void create() {
+    List<OperationDiffValidator> validators = validatorFactory.create();
+    assertThat(validators).hasSize(5);
+  }
+}
diff --git a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultParameterDiffValidatorFactoryTest.java b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultParameterDiffValidatorFactoryTest.java
new file mode 100644
index 0000000..bf5b50c
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultParameterDiffValidatorFactoryTest.java
@@ -0,0 +1,43 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.factory;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import java.util.List;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.ParameterDiffValidator;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.test.context.ContextConfiguration;
+import org.springframework.test.context.junit4.SpringRunner;
+
+@RunWith(SpringRunner.class)
+@ContextConfiguration(classes = DiffValidatorFactoryTestConfiguration.class)
+public class DefaultParameterDiffValidatorFactoryTest {
+
+  @Autowired
+  private DefaultParameterDiffValidatorFactory validatorFactory;
+
+  @Test
+  public void create() {
+    List<ParameterDiffValidator> validators = validatorFactory.create();
+    assertThat(validators).hasSize(8);
+  }
+}
diff --git a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultPathItemDiffValidatorFactoryTest.java b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultPathItemDiffValidatorFactoryTest.java
new file mode 100644
index 0000000..eb9a063
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultPathItemDiffValidatorFactoryTest.java
@@ -0,0 +1,46 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.factory;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import java.util.List;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.PathItemDiffValidator;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.test.context.ContextConfiguration;
+import org.springframework.test.context.junit4.SpringRunner;
+
+@RunWith(SpringRunner.class)
+@ContextConfiguration(classes = DiffValidatorFactoryTestConfiguration.class)
+public class DefaultPathItemDiffValidatorFactoryTest {
+
+  @Autowired
+  private DefaultPathItemDiffValidatorFactory validatorFactory;
+
+  @Test
+  public void create() {
+    List<PathItemDiffValidator> validators = validatorFactory.create();
+    assertThat(validators).hasSize(3);
+  }
+}
+
+
+
diff --git a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultPathsDiffValidatorFactoryTest.java b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultPathsDiffValidatorFactoryTest.java
new file mode 100644
index 0000000..21c1277
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultPathsDiffValidatorFactoryTest.java
@@ -0,0 +1,46 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.factory;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import java.util.List;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.PathsDiffValidator;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.test.context.ContextConfiguration;
+import org.springframework.test.context.junit4.SpringRunner;
+
+@RunWith(SpringRunner.class)
+@ContextConfiguration(classes = DiffValidatorFactoryTestConfiguration.class)
+public class DefaultPathsDiffValidatorFactoryTest {
+
+  @Autowired
+  private DefaultPathsDiffValidatorFactory validatorFactory;
+
+  @Test
+  public void create() {
+    List<PathsDiffValidator> validators = validatorFactory.create();
+    assertThat(validators).hasSize(1);
+  }
+}
+
+
+
diff --git a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultRequestBodyDiffValidatorFactoryTest.java b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultRequestBodyDiffValidatorFactoryTest.java
new file mode 100644
index 0000000..118fc3b
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultRequestBodyDiffValidatorFactoryTest.java
@@ -0,0 +1,46 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.factory;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import java.util.List;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.RequestBodyDiffValidator;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.test.context.ContextConfiguration;
+import org.springframework.test.context.junit4.SpringRunner;
+
+@RunWith(SpringRunner.class)
+@ContextConfiguration(classes = DiffValidatorFactoryTestConfiguration.class)
+public class DefaultRequestBodyDiffValidatorFactoryTest {
+
+  @Autowired
+  private DefaultRequestBodyDiffValidatorFactory validatorFactory;
+
+  @Test
+  public void create() {
+    List<RequestBodyDiffValidator> validators = validatorFactory.create();
+    assertThat(validators).hasSize(2);
+  }
+}
+
+
+
diff --git a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultResponseDiffValidatorFactoryTest.java b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultResponseDiffValidatorFactoryTest.java
new file mode 100644
index 0000000..200d58c
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultResponseDiffValidatorFactoryTest.java
@@ -0,0 +1,46 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.factory;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import java.util.List;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.ResponseDiffValidator;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.test.context.ContextConfiguration;
+import org.springframework.test.context.junit4.SpringRunner;
+
+@RunWith(SpringRunner.class)
+@ContextConfiguration(classes = DiffValidatorFactoryTestConfiguration.class)
+public class DefaultResponseDiffValidatorFactoryTest {
+
+  @Autowired
+  private DefaultResponseDiffValidatorFactory validatorFactory;
+
+  @Test
+  public void create() {
+    List<ResponseDiffValidator> validators = validatorFactory.create();
+    assertThat(validators).hasSize(3);
+  }
+}
+
+
+
diff --git a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultResponsesDiffValidatorFactoryTest.java b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultResponsesDiffValidatorFactoryTest.java
new file mode 100644
index 0000000..205571a
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultResponsesDiffValidatorFactoryTest.java
@@ -0,0 +1,46 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.factory;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import java.util.List;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.ResponsesDiffValidator;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.test.context.ContextConfiguration;
+import org.springframework.test.context.junit4.SpringRunner;
+
+@RunWith(SpringRunner.class)
+@ContextConfiguration(classes = DiffValidatorFactoryTestConfiguration.class)
+public class DefaultResponsesDiffValidatorFactoryTest {
+
+  @Autowired
+  private DefaultResponsesDiffValidatorFactory validatorFactory;
+
+  @Test
+  public void create() {
+    List<ResponsesDiffValidator> validators = validatorFactory.create();
+    assertThat(validators).hasSize(1);
+  }
+}
+
+
+
diff --git a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultSchemaDiffValidatorFactoryTest.java b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultSchemaDiffValidatorFactoryTest.java
new file mode 100644
index 0000000..52c875f
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultSchemaDiffValidatorFactoryTest.java
@@ -0,0 +1,46 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.factory;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import java.util.List;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.SchemaDiffValidator;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.test.context.ContextConfiguration;
+import org.springframework.test.context.junit4.SpringRunner;
+
+@RunWith(SpringRunner.class)
+@ContextConfiguration(classes = DiffValidatorFactoryTestConfiguration.class)
+public class DefaultSchemaDiffValidatorFactoryTest {
+
+  @Autowired
+  private DefaultSchemaDiffValidatorFactory validatorFactory;
+
+  @Test
+  public void create() {
+    List<SchemaDiffValidator> validators = validatorFactory.create();
+    assertThat(validators).hasSize(1);
+  }
+}
+
+
+
diff --git a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultSecuritySchemeDiffValidatorFactoryTest.java b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultSecuritySchemeDiffValidatorFactoryTest.java
new file mode 100644
index 0000000..a7eb8e9
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultSecuritySchemeDiffValidatorFactoryTest.java
@@ -0,0 +1,46 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.factory;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import java.util.List;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.SecuritySchemeDiffValidator;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.test.context.ContextConfiguration;
+import org.springframework.test.context.junit4.SpringRunner;
+
+@RunWith(SpringRunner.class)
+@ContextConfiguration(classes = DiffValidatorFactoryTestConfiguration.class)
+public class DefaultSecuritySchemeDiffValidatorFactoryTest {
+
+  @Autowired
+  private DefaultSecuritySchemeDiffValidatorFactory validatorFactory;
+
+  @Test
+  public void create() {
+    List<SecuritySchemeDiffValidator> validators = validatorFactory.create();
+    assertThat(validators).isEmpty();
+  }
+}
+
+
+
diff --git a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultServerDiffValidatorFactoryTest.java b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultServerDiffValidatorFactoryTest.java
new file mode 100644
index 0000000..92b8919
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultServerDiffValidatorFactoryTest.java
@@ -0,0 +1,46 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.factory;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import java.util.List;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.ServerDiffValidator;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.test.context.ContextConfiguration;
+import org.springframework.test.context.junit4.SpringRunner;
+
+@RunWith(SpringRunner.class)
+@ContextConfiguration(classes = DiffValidatorFactoryTestConfiguration.class)
+public class DefaultServerDiffValidatorFactoryTest {
+
+  @Autowired
+  private DefaultServerDiffValidatorFactory validatorFactory;
+
+  @Test
+  public void create() {
+    List<ServerDiffValidator> validators = validatorFactory.create();
+    assertThat(validators).isEmpty();
+  }
+}
+
+
+
diff --git a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultTagDiffValidatorFactoryTest.java b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultTagDiffValidatorFactoryTest.java
new file mode 100644
index 0000000..cffcfa8
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DefaultTagDiffValidatorFactoryTest.java
@@ -0,0 +1,46 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.factory;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+import java.util.List;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.TagDiffValidator;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.test.context.ContextConfiguration;
+import org.springframework.test.context.junit4.SpringRunner;
+
+@RunWith(SpringRunner.class)
+@ContextConfiguration(classes = DiffValidatorFactoryTestConfiguration.class)
+public class DefaultTagDiffValidatorFactoryTest {
+
+  @Autowired
+  private DefaultTagDiffValidatorFactory validatorFactory;
+
+  @Test
+  public void create() {
+    List<TagDiffValidator> validators = validatorFactory.create();
+    assertThat(validators).isEmpty();
+  }
+}
+
+
+
diff --git a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DiffValidatorFactoryTestConfiguration.java b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DiffValidatorFactoryTestConfiguration.java
new file mode 100644
index 0000000..83032f3
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/factory/DiffValidatorFactoryTestConfiguration.java
@@ -0,0 +1,26 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.compatibility.factory;
+
+import org.springframework.context.annotation.ComponentScan;
+import org.springframework.context.annotation.Configuration;
+
+@Configuration
+@ComponentScan
+class DiffValidatorFactoryTestConfiguration {
+}
diff --git a/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/CallbackDiffValidatorFactory.java b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/CallbackDiffValidatorFactory.java
new file mode 100755
index 0000000..89359aa
--- /dev/null
+++ b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/CallbackDiffValidatorFactory.java
@@ -0,0 +1,23 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.diffvalidation.factory;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.CallbackDiffValidator;
+
+public interface CallbackDiffValidatorFactory extends OasObjectDiffValidatorFactory<CallbackDiffValidator> {
+}
diff --git a/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/ComponentsDiffValidatorFactory.java b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/ComponentsDiffValidatorFactory.java
new file mode 100755
index 0000000..68d58b3
--- /dev/null
+++ b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/ComponentsDiffValidatorFactory.java
@@ -0,0 +1,23 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.diffvalidation.factory;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.ComponentsDiffValidator;
+
+public interface ComponentsDiffValidatorFactory extends OasObjectDiffValidatorFactory<ComponentsDiffValidator> {
+}
diff --git a/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/EncodingDiffValidatorFactory.java b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/EncodingDiffValidatorFactory.java
new file mode 100755
index 0000000..f7e3ed6
--- /dev/null
+++ b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/EncodingDiffValidatorFactory.java
@@ -0,0 +1,23 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.diffvalidation.factory;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.EncodingDiffValidator;
+
+public interface EncodingDiffValidatorFactory extends OasObjectDiffValidatorFactory<EncodingDiffValidator> {
+}
diff --git a/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/ExampleDiffValidatorFactory.java b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/ExampleDiffValidatorFactory.java
new file mode 100755
index 0000000..237179c
--- /dev/null
+++ b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/ExampleDiffValidatorFactory.java
@@ -0,0 +1,23 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.diffvalidation.factory;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.ExampleDiffValidator;
+
+public interface ExampleDiffValidatorFactory extends OasObjectDiffValidatorFactory<ExampleDiffValidator> {
+}
diff --git a/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/HeaderDiffValidatorFactory.java b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/HeaderDiffValidatorFactory.java
new file mode 100755
index 0000000..b696a3d
--- /dev/null
+++ b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/HeaderDiffValidatorFactory.java
@@ -0,0 +1,23 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.diffvalidation.factory;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.HeaderDiffValidator;
+
+public interface HeaderDiffValidatorFactory extends OasObjectDiffValidatorFactory<HeaderDiffValidator> {
+}
diff --git a/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/InfoDiffValidatorFactory.java b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/InfoDiffValidatorFactory.java
new file mode 100755
index 0000000..e9683be
--- /dev/null
+++ b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/InfoDiffValidatorFactory.java
@@ -0,0 +1,23 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.diffvalidation.factory;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.InfoDiffValidator;
+
+public interface InfoDiffValidatorFactory extends OasObjectDiffValidatorFactory<InfoDiffValidator> {
+}
diff --git a/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/LinkDiffValidatorFactory.java b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/LinkDiffValidatorFactory.java
new file mode 100755
index 0000000..0188b87
--- /dev/null
+++ b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/LinkDiffValidatorFactory.java
@@ -0,0 +1,23 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.diffvalidation.factory;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.LinkDiffValidator;
+
+public interface LinkDiffValidatorFactory extends OasObjectDiffValidatorFactory<LinkDiffValidator> {
+}
diff --git a/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/MediaTypeDiffValidatorFactory.java b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/MediaTypeDiffValidatorFactory.java
new file mode 100755
index 0000000..5d31e32
--- /dev/null
+++ b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/MediaTypeDiffValidatorFactory.java
@@ -0,0 +1,23 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.diffvalidation.factory;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.MediaTypeDiffValidator;
+
+public interface MediaTypeDiffValidatorFactory extends OasObjectDiffValidatorFactory<MediaTypeDiffValidator> {
+}
diff --git a/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/OasObjectDiffValidatorFactory.java b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/OasObjectDiffValidatorFactory.java
new file mode 100644
index 0000000..06ffad4
--- /dev/null
+++ b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/OasObjectDiffValidatorFactory.java
@@ -0,0 +1,27 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.diffvalidation.factory;
+
+import java.util.List;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasObjectDiffValidator;
+
+public interface OasObjectDiffValidatorFactory<T extends OasObjectDiffValidator> {
+
+  List<T> create();
+}
diff --git a/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/OasSpecDiffValidatorFactory.java b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/OasSpecDiffValidatorFactory.java
new file mode 100755
index 0000000..377ef72
--- /dev/null
+++ b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/OasSpecDiffValidatorFactory.java
@@ -0,0 +1,26 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.diffvalidation.factory;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasSpecDiffValidator;
+
+public interface OasSpecDiffValidatorFactory {
+
+  OasSpecDiffValidator create();
+
+}
diff --git a/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/OpenApiDiffValidatorFactory.java b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/OpenApiDiffValidatorFactory.java
new file mode 100755
index 0000000..248976d
--- /dev/null
+++ b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/OpenApiDiffValidatorFactory.java
@@ -0,0 +1,23 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.diffvalidation.factory;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OpenApiDiffValidator;
+
+public interface OpenApiDiffValidatorFactory extends OasObjectDiffValidatorFactory<OpenApiDiffValidator> {
+}
diff --git a/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/OperationDiffValidatorFactory.java b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/OperationDiffValidatorFactory.java
new file mode 100755
index 0000000..05836da
--- /dev/null
+++ b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/OperationDiffValidatorFactory.java
@@ -0,0 +1,23 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.diffvalidation.factory;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OperationDiffValidator;
+
+public interface OperationDiffValidatorFactory extends OasObjectDiffValidatorFactory<OperationDiffValidator> {
+}
diff --git a/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/ParameterDiffValidatorFactory.java b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/ParameterDiffValidatorFactory.java
new file mode 100755
index 0000000..cc3db99
--- /dev/null
+++ b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/ParameterDiffValidatorFactory.java
@@ -0,0 +1,23 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.diffvalidation.factory;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.ParameterDiffValidator;
+
+public interface ParameterDiffValidatorFactory extends OasObjectDiffValidatorFactory<ParameterDiffValidator> {
+}
diff --git a/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/PathItemDiffValidatorFactory.java b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/PathItemDiffValidatorFactory.java
new file mode 100755
index 0000000..d398fda
--- /dev/null
+++ b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/PathItemDiffValidatorFactory.java
@@ -0,0 +1,23 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.diffvalidation.factory;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.PathItemDiffValidator;
+
+public interface PathItemDiffValidatorFactory extends OasObjectDiffValidatorFactory<PathItemDiffValidator> {
+}
diff --git a/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/PathsDiffValidatorFactory.java b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/PathsDiffValidatorFactory.java
new file mode 100755
index 0000000..1776b49
--- /dev/null
+++ b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/PathsDiffValidatorFactory.java
@@ -0,0 +1,23 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.diffvalidation.factory;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.PathsDiffValidator;
+
+public interface PathsDiffValidatorFactory extends OasObjectDiffValidatorFactory<PathsDiffValidator> {
+}
diff --git a/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/RequestBodyDiffValidatorFactory.java b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/RequestBodyDiffValidatorFactory.java
new file mode 100755
index 0000000..6062fc8
--- /dev/null
+++ b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/RequestBodyDiffValidatorFactory.java
@@ -0,0 +1,23 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.diffvalidation.factory;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.RequestBodyDiffValidator;
+
+public interface RequestBodyDiffValidatorFactory extends OasObjectDiffValidatorFactory<RequestBodyDiffValidator> {
+}
diff --git a/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/ResponseDiffValidatorFactory.java b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/ResponseDiffValidatorFactory.java
new file mode 100755
index 0000000..01f56f0
--- /dev/null
+++ b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/ResponseDiffValidatorFactory.java
@@ -0,0 +1,23 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.diffvalidation.factory;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.ResponseDiffValidator;
+
+public interface ResponseDiffValidatorFactory extends OasObjectDiffValidatorFactory<ResponseDiffValidator> {
+}
diff --git a/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/ResponsesDiffValidatorFactory.java b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/ResponsesDiffValidatorFactory.java
new file mode 100755
index 0000000..4f8ac5e
--- /dev/null
+++ b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/ResponsesDiffValidatorFactory.java
@@ -0,0 +1,23 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.diffvalidation.factory;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.ResponsesDiffValidator;
+
+public interface ResponsesDiffValidatorFactory extends OasObjectDiffValidatorFactory<ResponsesDiffValidator> {
+}
diff --git a/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/SchemaDiffValidatorFactory.java b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/SchemaDiffValidatorFactory.java
new file mode 100755
index 0000000..47df4b4
--- /dev/null
+++ b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/SchemaDiffValidatorFactory.java
@@ -0,0 +1,23 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.diffvalidation.factory;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.SchemaDiffValidator;
+
+public interface SchemaDiffValidatorFactory extends OasObjectDiffValidatorFactory<SchemaDiffValidator> {
+}
diff --git a/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/SecuritySchemeDiffValidatorFactory.java b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/SecuritySchemeDiffValidatorFactory.java
new file mode 100755
index 0000000..a1fb24f
--- /dev/null
+++ b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/SecuritySchemeDiffValidatorFactory.java
@@ -0,0 +1,23 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.diffvalidation.factory;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.SecuritySchemeDiffValidator;
+
+public interface SecuritySchemeDiffValidatorFactory extends OasObjectDiffValidatorFactory<SecuritySchemeDiffValidator> {
+}
diff --git a/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/ServerDiffValidatorFactory.java b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/ServerDiffValidatorFactory.java
new file mode 100755
index 0000000..7fc8bb1
--- /dev/null
+++ b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/ServerDiffValidatorFactory.java
@@ -0,0 +1,23 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.diffvalidation.factory;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.ServerDiffValidator;
+
+public interface ServerDiffValidatorFactory extends OasObjectDiffValidatorFactory<ServerDiffValidator> {
+}
diff --git a/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/TagDiffValidatorFactory.java b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/TagDiffValidatorFactory.java
new file mode 100755
index 0000000..9526411
--- /dev/null
+++ b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/diffvalidation/factory/TagDiffValidatorFactory.java
@@ -0,0 +1,23 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.oasv.diffvalidation.factory;
+
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.TagDiffValidator;
+
+public interface TagDiffValidatorFactory extends OasObjectDiffValidatorFactory<TagDiffValidator> {
+}


[servicecomb-toolkit] 19/26: SCB-1553 Integrate oas-validator compliance check to cli Fix the license issue

Posted by ni...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ningjiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/servicecomb-toolkit.git

commit 20709fd8dae35f6f2b1df3a5f6ca5607da2eed26
Author: Daniel Qian <ch...@gmail.com>
AuthorDate: Wed Nov 6 11:04:01 2019 +0800

    SCB-1553 Integrate oas-validator compliance check to cli
    Fix the license issue
---
 toolkit-distribution/src/release/LICENSE           |  13 +-
 .../src/release/licenses/LICENSE-cddl-gplv2        | 760 ---------------------
 2 files changed, 3 insertions(+), 770 deletions(-)

diff --git a/toolkit-distribution/src/release/LICENSE b/toolkit-distribution/src/release/LICENSE
index cf82798..af84657 100644
--- a/toolkit-distribution/src/release/LICENSE
+++ b/toolkit-distribution/src/release/LICENSE
@@ -230,6 +230,7 @@ You can find a copy of the License at licenses/LICENSE-cddl
 * JavaMail API jar (javax.mail:mailapi:1.4.3 - http://java.sun.com/projects/javamail/mailapi)
 * Java Servlet API (javax.servlet:javax.servlet-api:4.0.1 - http://servlet-spec.java.net)
 * JavaBeans(TM) Activation Framework (javax.activation:activation:1.1 - http://java.sun.com/products/javabeans/jaf/index.jsp)
+* javax.annotation API (javax.annotation:javax.annotation-api:1.3.2 - http://jcp.org/en/jsr/detail?id=250)
 * javax.ws.rs-api (javax.ws.rs:javax.ws.rs-api:2.0.1 - http://jax-rs-spec.java.net)
 * jaxb-api (javax.xml.bind:jaxb-api:2.3.0 - https://github.com/javaee/jaxb-spec/jaxb-api)
 
@@ -458,14 +459,6 @@ For details, see their respective project links.
 * unbescape (org.unbescape:unbescape:1.1.6.RELEASE - http://www.unbescape.org)
 
 ===========================================================================
-This product bundles the following libraries which are licensed under the
-CDDL + GPLv2 with classpath exception.
-For details, see their respective project links.
-You can find a copy of the License at licenses/LICENSE-cddl-gplv2
-
-* javax.annotation API (javax.annotation:javax.annotation-api:1.3.2 - http://jcp.org/en/jsr/detail?id=250)
-
-===========================================================================
 This product bundles Webjars which is licensed under the
 MIT License.
 For details, see their respective project links.
@@ -478,7 +471,7 @@ You can find a copy of the License at licenses/LICENSE-webjars
 This product bundles Animal Sniffer Annotations which is licensed under the
 MIT License.
 For details, see http://www.mojohaus.org/animal-sniffer/animal-sniffer-annotations
-You can find a copy of the License at licenses/LICENSE-mit-unknown
+You can find a copy of the License at licenses/LICENSE-mit
 
 * Animal Sniffer Annotations (org.codehaus.mojo:animal-sniffer-annotations:1.17 - http://www.mojohaus.org/animal-sniffer/animal-sniffer-annotations)
 
@@ -486,7 +479,7 @@ You can find a copy of the License at licenses/LICENSE-mit-unknown
 This product bundles Checker Qual which is licensed under the
 MIT License.
 For details, see https://checkerframework.org
-You can find a copy of the License at licenses/LICENSE-mit-unknown
+You can find a copy of the License at licenses/LICENSE-mit
 
 * Checker Qual (org.checkerframework:checker-compat-qual:2.5.2 - https://checkerframework.org)
 
diff --git a/toolkit-distribution/src/release/licenses/LICENSE-cddl-gplv2 b/toolkit-distribution/src/release/licenses/LICENSE-cddl-gplv2
deleted file mode 100644
index 4b156e6..0000000
--- a/toolkit-distribution/src/release/licenses/LICENSE-cddl-gplv2
+++ /dev/null
@@ -1,760 +0,0 @@
-COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.1
-
-1. Definitions.
-
-    1.1. "Contributor" means each individual or entity that creates or
-    contributes to the creation of Modifications.
-
-    1.2. "Contributor Version" means the combination of the Original
-    Software, prior Modifications used by a Contributor (if any), and
-    the Modifications made by that particular Contributor.
-
-    1.3. "Covered Software" means (a) the Original Software, or (b)
-    Modifications, or (c) the combination of files containing Original
-    Software with files containing Modifications, in each case including
-    portions thereof.
-
-    1.4. "Executable" means the Covered Software in any form other than
-    Source Code.
-
-    1.5. "Initial Developer" means the individual or entity that first
-    makes Original Software available under this License.
-
-    1.6. "Larger Work" means a work which combines Covered Software or
-    portions thereof with code not governed by the terms of this License.
-
-    1.7. "License" means this document.
-
-    1.8. "Licensable" means having the right to grant, to the maximum
-    extent possible, whether at the time of the initial grant or
-    subsequently acquired, any and all of the rights conveyed herein.
-
-    1.9. "Modifications" means the Source Code and Executable form of
-    any of the following:
-
-    A. Any file that results from an addition to, deletion from or
-    modification of the contents of a file containing Original Software
-    or previous Modifications;
-
-    B. Any new file that contains any part of the Original Software or
-    previous Modification; or
-
-    C. Any new file that is contributed or otherwise made available
-    under the terms of this License.
-
-    1.10. "Original Software" means the Source Code and Executable form
-    of computer software code that is originally released under this
-    License.
-
-    1.11. "Patent Claims" means any patent claim(s), now owned or
-    hereafter acquired, including without limitation, method, process,
-    and apparatus claims, in any patent Licensable by grantor.
-
-    1.12. "Source Code" means (a) the common form of computer software
-    code in which modifications are made and (b) associated
-    documentation included in or with such code.
-
-    1.13. "You" (or "Your") means an individual or a legal entity
-    exercising rights under, and complying with all of the terms of,
-    this License. For legal entities, "You" includes any entity which
-    controls, is controlled by, or is under common control with You. For
-    purposes of this definition, "control" means (a) the power, direct
-    or indirect, to cause the direction or management of such entity,
-    whether by contract or otherwise, or (b) ownership of more than
-    fifty percent (50%) of the outstanding shares or beneficial
-    ownership of such entity.
-
-2. License Grants.
-
-    2.1. The Initial Developer Grant.
-
-    Conditioned upon Your compliance with Section 3.1 below and subject
-    to third party intellectual property claims, the Initial Developer
-    hereby grants You a world-wide, royalty-free, non-exclusive license:
-
-    (a) under intellectual property rights (other than patent or
-    trademark) Licensable by Initial Developer, to use, reproduce,
-    modify, display, perform, sublicense and distribute the Original
-    Software (or portions thereof), with or without Modifications,
-    and/or as part of a Larger Work; and
-
-    (b) under Patent Claims infringed by the making, using or selling of
-    Original Software, to make, have made, use, practice, sell, and
-    offer for sale, and/or otherwise dispose of the Original Software
-    (or portions thereof).
-
-    (c) The licenses granted in Sections 2.1(a) and (b) are effective on
-    the date Initial Developer first distributes or otherwise makes the
-    Original Software available to a third party under the terms of this
-    License.
-
-    (d) Notwithstanding Section 2.1(b) above, no patent license is
-    granted: (1) for code that You delete from the Original Software, or
-    (2) for infringements caused by: (i) the modification of the
-    Original Software, or (ii) the combination of the Original Software
-    with other software or devices.
-
-    2.2. Contributor Grant.
-
-    Conditioned upon Your compliance with Section 3.1 below and subject
-    to third party intellectual property claims, each Contributor hereby
-    grants You a world-wide, royalty-free, non-exclusive license:
-
-    (a) under intellectual property rights (other than patent or
-    trademark) Licensable by Contributor to use, reproduce, modify,
-    display, perform, sublicense and distribute the Modifications
-    created by such Contributor (or portions thereof), either on an
-    unmodified basis, with other Modifications, as Covered Software
-    and/or as part of a Larger Work; and
-
-    (b) under Patent Claims infringed by the making, using, or selling
-    of Modifications made by that Contributor either alone and/or in
-    combination with its Contributor Version (or portions of such
-    combination), to make, use, sell, offer for sale, have made, and/or
-    otherwise dispose of: (1) Modifications made by that Contributor (or
-    portions thereof); and (2) the combination of Modifications made by
-    that Contributor with its Contributor Version (or portions of such
-    combination).
-
-    (c) The licenses granted in Sections 2.2(a) and 2.2(b) are effective
-    on the date Contributor first distributes or otherwise makes the
-    Modifications available to a third party.
-
-    (d) Notwithstanding Section 2.2(b) above, no patent license is
-    granted: (1) for any code that Contributor has deleted from the
-    Contributor Version; (2) for infringements caused by: (i) third
-    party modifications of Contributor Version, or (ii) the combination
-    of Modifications made by that Contributor with other software
-    (except as part of the Contributor Version) or other devices; or (3)
-    under Patent Claims infringed by Covered Software in the absence of
-    Modifications made by that Contributor.
-
-3. Distribution Obligations.
-
-    3.1. Availability of Source Code.
-
-    Any Covered Software that You distribute or otherwise make available
-    in Executable form must also be made available in Source Code form
-    and that Source Code form must be distributed only under the terms
-    of this License. You must include a copy of this License with every
-    copy of the Source Code form of the Covered Software You distribute
-    or otherwise make available. You must inform recipients of any such
-    Covered Software in Executable form as to how they can obtain such
-    Covered Software in Source Code form in a reasonable manner on or
-    through a medium customarily used for software exchange.
-
-    3.2. Modifications.
-
-    The Modifications that You create or to which You contribute are
-    governed by the terms of this License. You represent that You
-    believe Your Modifications are Your original creation(s) and/or You
-    have sufficient rights to grant the rights conveyed by this License.
-
-    3.3. Required Notices.
-
-    You must include a notice in each of Your Modifications that
-    identifies You as the Contributor of the Modification. You may not
-    remove or alter any copyright, patent or trademark notices contained
-    within the Covered Software, or any notices of licensing or any
-    descriptive text giving attribution to any Contributor or the
-    Initial Developer.
-
-    3.4. Application of Additional Terms.
-
-    You may not offer or impose any terms on any Covered Software in
-    Source Code form that alters or restricts the applicable version of
-    this License or the recipients' rights hereunder. You may choose to
-    offer, and to charge a fee for, warranty, support, indemnity or
-    liability obligations to one or more recipients of Covered Software.
-    However, you may do so only on Your own behalf, and not on behalf of
-    the Initial Developer or any Contributor. You must make it
-    absolutely clear that any such warranty, support, indemnity or
-    liability obligation is offered by You alone, and You hereby agree
-    to indemnify the Initial Developer and every Contributor for any
-    liability incurred by the Initial Developer or such Contributor as a
-    result of warranty, support, indemnity or liability terms You offer.
-
-    3.5. Distribution of Executable Versions.
-
-    You may distribute the Executable form of the Covered Software under
-    the terms of this License or under the terms of a license of Your
-    choice, which may contain terms different from this License,
-    provided that You are in compliance with the terms of this License
-    and that the license for the Executable form does not attempt to
-    limit or alter the recipient's rights in the Source Code form from
-    the rights set forth in this License. If You distribute the Covered
-    Software in Executable form under a different license, You must make
-    it absolutely clear that any terms which differ from this License
-    are offered by You alone, not by the Initial Developer or
-    Contributor. You hereby agree to indemnify the Initial Developer and
-    every Contributor for any liability incurred by the Initial
-    Developer or such Contributor as a result of any such terms You offer.
-
-    3.6. Larger Works.
-
-    You may create a Larger Work by combining Covered Software with
-    other code not governed by the terms of this License and distribute
-    the Larger Work as a single product. In such a case, You must make
-    sure the requirements of this License are fulfilled for the Covered
-    Software.
-
-4. Versions of the License.
-
-    4.1. New Versions.
-
-    Oracle is the initial license steward and may publish revised and/or
-    new versions of this License from time to time. Each version will be
-    given a distinguishing version number. Except as provided in Section
-    4.3, no one other than the license steward has the right to modify
-    this License.
-
-    4.2. Effect of New Versions.
-
-    You may always continue to use, distribute or otherwise make the
-    Covered Software available under the terms of the version of the
-    License under which You originally received the Covered Software. If
-    the Initial Developer includes a notice in the Original Software
-    prohibiting it from being distributed or otherwise made available
-    under any subsequent version of the License, You must distribute and
-    make the Covered Software available under the terms of the version
-    of the License under which You originally received the Covered
-    Software. Otherwise, You may also choose to use, distribute or
-    otherwise make the Covered Software available under the terms of any
-    subsequent version of the License published by the license steward.
-
-    4.3. Modified Versions.
-
-    When You are an Initial Developer and You want to create a new
-    license for Your Original Software, You may create and use a
-    modified version of this License if You: (a) rename the license and
-    remove any references to the name of the license steward (except to
-    note that the license differs from this License); and (b) otherwise
-    make it clear that the license contains terms which differ from this
-    License.
-
-5. DISCLAIMER OF WARRANTY.
-
-    COVERED SOFTWARE IS PROVIDED UNDER THIS LICENSE ON AN "AS IS" BASIS,
-    WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED,
-    INCLUDING, WITHOUT LIMITATION, WARRANTIES THAT THE COVERED SOFTWARE
-    IS FREE OF DEFECTS, MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE OR
-    NON-INFRINGING. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF
-    THE COVERED SOFTWARE IS WITH YOU. SHOULD ANY COVERED SOFTWARE PROVE
-    DEFECTIVE IN ANY RESPECT, YOU (NOT THE INITIAL DEVELOPER OR ANY
-    OTHER CONTRIBUTOR) ASSUME THE COST OF ANY NECESSARY SERVICING,
-    REPAIR OR CORRECTION. THIS DISCLAIMER OF WARRANTY CONSTITUTES AN
-    ESSENTIAL PART OF THIS LICENSE. NO USE OF ANY COVERED SOFTWARE IS
-    AUTHORIZED HEREUNDER EXCEPT UNDER THIS DISCLAIMER.
-
-6. TERMINATION.
-
-    6.1. This License and the rights granted hereunder will terminate
-    automatically if You fail to comply with terms herein and fail to
-    cure such breach within 30 days of becoming aware of the breach.
-    Provisions which, by their nature, must remain in effect beyond the
-    termination of this License shall survive.
-
-    6.2. If You assert a patent infringement claim (excluding
-    declaratory judgment actions) against Initial Developer or a
-    Contributor (the Initial Developer or Contributor against whom You
-    assert such claim is referred to as "Participant") alleging that the
-    Participant Software (meaning the Contributor Version where the
-    Participant is a Contributor or the Original Software where the
-    Participant is the Initial Developer) directly or indirectly
-    infringes any patent, then any and all rights granted directly or
-    indirectly to You by such Participant, the Initial Developer (if the
-    Initial Developer is not the Participant) and all Contributors under
-    Sections 2.1 and/or 2.2 of this License shall, upon 60 days notice
-    from Participant terminate prospectively and automatically at the
-    expiration of such 60 day notice period, unless if within such 60
-    day period You withdraw Your claim with respect to the Participant
-    Software against such Participant either unilaterally or pursuant to
-    a written agreement with Participant.
-
-    6.3. If You assert a patent infringement claim against Participant
-    alleging that the Participant Software directly or indirectly
-    infringes any patent where such claim is resolved (such as by
-    license or settlement) prior to the initiation of patent
-    infringement litigation, then the reasonable value of the licenses
-    granted by such Participant under Sections 2.1 or 2.2 shall be taken
-    into account in determining the amount or value of any payment or
-    license.
-
-    6.4. In the event of termination under Sections 6.1 or 6.2 above,
-    all end user licenses that have been validly granted by You or any
-    distributor hereunder prior to termination (excluding licenses
-    granted to You by any distributor) shall survive termination.
-
-7. LIMITATION OF LIABILITY.
-
-    UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, WHETHER TORT
-    (INCLUDING NEGLIGENCE), CONTRACT, OR OTHERWISE, SHALL YOU, THE
-    INITIAL DEVELOPER, ANY OTHER CONTRIBUTOR, OR ANY DISTRIBUTOR OF
-    COVERED SOFTWARE, OR ANY SUPPLIER OF ANY OF SUCH PARTIES, BE LIABLE
-    TO ANY PERSON FOR ANY INDIRECT, SPECIAL, INCIDENTAL, OR
-    CONSEQUENTIAL DAMAGES OF ANY CHARACTER INCLUDING, WITHOUT
-    LIMITATION, DAMAGES FOR LOSS OF GOODWILL, WORK STOPPAGE, COMPUTER
-    FAILURE OR MALFUNCTION, OR ANY AND ALL OTHER COMMERCIAL DAMAGES OR
-    LOSSES, EVEN IF SUCH PARTY SHALL HAVE BEEN INFORMED OF THE
-    POSSIBILITY OF SUCH DAMAGES. THIS LIMITATION OF LIABILITY SHALL NOT
-    APPLY TO LIABILITY FOR DEATH OR PERSONAL INJURY RESULTING FROM SUCH
-    PARTY'S NEGLIGENCE TO THE EXTENT APPLICABLE LAW PROHIBITS SUCH
-    LIMITATION. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OR
-    LIMITATION OF INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO THIS EXCLUSION
-    AND LIMITATION MAY NOT APPLY TO YOU.
-
-8. U.S. GOVERNMENT END USERS.
-
-    The Covered Software is a "commercial item," as that term is defined
-    in 48 C.F.R. 2.101 (Oct. 1995), consisting of "commercial computer
-    software" (as that term is defined at 48 C.F.R. ยง
-    252.227-7014(a)(1)) and "commercial computer software documentation"
-    as such terms are used in 48 C.F.R. 12.212 (Sept. 1995). Consistent
-    with 48 C.F.R. 12.212 and 48 C.F.R. 227.7202-1 through 227.7202-4
-    (June 1995), all U.S. Government End Users acquire Covered Software
-    with only those rights set forth herein. This U.S. Government Rights
-    clause is in lieu of, and supersedes, any other FAR, DFAR, or other
-    clause or provision that addresses Government rights in computer
-    software under this License.
-
-9. MISCELLANEOUS.
-
-    This License represents the complete agreement concerning subject
-    matter hereof. If any provision of this License is held to be
-    unenforceable, such provision shall be reformed only to the extent
-    necessary to make it enforceable. This License shall be governed by
-    the law of the jurisdiction specified in a notice contained within
-    the Original Software (except to the extent applicable law, if any,
-    provides otherwise), excluding such jurisdiction's conflict-of-law
-    provisions. Any litigation relating to this License shall be subject
-    to the jurisdiction of the courts located in the jurisdiction and
-    venue specified in a notice contained within the Original Software,
-    with the losing party responsible for costs, including, without
-    limitation, court costs and reasonable attorneys' fees and expenses.
-    The application of the United Nations Convention on Contracts for
-    the International Sale of Goods is expressly excluded. Any law or
-    regulation which provides that the language of a contract shall be
-    construed against the drafter shall not apply to this License. You
-    agree that You alone are responsible for compliance with the United
-    States export administration regulations (and the export control
-    laws and regulation of any other countries) when You use, distribute
-    or otherwise make available any Covered Software.
-
-10. RESPONSIBILITY FOR CLAIMS.
-
-    As between Initial Developer and the Contributors, each party is
-    responsible for claims and damages arising, directly or indirectly,
-    out of its utilization of rights under this License and You agree to
-    work with Initial Developer and Contributors to distribute such
-    responsibility on an equitable basis. Nothing herein is intended or
-    shall be deemed to constitute any admission of liability.
-
-------------------------------------------------------------------------
-
-NOTICE PURSUANT TO SECTION 9 OF THE COMMON DEVELOPMENT AND DISTRIBUTION
-LICENSE (CDDL)
-
-The code released under the CDDL shall be governed by the laws of the
-State of California (excluding conflict-of-law provisions). Any
-litigation relating to this License shall be subject to the jurisdiction
-of the Federal Courts of the Northern District of California and the
-state courts of the State of California, with venue lying in Santa Clara
-County, California.
-
-
-
-  The GNU General Public License (GPL) Version 2, June 1991
-
-Copyright (C) 1989, 1991 Free Software Foundation, Inc.
-51 Franklin Street, Fifth Floor
-Boston, MA 02110-1335
-USA
-
-Everyone is permitted to copy and distribute verbatim copies
-of this license document, but changing it is not allowed.
-
-Preamble
-
-The licenses for most software are designed to take away your freedom to
-share and change it. By contrast, the GNU General Public License is
-intended to guarantee your freedom to share and change free software--to
-make sure the software is free for all its users. This General Public
-License applies to most of the Free Software Foundation's software and
-to any other program whose authors commit to using it. (Some other Free
-Software Foundation software is covered by the GNU Library General
-Public License instead.) You can apply it to your programs, too.
-
-When we speak of free software, we are referring to freedom, not price.
-Our General Public Licenses are designed to make sure that you have the
-freedom to distribute copies of free software (and charge for this
-service if you wish), that you receive source code or can get it if you
-want it, that you can change the software or use pieces of it in new
-free programs; and that you know you can do these things.
-
-To protect your rights, we need to make restrictions that forbid anyone
-to deny you these rights or to ask you to surrender the rights. These
-restrictions translate to certain responsibilities for you if you
-distribute copies of the software, or if you modify it.
-
-For example, if you distribute copies of such a program, whether gratis
-or for a fee, you must give the recipients all the rights that you have.
-You must make sure that they, too, receive or can get the source code.
-And you must show them these terms so they know their rights.
-
-We protect your rights with two steps: (1) copyright the software, and
-(2) offer you this license which gives you legal permission to copy,
-distribute and/or modify the software.
-
-Also, for each author's protection and ours, we want to make certain
-that everyone understands that there is no warranty for this free
-software. If the software is modified by someone else and passed on, we
-want its recipients to know that what they have is not the original, so
-that any problems introduced by others will not reflect on the original
-authors' reputations.
-
-Finally, any free program is threatened constantly by software patents.
-We wish to avoid the danger that redistributors of a free program will
-individually obtain patent licenses, in effect making the program
-proprietary. To prevent this, we have made it clear that any patent must
-be licensed for everyone's free use or not licensed at all.
-
-The precise terms and conditions for copying, distribution and
-modification follow.
-
-TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
-
-0. This License applies to any program or other work which contains a
-notice placed by the copyright holder saying it may be distributed under
-the terms of this General Public License. The "Program", below, refers
-to any such program or work, and a "work based on the Program" means
-either the Program or any derivative work under copyright law: that is
-to say, a work containing the Program or a portion of it, either
-verbatim or with modifications and/or translated into another language.
-(Hereinafter, translation is included without limitation in the term
-"modification".) Each licensee is addressed as "you".
-
-Activities other than copying, distribution and modification are not
-covered by this License; they are outside its scope. The act of running
-the Program is not restricted, and the output from the Program is
-covered only if its contents constitute a work based on the Program
-(independent of having been made by running the Program). Whether that
-is true depends on what the Program does.
-
-1. You may copy and distribute verbatim copies of the Program's source
-code as you receive it, in any medium, provided that you conspicuously
-and appropriately publish on each copy an appropriate copyright notice
-and disclaimer of warranty; keep intact all the notices that refer to
-this License and to the absence of any warranty; and give any other
-recipients of the Program a copy of this License along with the Program.
-
-You may charge a fee for the physical act of transferring a copy, and
-you may at your option offer warranty protection in exchange for a fee.
-
-2. You may modify your copy or copies of the Program or any portion of
-it, thus forming a work based on the Program, and copy and distribute
-such modifications or work under the terms of Section 1 above, provided
-that you also meet all of these conditions:
-
-    a) You must cause the modified files to carry prominent notices
-    stating that you changed the files and the date of any change.
-
-    b) You must cause any work that you distribute or publish, that in
-    whole or in part contains or is derived from the Program or any part
-    thereof, to be licensed as a whole at no charge to all third parties
-    under the terms of this License.
-
-    c) If the modified program normally reads commands interactively
-    when run, you must cause it, when started running for such
-    interactive use in the most ordinary way, to print or display an
-    announcement including an appropriate copyright notice and a notice
-    that there is no warranty (or else, saying that you provide a
-    warranty) and that users may redistribute the program under these
-    conditions, and telling the user how to view a copy of this License.
-    (Exception: if the Program itself is interactive but does not
-    normally print such an announcement, your work based on the Program
-    is not required to print an announcement.)
-
-These requirements apply to the modified work as a whole. If
-identifiable sections of that work are not derived from the Program, and
-can be reasonably considered independent and separate works in
-themselves, then this License, and its terms, do not apply to those
-sections when you distribute them as separate works. But when you
-distribute the same sections as part of a whole which is a work based on
-the Program, the distribution of the whole must be on the terms of this
-License, whose permissions for other licensees extend to the entire
-whole, and thus to each and every part regardless of who wrote it.
-
-Thus, it is not the intent of this section to claim rights or contest
-your rights to work written entirely by you; rather, the intent is to
-exercise the right to control the distribution of derivative or
-collective works based on the Program.
-
-In addition, mere aggregation of another work not based on the Program
-with the Program (or with a work based on the Program) on a volume of a
-storage or distribution medium does not bring the other work under the
-scope of this License.
-
-3. You may copy and distribute the Program (or a work based on it,
-under Section 2) in object code or executable form under the terms of
-Sections 1 and 2 above provided that you also do one of the following:
-
-    a) Accompany it with the complete corresponding machine-readable
-    source code, which must be distributed under the terms of Sections 1
-    and 2 above on a medium customarily used for software interchange; or,
-
-    b) Accompany it with a written offer, valid for at least three
-    years, to give any third party, for a charge no more than your cost
-    of physically performing source distribution, a complete
-    machine-readable copy of the corresponding source code, to be
-    distributed under the terms of Sections 1 and 2 above on a medium
-    customarily used for software interchange; or,
-
-    c) Accompany it with the information you received as to the offer to
-    distribute corresponding source code. (This alternative is allowed
-    only for noncommercial distribution and only if you received the
-    program in object code or executable form with such an offer, in
-    accord with Subsection b above.)
-
-The source code for a work means the preferred form of the work for
-making modifications to it. For an executable work, complete source code
-means all the source code for all modules it contains, plus any
-associated interface definition files, plus the scripts used to control
-compilation and installation of the executable. However, as a special
-exception, the source code distributed need not include anything that is
-normally distributed (in either source or binary form) with the major
-components (compiler, kernel, and so on) of the operating system on
-which the executable runs, unless that component itself accompanies the
-executable.
-
-If distribution of executable or object code is made by offering access
-to copy from a designated place, then offering equivalent access to copy
-the source code from the same place counts as distribution of the source
-code, even though third parties are not compelled to copy the source
-along with the object code.
-
-4. You may not copy, modify, sublicense, or distribute the Program
-except as expressly provided under this License. Any attempt otherwise
-to copy, modify, sublicense or distribute the Program is void, and will
-automatically terminate your rights under this License. However, parties
-who have received copies, or rights, from you under this License will
-not have their licenses terminated so long as such parties remain in
-full compliance.
-
-5. You are not required to accept this License, since you have not
-signed it. However, nothing else grants you permission to modify or
-distribute the Program or its derivative works. These actions are
-prohibited by law if you do not accept this License. Therefore, by
-modifying or distributing the Program (or any work based on the
-Program), you indicate your acceptance of this License to do so, and all
-its terms and conditions for copying, distributing or modifying the
-Program or works based on it.
-
-6. Each time you redistribute the Program (or any work based on the
-Program), the recipient automatically receives a license from the
-original licensor to copy, distribute or modify the Program subject to
-these terms and conditions. You may not impose any further restrictions
-on the recipients' exercise of the rights granted herein. You are not
-responsible for enforcing compliance by third parties to this License.
-
-7. If, as a consequence of a court judgment or allegation of patent
-infringement or for any other reason (not limited to patent issues),
-conditions are imposed on you (whether by court order, agreement or
-otherwise) that contradict the conditions of this License, they do not
-excuse you from the conditions of this License. If you cannot distribute
-so as to satisfy simultaneously your obligations under this License and
-any other pertinent obligations, then as a consequence you may not
-distribute the Program at all. For example, if a patent license would
-not permit royalty-free redistribution of the Program by all those who
-receive copies directly or indirectly through you, then the only way you
-could satisfy both it and this License would be to refrain entirely from
-distribution of the Program.
-
-If any portion of this section is held invalid or unenforceable under
-any particular circumstance, the balance of the section is intended to
-apply and the section as a whole is intended to apply in other
-circumstances.
-
-It is not the purpose of this section to induce you to infringe any
-patents or other property right claims or to contest validity of any
-such claims; this section has the sole purpose of protecting the
-integrity of the free software distribution system, which is implemented
-by public license practices. Many people have made generous
-contributions to the wide range of software distributed through that
-system in reliance on consistent application of that system; it is up to
-the author/donor to decide if he or she is willing to distribute
-software through any other system and a licensee cannot impose that choice.
-
-This section is intended to make thoroughly clear what is believed to be
-a consequence of the rest of this License.
-
-8. If the distribution and/or use of the Program is restricted in
-certain countries either by patents or by copyrighted interfaces, the
-original copyright holder who places the Program under this License may
-add an explicit geographical distribution limitation excluding those
-countries, so that distribution is permitted only in or among countries
-not thus excluded. In such case, this License incorporates the
-limitation as if written in the body of this License.
-
-9. The Free Software Foundation may publish revised and/or new
-versions of the General Public License from time to time. Such new
-versions will be similar in spirit to the present version, but may
-differ in detail to address new problems or concerns.
-
-Each version is given a distinguishing version number. If the Program
-specifies a version number of this License which applies to it and "any
-later version", you have the option of following the terms and
-conditions either of that version or of any later version published by
-the Free Software Foundation. If the Program does not specify a version
-number of this License, you may choose any version ever published by the
-Free Software Foundation.
-
-10. If you wish to incorporate parts of the Program into other free
-programs whose distribution conditions are different, write to the
-author to ask for permission. For software which is copyrighted by the
-Free Software Foundation, write to the Free Software Foundation; we
-sometimes make exceptions for this. Our decision will be guided by the
-two goals of preserving the free status of all derivatives of our free
-software and of promoting the sharing and reuse of software generally.
-
-NO WARRANTY
-
-11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO
-WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
-EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
-OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND,
-EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE
-ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH
-YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL
-NECESSARY SERVICING, REPAIR OR CORRECTION.
-
-12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
-WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
-AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR
-DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL
-DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM
-(INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED
-INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF
-THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR
-OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
-
-END OF TERMS AND CONDITIONS
-
-How to Apply These Terms to Your New Programs
-
-If you develop a new program, and you want it to be of the greatest
-possible use to the public, the best way to achieve this is to make it
-free software which everyone can redistribute and change under these terms.
-
-To do so, attach the following notices to the program. It is safest to
-attach them to the start of each source file to most effectively convey
-the exclusion of warranty; and each file should have at least the
-"copyright" line and a pointer to where the full notice is found.
-
-    One line to give the program's name and a brief idea of what it does.
-    Copyright (C) <year> <name of author>
-
-    This program is free software; you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation; either version 2 of the License, or
-    (at your option) any later version.
-
-    This program is distributed in the hope that it will be useful, but
-    WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-    General Public License for more details.
-
-    You should have received a copy of the GNU General Public License
-    along with this program; if not, write to the Free Software
-    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335 USA
-
-Also add information on how to contact you by electronic and paper mail.
-
-If the program is interactive, make it output a short notice like this
-when it starts in an interactive mode:
-
-    Gnomovision version 69, Copyright (C) year name of author
-    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type
-    `show w'. This is free software, and you are welcome to redistribute
-    it under certain conditions; type `show c' for details.
-
-The hypothetical commands `show w' and `show c' should show the
-appropriate parts of the General Public License. Of course, the commands
-you use may be called something other than `show w' and `show c'; they
-could even be mouse-clicks or menu items--whatever suits your program.
-
-You should also get your employer (if you work as a programmer) or your
-school, if any, to sign a "copyright disclaimer" for the program, if
-necessary. Here is a sample; alter the names:
-
-    Yoyodyne, Inc., hereby disclaims all copyright interest in the
-    program `Gnomovision' (which makes passes at compilers) written by
-    James Hacker.
-
-    signature of Ty Coon, 1 April 1989
-    Ty Coon, President of Vice
-
-This General Public License does not permit incorporating your program
-into proprietary programs. If your program is a subroutine library, you
-may consider it more useful to permit linking proprietary applications
-with the library. If this is what you want to do, use the GNU Library
-General Public License instead of this License.
-
-#
-
-Certain source files distributed by Oracle America, Inc. and/or its
-affiliates are subject to the following clarification and special
-exception to the GPLv2, based on the GNU Project exception for its
-Classpath libraries, known as the GNU Classpath Exception, but only
-where Oracle has expressly included in the particular source file's
-header the words "Oracle designates this particular file as subject to
-the "Classpath" exception as provided by Oracle in the LICENSE file
-that accompanied this code."
-
-You should also note that Oracle includes multiple, independent
-programs in this software package. Some of those programs are provided
-under licenses deemed incompatible with the GPLv2 by the Free Software
-Foundation and others.  For example, the package includes programs
-licensed under the Apache License, Version 2.0.  Such programs are
-licensed to you under their original licenses.
-
-Oracle facilitates your further distribution of this package by adding
-the Classpath Exception to the necessary parts of its GPLv2 code, which
-permits you to use that code in combination with other independent
-modules not licensed under the GPLv2.  However, note that this would
-not permit you to commingle code under an incompatible license with
-Oracle's GPLv2 licensed code by, for example, cutting and pasting such
-code into a file also containing Oracle's GPLv2 licensed code and then
-distributing the result.  Additionally, if you were to remove the
-Classpath Exception from any of the files to which it applies and
-distribute the result, you would likely be required to license some or
-all of the other code in that distribution under the GPLv2 as well, and
-since the GPLv2 is incompatible with the license terms of some items
-included in the distribution by Oracle, removing the Classpath
-Exception could therefore effectively compromise your ability to
-further distribute the package.
-
-Proceed with caution and we recommend that you obtain the advice of a
-lawyer skilled in open source matters before removing the Classpath
-Exception or making modifications to this package which may
-subsequently be redistributed and/or involve the use of third party
-software.
-
-CLASSPATH EXCEPTION
-Linking this library statically or dynamically with other modules is
-making a combined work based on this library.  Thus, the terms and
-conditions of the GNU General Public License version 2 cover the whole
-combination.
-
-As a special exception, the copyright holders of this library give you
-permission to link this library with independent modules to produce an
-executable, regardless of the license terms of these independent
-modules, and to copy and distribute the resulting executable under
-terms of your choice, provided that you also meet, for each linked
-independent module, the terms and conditions of the license of that
-module.  An independent module is a module which is not derived from or
-based on this library.  If you modify this library, you may extend this
-exception to your version of the library, but you are not obligated to
-do so.  If you do not wish to do so, delete this exception statement
-from your version.
-


[servicecomb-toolkit] 02/26: SCB-1548 fix license header issue and remove unnecessary ci files

Posted by ni...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ningjiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/servicecomb-toolkit.git

commit c023d3b75f4c363041b803b34e53113494bdb40c
Author: Daniel Qian <ch...@gmail.com>
AuthorDate: Mon Oct 28 10:11:42 2019 +0800

    SCB-1548 fix license header issue and remove unnecessary ci files
---
 oas-validator/.mvn/wrapper/maven-wrapper.jar       | Bin 48336 -> 0 bytes
 .../.mvn/wrapper/maven-wrapper.properties          |   1 -
 oas-validator/Jenkinsfile                          |  61 ------
 oas-validator/mvnw                                 | 227 ---------------------
 oas-validator/mvnw.cmd                             | 145 -------------
 .../src/main/resources/META-INF/spring.factories   |  17 ++
 .../src/main/resources/META-INF/spring.factories   |  17 ++
 .../src/main/resources/META-INF/spring.factories   |  17 ++
 .../templates/validator/compatibility.html         |  16 ++
 9 files changed, 67 insertions(+), 434 deletions(-)

diff --git a/oas-validator/.mvn/wrapper/maven-wrapper.jar b/oas-validator/.mvn/wrapper/maven-wrapper.jar
deleted file mode 100755
index f775b1c..0000000
Binary files a/oas-validator/.mvn/wrapper/maven-wrapper.jar and /dev/null differ
diff --git a/oas-validator/.mvn/wrapper/maven-wrapper.properties b/oas-validator/.mvn/wrapper/maven-wrapper.properties
deleted file mode 100755
index eb91947..0000000
--- a/oas-validator/.mvn/wrapper/maven-wrapper.properties
+++ /dev/null
@@ -1 +0,0 @@
-distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.3/apache-maven-3.3.3-bin.zip
\ No newline at end of file
diff --git a/oas-validator/Jenkinsfile b/oas-validator/Jenkinsfile
deleted file mode 100755
index ea54d66..0000000
--- a/oas-validator/Jenkinsfile
+++ /dev/null
@@ -1,61 +0,0 @@
-pipeline {
-  agent any
-
-  triggers {
-    // ๆฏ30ๅˆ†้’Ÿๆฃ€ๆŸฅไธ€ไธ‹GITไป“ๅบ“
-    pollSCM '*/30 * * * *'
-  }
-
-  options {
-    // ็ฆๆญขๅ› Multibranch pipeline indexๅŠจไฝœ่งฆๅ‘ๆž„ๅปบ
-    overrideIndexTriggers false
-    // ็ฆๆญขๅนถๅ‘ๆž„ๅปบ
-    disableConcurrentBuilds()
-    // ๆž„ๅปบ็ป“ๆžœไฟ็•™ๅคฉๆ•ฐ10ๅคฉ๏ผŒๆœ€ๅคšไฟ็•™10ไธช
-    buildDiscarder logRotator(daysToKeepStr: '30', numToKeepStr: '10')
-    // ๆŽงๅˆถๅฐๆ‰“ๅ‡บๆ—ถ้—ดๆˆณ
-    // timestamps()
-    // ๆž„ๅปบ่ถ…ๆ—ถ่ฎพ็ฝฎ๏ผš15ๅˆ†้’Ÿ
-    timeout(30)
-  }
-
-  stages {
-
-    stage('Build & Test') {
-
-      steps {
-        withMaven(
-          // Jenkinsๅ…จๅฑ€ๅทฅๅ…ท่ฎพ็ฝฎ็š„Maven็š„ๅๅญ—
-          maven: 'Maven3',
-          // Jenkinsๅ…จๅฑ€ๅทฅๅ…ท่ฎพ็ฝฎ็š„JDK็š„ๅๅญ—๏ผŒๆœ‰JDK6๏ผŒJDK7๏ผŒJDK8ๅฏ้€‰
-          jdk: 'JDK8',
-          // ๆŒ‡ๅฎšmavenๆœฌๅœฐไป“ๅบ“่ทฏๅพ„ไธบ้กน็›ฎworking dirไธ‹็š„.local-m2-reop๏ผŒๅฏไปฅ้ฟๅ…ๅ› ๅนถๅ‘ๆž„ๅปบๅฏผ่‡ดๆœฌๅœฐไป“ๅบ“ๆททไนฑ็š„้—ฎ้ข˜
-          mavenLocalRepo: '.local-m2-repo'
-        ) {
-          sh 'mvn -f ./ clean install'
-        }
-      }
-
-    }
-
-
-  }
-
-  post {
-    always {
-      // ๅ‘้€้‚ฎไปถๅˆฐๆœฌๆฌกchangeๆ‰€ๅŒ…ๅซ็š„committer
-      emailext recipientProviders: [developers()],
-        subject: "Pipeline [${currentBuild.fullDisplayName}] built ${currentBuild.currentResult}",
-        body: "More details: ${currentBuild.absoluteUrl}"
-
-    }
-    cleanup {
-      // ๆธ…็ฉบworkspace๏ผŒ่Š‚็œJenkinsๆœๅŠกๅ™จ็ฃ็›˜็ฉบ้—ด
-      echo 'Cleanup workspace'
-      withMaven(maven: 'Maven3', jdk: 'JDK8', mavenLocalRepo: '.local-m2-repo', publisherStrategy: 'EXPLICIT') {
-        sh 'mvn -f ./ clean'
-      }
-
-    }
-  }
-}
diff --git a/oas-validator/mvnw b/oas-validator/mvnw
deleted file mode 100755
index e96ccd5..0000000
--- a/oas-validator/mvnw
+++ /dev/null
@@ -1,227 +0,0 @@
-#!/bin/sh
-# ----------------------------------------------------------------------------
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-#    http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-# ----------------------------------------------------------------------------
-
-# ----------------------------------------------------------------------------
-# Maven2 Start Up Batch script
-#
-# Required ENV vars:
-# ------------------
-#   JAVA_HOME - location of a JDK home dir
-#
-# Optional ENV vars
-# -----------------
-#   M2_HOME - location of maven2's installed home dir
-#   MAVEN_OPTS - parameters passed to the Java VM when running Maven
-#     e.g. to debug Maven itself, use
-#       set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
-#   MAVEN_SKIP_RC - flag to disable loading of mavenrc files
-# ----------------------------------------------------------------------------
-
-if [ -z "$MAVEN_SKIP_RC" ] ; then
-
-  if [ -f /etc/mavenrc ] ; then
-    . /etc/mavenrc
-  fi
-
-  if [ -f "$HOME/.mavenrc" ] ; then
-    . "$HOME/.mavenrc"
-  fi
-
-fi
-
-# OS specific support.  $var _must_ be set to either true or false.
-cygwin=false;
-darwin=false;
-mingw=false
-case "`uname`" in
-  CYGWIN*) cygwin=true ;;
-  MINGW*) mingw=true;;
-  Darwin*) darwin=true
-    # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home
-    # See https://developer.apple.com/library/mac/qa/qa1170/_index.html
-    if [ -z "$JAVA_HOME" ]; then
-      if [ -x "/usr/libexec/java_home" ]; then
-        export JAVA_HOME="`/usr/libexec/java_home`"
-      else
-        export JAVA_HOME="/Library/Java/Home"
-      fi
-    fi
-    ;;
-esac
-
-if [ -z "$JAVA_HOME" ] ; then
-  if [ -r /etc/gentoo-release ] ; then
-    JAVA_HOME=`java-config --jre-home`
-  fi
-fi
-
-if [ -z "$M2_HOME" ] ; then
-  ## resolve links - $0 may be a link to maven's home
-  PRG="$0"
-
-  # need this for relative symlinks
-  while [ -h "$PRG" ] ; do
-    ls=`ls -ld "$PRG"`
-    link=`expr "$ls" : '.*-> \(.*\)$'`
-    if expr "$link" : '/.*' > /dev/null; then
-      PRG="$link"
-    else
-      PRG="`dirname "$PRG"`/$link"
-    fi
-  done
-
-  saveddir=`pwd`
-
-  M2_HOME=`dirname "$PRG"`/..
-
-  # make it fully qualified
-  M2_HOME=`cd "$M2_HOME" && pwd`
-
-  cd "$saveddir"
-  # echo Using m2 at $M2_HOME
-fi
-
-# For Cygwin, ensure paths are in UNIX format before anything is touched
-if $cygwin ; then
-  [ -n "$M2_HOME" ] &&
-    M2_HOME=`cygpath --unix "$M2_HOME"`
-  [ -n "$JAVA_HOME" ] &&
-    JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
-  [ -n "$CLASSPATH" ] &&
-    CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
-fi
-
-# For Mingw, ensure paths are in UNIX format before anything is touched
-if $mingw ; then
-  [ -n "$M2_HOME" ] &&
-    M2_HOME="`(cd "$M2_HOME"; pwd)`"
-  [ -n "$JAVA_HOME" ] &&
-    JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`"
-  # TODO classpath?
-fi
-
-if [ -z "$JAVA_HOME" ]; then
-  javaExecutable="`which javac`"
-  if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then
-    # readlink(1) is not available as standard on Solaris 10.
-    readLink=`which readlink`
-    if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then
-      if $darwin ; then
-        javaHome="`dirname \"$javaExecutable\"`"
-        javaExecutable="`cd \"$javaHome\" && pwd -P`/javac"
-      else
-        javaExecutable="`readlink -f \"$javaExecutable\"`"
-      fi
-      javaHome="`dirname \"$javaExecutable\"`"
-      javaHome=`expr "$javaHome" : '\(.*\)/bin'`
-      JAVA_HOME="$javaHome"
-      export JAVA_HOME
-    fi
-  fi
-fi
-
-if [ -z "$JAVACMD" ] ; then
-  if [ -n "$JAVA_HOME"  ] ; then
-    if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
-      # IBM's JDK on AIX uses strange locations for the executables
-      JAVACMD="$JAVA_HOME/jre/sh/java"
-    else
-      JAVACMD="$JAVA_HOME/bin/java"
-    fi
-  else
-    JAVACMD="`which java`"
-  fi
-fi
-
-if [ ! -x "$JAVACMD" ] ; then
-  echo "Error: JAVA_HOME is not defined correctly." >&2
-  echo "  We cannot execute $JAVACMD" >&2
-  exit 1
-fi
-
-if [ -z "$JAVA_HOME" ] ; then
-  echo "Warning: JAVA_HOME environment variable is not set."
-fi
-
-CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher
-
-# traverses directory structure from process work directory to filesystem root
-# first directory with .mvn subdirectory is considered project base directory
-find_maven_basedir() {
-
-  if [ -z "$1" ]
-  then
-    echo "Path not specified to find_maven_basedir"
-    return 1
-  fi
-
-  basedir="$1"
-  wdir="$1"
-  while [ "$wdir" != '/' ] ; do
-    if [ -d "$wdir"/.mvn ] ; then
-      basedir=$wdir
-      break
-    fi
-    # workaround for JBEAP-8937 (on Solaris 10/Sparc)
-    if [ -d "${wdir}" ]; then
-      wdir=`cd "$wdir/.."; pwd`
-    fi
-    # end of workaround
-  done
-  echo "${basedir}"
-}
-
-# concatenates all lines of a file
-concat_lines() {
-  if [ -f "$1" ]; then
-    echo "$(tr -s '\n' ' ' < "$1")"
-  fi
-}
-
-BASE_DIR=`find_maven_basedir "$(pwd)"`
-if [ -z "$BASE_DIR" ]; then
-  exit 1;
-fi
-
-export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"}
-if [ "$MVNW_VERBOSE" = true ]; then
-  echo $MAVEN_PROJECTBASEDIR
-fi
-MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS"
-
-# For Cygwin, switch paths to Windows format before running java
-if $cygwin; then
-  [ -n "$M2_HOME" ] &&
-    M2_HOME=`cygpath --path --windows "$M2_HOME"`
-  [ -n "$JAVA_HOME" ] &&
-    JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
-  [ -n "$CLASSPATH" ] &&
-    CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
-  [ -n "$MAVEN_PROJECTBASEDIR" ] &&
-    MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"`
-fi
-
-WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
-
-exec "$JAVACMD" \
-  $MAVEN_OPTS \
-  -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \
-  "-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \
-  ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@"
diff --git a/oas-validator/mvnw.cmd b/oas-validator/mvnw.cmd
deleted file mode 100755
index 4f0b068..0000000
--- a/oas-validator/mvnw.cmd
+++ /dev/null
@@ -1,145 +0,0 @@
-@REM ----------------------------------------------------------------------------
-@REM Licensed to the Apache Software Foundation (ASF) under one
-@REM or more contributor license agreements.  See the NOTICE file
-@REM distributed with this work for additional information
-@REM regarding copyright ownership.  The ASF licenses this file
-@REM to you under the Apache License, Version 2.0 (the
-@REM "License"); you may not use this file except in compliance
-@REM with the License.  You may obtain a copy of the License at
-@REM
-@REM    http://www.apache.org/licenses/LICENSE-2.0
-@REM
-@REM Unless required by applicable law or agreed to in writing,
-@REM software distributed under the License is distributed on an
-@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-@REM KIND, either express or implied.  See the License for the
-@REM specific language governing permissions and limitations
-@REM under the License.
-@REM ----------------------------------------------------------------------------
-
-@REM ----------------------------------------------------------------------------
-@REM Maven2 Start Up Batch script
-@REM
-@REM Required ENV vars:
-@REM JAVA_HOME - location of a JDK home dir
-@REM
-@REM Optional ENV vars
-@REM M2_HOME - location of maven2's installed home dir
-@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands
-@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a key stroke before ending
-@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven
-@REM     e.g. to debug Maven itself, use
-@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
-@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files
-@REM ----------------------------------------------------------------------------
-
-@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on'
-@echo off
-@REM set title of command window
-title %0
-@REM enable echoing my setting MAVEN_BATCH_ECHO to 'on'
-@if "%MAVEN_BATCH_ECHO%" == "on"  echo %MAVEN_BATCH_ECHO%
-
-@REM set %HOME% to equivalent of $HOME
-if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%")
-
-@REM Execute a user defined script before this one
-if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre
-@REM check for pre script, once with legacy .bat ending and once with .cmd ending
-if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat"
-if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd"
-:skipRcPre
-
-@setlocal
-
-set ERROR_CODE=0
-
-@REM To isolate internal variables from possible post scripts, we use another setlocal
-@setlocal
-
-@REM ==== START VALIDATION ====
-if not "%JAVA_HOME%" == "" goto OkJHome
-
-echo.
-echo Error: JAVA_HOME not found in your environment. >&2
-echo Please set the JAVA_HOME variable in your environment to match the >&2
-echo location of your Java installation. >&2
-echo.
-goto error
-
-:OkJHome
-if exist "%JAVA_HOME%\bin\java.exe" goto init
-
-echo.
-echo Error: JAVA_HOME is set to an invalid directory. >&2
-echo JAVA_HOME = "%JAVA_HOME%" >&2
-echo Please set the JAVA_HOME variable in your environment to match the >&2
-echo location of your Java installation. >&2
-echo.
-goto error
-
-@REM ==== END VALIDATION ====
-
-:init
-
-@REM Find the project base dir, i.e. the directory that contains the folder ".mvn".
-@REM Fallback to current working directory if not found.
-
-set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR%
-IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir
-
-set EXEC_DIR=%CD%
-set WDIR=%EXEC_DIR%
-:findBaseDir
-IF EXIST "%WDIR%"\.mvn goto baseDirFound
-cd ..
-IF "%WDIR%"=="%CD%" goto baseDirNotFound
-set WDIR=%CD%
-goto findBaseDir
-
-:baseDirFound
-set MAVEN_PROJECTBASEDIR=%WDIR%
-cd "%EXEC_DIR%"
-goto endDetectBaseDir
-
-:baseDirNotFound
-set MAVEN_PROJECTBASEDIR=%EXEC_DIR%
-cd "%EXEC_DIR%"
-
-:endDetectBaseDir
-
-IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig
-
-@setlocal EnableExtensions EnableDelayedExpansion
-for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a
-@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS%
-
-:endReadAdditionalConfig
-
-SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe"
-
-set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar"
-set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
-
-%MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %*
-if ERRORLEVEL 1 goto error
-goto end
-
-:error
-set ERROR_CODE=1
-
-:end
-@endlocal & set ERROR_CODE=%ERROR_CODE%
-
-if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost
-@REM check for post script, once with legacy .bat ending and once with .cmd ending
-if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat"
-if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd"
-:skipRcPost
-
-@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on'
-if "%MAVEN_BATCH_PAUSE%" == "on" pause
-
-if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE%
-
-exit /B %ERROR_CODE%
diff --git a/oas-validator/oas-validator-compatibility-spring/src/main/resources/META-INF/spring.factories b/oas-validator/oas-validator-compatibility-spring/src/main/resources/META-INF/spring.factories
index fb0c853..25c3c57 100755
--- a/oas-validator/oas-validator-compatibility-spring/src/main/resources/META-INF/spring.factories
+++ b/oas-validator/oas-validator-compatibility-spring/src/main/resources/META-INF/spring.factories
@@ -1,3 +1,20 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
 org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
 org.apache.servicecomb.toolkit.oasv.compatibility.config.EncodingDiffValidatorsConfiguration,\
 org.apache.servicecomb.toolkit.oasv.compatibility.config.HeaderDiffValidatorsConfiguration,\
diff --git a/oas-validator/oas-validator-compliance-spring/src/main/resources/META-INF/spring.factories b/oas-validator/oas-validator-compliance-spring/src/main/resources/META-INF/spring.factories
index 2de8e7d..809ee5a 100755
--- a/oas-validator/oas-validator-compliance-spring/src/main/resources/META-INF/spring.factories
+++ b/oas-validator/oas-validator-compliance-spring/src/main/resources/META-INF/spring.factories
@@ -1,3 +1,20 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
 org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
 org.apache.servicecomb.toolkit.oasv.compliance.config.ComponentsValidatorConfiguration,\
 org.apache.servicecomb.toolkit.oasv.compliance.config.EncodingValidatorConfiguration,\
diff --git a/oas-validator/oas-validator-core-spring/src/main/resources/META-INF/spring.factories b/oas-validator/oas-validator-core-spring/src/main/resources/META-INF/spring.factories
index 85fd7de..0607de8 100755
--- a/oas-validator/oas-validator-core-spring/src/main/resources/META-INF/spring.factories
+++ b/oas-validator/oas-validator-core-spring/src/main/resources/META-INF/spring.factories
@@ -1,3 +1,20 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
 org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
 org.apache.servicecomb.toolkit.oasv.diffvalidation.config.OasDiffValidatorsSkeletonConfiguration,\
 org.apache.servicecomb.toolkit.oasv.validation.config.OasValidatorsSkeletonConfiguration
diff --git a/oas-validator/oas-validator-web/src/main/resources/templates/validator/compatibility.html b/oas-validator/oas-validator-web/src/main/resources/templates/validator/compatibility.html
index 748395b..e6aeb25 100755
--- a/oas-validator/oas-validator-web/src/main/resources/templates/validator/compatibility.html
+++ b/oas-validator/oas-validator-web/src/main/resources/templates/validator/compatibility.html
@@ -1,3 +1,19 @@
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one or more
+  ~ contributor license agreements.  See the NOTICE file distributed with
+  ~ this work for additional information regarding copyright ownership.
+  ~ The ASF licenses this file to You under the Apache License, Version 2.0
+  ~ (the "License"); you may not use this file except in compliance with
+  ~ the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing, software
+  ~ distributed under the License is distributed on an "AS IS" BASIS,
+  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  ~ See the License for the specific language governing permissions and
+  ~ limitations under the License.
+  -->
 <!DOCTYPE html>
 
 <html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org" >


[servicecomb-toolkit] 05/26: SCB-1553 Integrate oas-validator compliance check to cli update LICENSE files

Posted by ni...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ningjiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/servicecomb-toolkit.git

commit 5fc4a873ff3740ede4ffd4e07293b3ba30291bc1
Author: Daniel Qian <ch...@gmail.com>
AuthorDate: Thu Oct 31 16:03:39 2019 +0800

    SCB-1553 Integrate oas-validator compliance check to cli
    update LICENSE files
---
 LICENSE                                            |   0
 toolkit-distribution/src/release/LICENSE           | 202 +++++++++++++++++++--
 .../src/release/licenses/LICENSE-asm               |  27 +++
 .../src/release/licenses/LICENSE-cal10n            |   0
 .../src/release/licenses/LICENSE-cc0               |  27 +++
 .../src/release/licenses/LICENSE-cddl              |   0
 .../licenses/{LICENSE-cddl => LICENSE-cddl-gplv2}  |   1 +
 .../src/release/licenses/LICENSE-commonmark        |   0
 .../src/release/licenses/LICENSE-epl-v10           |   0
 .../src/release/licenses/LICENSE-hamcrest          |   0
 .../src/release/licenses/LICENSE-jopt              |  22 +++
 .../src/release/licenses/LICENSE-lombok            |  19 ++
 .../src/release/licenses/LICENSE-mit               |  21 +++
 .../src/release/licenses/LICENSE-mockito           |  21 +++
 .../src/release/licenses/LICENSE-mozilla-v20       |   0
 .../src/release/licenses/LICENSE-slf4j             |   0
 .../src/release/licenses/LICENSE-webjars           |  21 +++
 .../release/licenses/LICENSE-woodstox-stax2-api    |   0
 .../src/release/licenses/NOTICE-airline            |   0
 .../src/release/licenses/NOTICE-apache-commons-cli |   0
 .../release/licenses/NOTICE-apache-commons-codec   |   0
 .../licenses/NOTICE-servicecomb-java-chassis       |   0
 22 files changed, 343 insertions(+), 18 deletions(-)

diff --git a/LICENSE b/LICENSE
old mode 100755
new mode 100644
diff --git a/toolkit-distribution/src/release/LICENSE b/toolkit-distribution/src/release/LICENSE
index 6e988f1..cf82798 100755
--- a/toolkit-distribution/src/release/LICENSE
+++ b/toolkit-distribution/src/release/LICENSE
@@ -246,7 +246,10 @@ MIT license.
 For details, see http://www.slf4j.org
 You can find a copy of the License at licenses/LICENSE-slf4j
 
+* JUL to SLF4J bridge (org.slf4j:jul-to-slf4j:1.7.26 - http://www.slf4j.org)
+* SLF4J API Module (org.slf4j:slf4j-api:1.6.3 - http://www.slf4j.org)
 * SLF4J API Module (org.slf4j:slf4j-api:1.7.12 - http://www.slf4j.org)
+* SLF4J API Module (org.slf4j:slf4j-api:1.7.25 - http://www.slf4j.org)
 * SLF4J Extensions Module (org.slf4j:slf4j-ext:1.7.12 - http://www.slf4j.org)
 * SLF4J Simple Binding (org.slf4j:slf4j-simple:1.7.12 - http://www.slf4j.org)
 
@@ -256,6 +259,7 @@ For details, see https://github.com/hamcrest/JavaHamcrest/blob/master/LICENSE.tx
 You can find a copy of the License at licenses/LICENSE-hamcrest
 
 * Hamcrest Core (org.hamcrest:hamcrest-core:1.3 - https://github.com/hamcrest/JavaHamcrest/hamcrest-core)
+* Hamcrest library (org.hamcrest:hamcrest-library:1.3 - https://github.com/hamcrest/JavaHamcrest/hamcrest-library)
 
 ===========================================================================
 This product bundles of Hamcrest which is licensed under BSD 3-Clause License
@@ -300,69 +304,231 @@ MIT license.
 You can find a copy of the License at licenses/LICENSE-cal10n
 
 * Compiler assisted localization library (CAL10N) - API (ch.qos.cal10n:cal10n-api:0.8.1 - http://cal10n.qos.ch/cal10n-api)
+* Compiler assisted localization library (CAL10N) - API (ch.qos.cal10n:cal10n-api:0.7.4 - http://cal10n.qos.ch/cal10n-api)
 
 ================================================================
 This product bundles the following libraries which are licensed
 under the Apache License v2.
 For details, see their respective project links.
 
-* airline (io.airlift:airline:0.7 - https://github.com/airlift/airline)
 * A Jackson 2.x helper (com.github.jknack:handlebars-jackson2:4.1.2 - https://github.com/jknack/handlebars.java/handlebars-jackson2)
+* ASM based accessors helper used by json-smart (net.minidev:accessors-smart:1.2 - http://www.minidev.net/)
 * Apache Commons Codec (commons-codec:commons-codec:1.9 - http://commons.apache.org/proper/commons-codec/)
+* Apache Commons Collections (org.apache.commons:commons-collections4:4.3 - http://commons.apache.org/proper/commons-collections/)
 * Apache Commons Lang (org.apache.commons:commons-lang3:3.4 - http://commons.apache.org/proper/commons-lang/)
+* Apache Commons Lang (org.apache.commons:commons-lang3:3.8.1 - http://commons.apache.org/proper/commons-lang/)
 * Apache Commons Logging (commons-logging:commons-logging:1.2 - http://commons.apache.org/proper/commons-logging/)
 * Apache HttpClient (org.apache.httpcomponents:httpclient:4.5.2 - http://hc.apache.org/httpcomponents-client)
 * Apache HttpCore (org.apache.httpcomponents:httpcore:4.4.4 - http://hc.apache.org/httpcomponents-core-ga)
 * Apache Log4j (log4j:log4j:1.2.17 - http://logging.apache.org/log4j/1.2/)
 * Apache Log4j API (org.apache.logging.log4j:log4j-api:2.11.0 - https://logging.apache.org/log4j/2.x/log4j-api/)
+* Apache Log4j API (org.apache.logging.log4j:log4j-api:2.11.2 - https://logging.apache.org/log4j/2.x/log4j-api/)
 * Apache Log4j Core (org.apache.logging.log4j:log4j-core:2.11.0 - https://logging.apache.org/log4j/2.x/log4j-core/)
 * Apache Log4j SLF4J Binding (org.apache.logging.log4j:log4j-slf4j-impl:2.11.0 - https://logging.apache.org/log4j/2.x/log4j-slf4j-impl/)
+* Apache Log4j to SLF4J Adapter (org.apache.logging.log4j:log4j-to-slf4j:2.11.2 - https://logging.apache.org/log4j/2.x/log4j-to-slf4j/)
+* AssertJ fluent assertions (org.assertj:assertj-core:3.11.1 - http://assertj.org/assertj-core)
 * Bean Validation API (javax.validation:validation-api:1.1.0.Final - http://beanvalidation.org)
-* codegen (org.apache.servicecomb.toolkit:codegen:0.2.0-SNAPSHOT - https://github.com/apache/servicecomb-toolkit/codegen)
+* Bean Validation API (javax.validation:validation-api:2.0.1.Final - http://beanvalidation.org)
+* Bootstrap (org.webjars:bootstrap:4.3.1 - http://webjars.org)
+* Byte Buddy (without dependencies) (net.bytebuddy:byte-buddy:1.9.3 - http://bytebuddy.net/byte-buddy)
+* Byte Buddy Java agent (net.bytebuddy:byte-buddy-agent:1.9.3 - http://bytebuddy.net/byte-buddy-agent)
+* ClassMate (com.fasterxml:classmate:1.3.4 - http://github.com/FasterXML/java-classmate)
 * Commons CLI (commons-cli:commons-cli:1.2 - http://commons.apache.org/cli/)
 * Commons IO (commons-io:commons-io:2.4 - http://commons.apache.org/io/)
-* core (org.apache.servicecomb.toolkit:core:0.2.0-SNAPSHOT - https://github.com/apache/servicecomb-toolkit/core)
-* docgen (org.apache.servicecomb.toolkit:docgen:0.2.0-SNAPSHOT - https://github.com/apache/servicecomb-toolkit/docgen)
 * FindBugs-jsr305 (com.google.code.findbugs:jsr305:3.0.1 - http://findbugs.sourceforge.net/)
 * Generex (com.github.mifmif:generex:1.0.2 - https://github.com/mifmif/Generex/tree/master)
 * Google Guice - Core Library (com.google.inject:guice:4.1.0 - https://github.com/google/guice/guice)
+* Guava InternalFutureFailureAccess and InternalFutures (com.google.guava:failureaccess:1.0.1 - https://github.com/google/guava/failureaccess)
+* Guava ListenableFuture only (com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava - https://github.com/google/guava/listenablefuture)
 * Guava: Google Core Libraries for Java (com.google.guava:guava:18.0 - http://code.google.com/p/guava-libraries/guava)
+* Guava: Google Core Libraries for Java (com.google.guava:guava:27.0.1-android - https://github.com/google/guava/guava)
 * Handlebars (com.github.jknack:handlebars:4.1.2 - https://github.com/jknack/handlebars.java/handlebars)
+* Hibernate Validator Engine (org.hibernate.validator:hibernate-validator:6.0.16.Final - http://hibernate.org/validator/hibernate-validator)
+* J2ObjC Annotations (com.google.j2objc:j2objc-annotations:1.1 - https://github.com/google/j2objc/)
+* JBoss Logging 3 (org.jboss.logging:jboss-logging:3.3.2.Final - http://www.jboss.org)
+* JSON Small and Fast Parser (net.minidev:json-smart:2.3 - http://www.minidev.net/)
+* JSON library from Android SDK (com.vaadin.external.google:android-json:0.0.20131108.vaadin1 - http://developer.android.com/sdk)
+* JSONassert (org.skyscreamer:jsonassert:1.5.0 - https://github.com/skyscreamer/JSONassert)
+* Jackson datatype: Guava (com.fasterxml.jackson.datatype:jackson-datatype-guava:2.9.5 - https://github.com/FasterXML/jackson-datatypes-collections)
+* Jackson datatype: JSR310 (com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.9.5 - https://github.com/FasterXML/jackson-modules-java8/jackson-datatype-jsr310)
+* Jackson datatype: JSR310 (com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.9.8 - https://github.com/FasterXML/jackson-modules-java8/jackson-datatype-jsr310)
+* Jackson datatype: jdk8 (com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.9.8 - https://github.com/FasterXML/jackson-modules-java8/jackson-datatype-jdk8)
+* Jackson module: JAXB Annotations (com.fasterxml.jackson.module:jackson-module-jaxb-annotations:2.9.8 - https://github.com/FasterXML/jackson-modules-base)
+* Jackson-Datatype-ThreeTenBackport (com.github.joschi.jackson:jackson-datatype-threetenbp:2.6.4 - https://github.com/joschi/jackson-datatype-threetenbp)
+* Jackson-annotations (com.fasterxml.jackson.core:jackson-annotations:2.9.0 - http://github.com/FasterXML/jackson)
 * Jackson-annotations (com.fasterxml.jackson.core:jackson-annotations:2.9.8 - http://github.com/FasterXML/jackson)
 * Jackson-core (com.fasterxml.jackson.core:jackson-core:2.9.5 - https://github.com/FasterXML/jackson-core)
-* jackson-databind (com.fasterxml.jackson.core:jackson-databind:2.9.8 - http://github.com/FasterXML/jackson)
+* Jackson-core (com.fasterxml.jackson.core:jackson-core:2.9.8 - https://github.com/FasterXML/jackson-core)
 * Jackson-dataformat-XML (com.fasterxml.jackson.dataformat:jackson-dataformat-xml:2.9.8 - http://wiki.fasterxml.com/JacksonExtensionXmlDataBinding)
 * Jackson-dataformat-YAML (com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.9.8 - https://github.com/FasterXML/jackson-dataformats-text)
-* Jackson datatype: Guava (com.fasterxml.jackson.datatype:jackson-datatype-guava:2.9.5 - https://github.com/FasterXML/jackson-datatypes-collections)
-* Jackson datatype: JSR310 (com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.9.5 - https://github.com/FasterXML/jackson-modules-java8/jackson-datatype-jsr310)
 * Jackson-datatype-Joda (com.fasterxml.jackson.datatype:jackson-datatype-joda:2.9.5 - http://wiki.fasterxml.com/JacksonModuleJoda)
-* Jackson-Datatype-ThreeTenBackport (com.github.joschi.jackson:jackson-datatype-threetenbp:2.6.4 - https://github.com/joschi/jackson-datatype-threetenbp)
-* Jackson module: JAXB Annotations (com.fasterxml.jackson.module:jackson-module-jaxb-annotations:2.9.8 - https://github.com/FasterXML/jackson-modules-base)
+* Jackson-module-parameter-names (com.fasterxml.jackson.module:jackson-module-parameter-names:2.9.8 - https://github.com/FasterXML/jackson-modules-java8/jackson-module-parameter-names)
 * Java Chassis::Common::Javassist (org.apache.servicecomb:common-javassist:1.2.0 - https://github.com/apache/servicecomb-java-chassis/common/common-javassist)
 * Java Chassis::Foundations::Common (org.apache.servicecomb:foundation-common:1.2.0 - https://github.com/apache/servicecomb-java-chassis/foundations/foundation-common)
 * Java Chassis::Swagger::Generator::Core (org.apache.servicecomb:swagger-generator-core:1.2.0 - https://github.com/apache/servicecomb-java-chassis/swagger/swagger-generator/swagger-generator-core)
-* javax.inject (javax.inject:javax.inject:1 - http://code.google.com/p/atinject/)
 * Joda-Time (joda-time:joda-time:2.7 - http://www.joda.org/joda-time/)
-* libphonenumber (com.googlecode.libphonenumber:libphonenumber:8.0.0 - https://github.com/googlei18n/libphonenumber/)
-* openapi-generator (core library) (org.openapitools:openapi-generator:4.1.2 - https://github.com/openapitools/openapi-generator/modules/openapi-generator)
-* openapi-generator-core (org.openapitools:openapi-generator-core:4.1.2 - https://github.com/openapitools/openapi-generator)
+* Joda-Time (joda-time:joda-time:2.9.7 - http://www.joda.org/joda-time/)
+* Objenesis (org.objenesis:objenesis:2.6 - http://objenesis.org)
 * SnakeYAML (org.yaml:snakeyaml:1.23 - http://www.snakeyaml.org)
 * Spring AOP (org.springframework:spring-aop:4.3.20.RELEASE - https://github.com/spring-projects/spring-framework)
+* Spring AOP (org.springframework:spring-aop:5.1.6.RELEASE - https://github.com/spring-projects/spring-framework)
 * Spring Beans (org.springframework:spring-beans:4.3.20.RELEASE - https://github.com/spring-projects/spring-framework)
+* Spring Beans (org.springframework:spring-beans:5.1.6.RELEASE - https://github.com/spring-projects/spring-framework)
+* Spring Boot (org.springframework.boot:spring-boot:2.1.4.RELEASE - https://projects.spring.io/spring-boot/#/spring-boot-parent/spring-boot)
+* Spring Boot Actuator (org.springframework.boot:spring-boot-actuator:2.1.4.RELEASE - https://projects.spring.io/spring-boot/#/spring-boot-parent/spring-boot-actuator)
+* Spring Boot Actuator AutoConfigure (org.springframework.boot:spring-boot-actuator-autoconfigure:2.1.4.RELEASE - https://projects.spring.io/spring-boot/#/spring-boot-parent/spring-boot-actuator-autoconfigure)
+* Spring Boot Actuator Starter (org.springframework.boot:spring-boot-starter-actuator:2.1.4.RELEASE - https://projects.spring.io/spring-boot/#/spring-boot-parent/spring-boot-starters/spring-boot-starter-actuator)
+* Spring Boot AutoConfigure (org.springframework.boot:spring-boot-autoconfigure:2.1.4.RELEASE - https://projects.spring.io/spring-boot/#/spring-boot-parent/spring-boot-autoconfigure)
+* Spring Boot Json Starter (org.springframework.boot:spring-boot-starter-json:2.1.4.RELEASE - https://projects.spring.io/spring-boot/#/spring-boot-parent/spring-boot-starters/spring-boot-starter-json)
+* Spring Boot Logging Starter (org.springframework.boot:spring-boot-starter-logging:2.1.4.RELEASE - https://projects.spring.io/spring-boot/#/spring-boot-parent/spring-boot-starters/spring-boot-starter-logging)
+* Spring Boot Starter (org.springframework.boot:spring-boot-starter:2.1.4.RELEASE - https://projects.spring.io/spring-boot/#/spring-boot-parent/spring-boot-starters/spring-boot-starter)
+* Spring Boot Test (org.springframework.boot:spring-boot-test:2.1.4.RELEASE - https://projects.spring.io/spring-boot/#/spring-boot-parent/spring-boot-test)
+* Spring Boot Test Auto-Configure (org.springframework.boot:spring-boot-test-autoconfigure:2.1.4.RELEASE - https://projects.spring.io/spring-boot/#/spring-boot-parent/spring-boot-test-autoconfigure)
+* Spring Boot Test Starter (org.springframework.boot:spring-boot-starter-test:2.1.4.RELEASE - https://projects.spring.io/spring-boot/#/spring-boot-parent/spring-boot-starters/spring-boot-starter-test)
+* Spring Boot Thymeleaf Starter (org.springframework.boot:spring-boot-starter-thymeleaf:2.1.4.RELEASE - https://projects.spring.io/spring-boot/#/spring-boot-parent/spring-boot-starters/spring-boot-starter-thymeleaf)
+* Spring Boot Tomcat Starter (org.springframework.boot:spring-boot-starter-tomcat:2.1.4.RELEASE - https://projects.spring.io/spring-boot/#/spring-boot-parent/spring-boot-starters/spring-boot-starter-tomcat)
+* Spring Boot Web Starter (org.springframework.boot:spring-boot-starter-web:2.1.4.RELEASE - https://projects.spring.io/spring-boot/#/spring-boot-parent/spring-boot-starters/spring-boot-starter-web)
+* Spring Commons Logging Bridge (org.springframework:spring-jcl:5.1.6.RELEASE - https://github.com/spring-projects/spring-framework)
 * Spring Context (org.springframework:spring-context:4.3.20.RELEASE - https://github.com/spring-projects/spring-framework)
+* Spring Context (org.springframework:spring-context:5.1.6.RELEASE - https://github.com/spring-projects/spring-framework)
 * Spring Core (org.springframework:spring-core:4.3.20.RELEASE - https://github.com/spring-projects/spring-framework)
+* Spring Core (org.springframework:spring-core:5.1.6.RELEASE - https://github.com/spring-projects/spring-framework)
 * Spring Expression Language (SpEL) (org.springframework:spring-expression:4.3.20.RELEASE - https://github.com/spring-projects/spring-framework)
-* swagger-annotations (io.swagger:swagger-annotations:1.5.22 - https://github.com/swagger-api/swagger-core/modules/swagger-annotations)
+* Spring Expression Language (SpEL) (org.springframework:spring-expression:5.1.6.RELEASE - https://github.com/spring-projects/spring-framework)
+* Spring TestContext Framework (org.springframework:spring-test:5.1.6.RELEASE - https://github.com/spring-projects/spring-framework)
+* Spring Web (org.springframework:spring-web:5.1.6.RELEASE - https://github.com/spring-projects/spring-framework)
+* Spring Web MVC (org.springframework:spring-webmvc:5.1.6.RELEASE - https://github.com/spring-projects/spring-framework)
+* Woodstox (com.fasterxml.woodstox:woodstox-core:5.0.3 - https://github.com/FasterXML/woodstox)
+* airline (io.airlift:airline:0.7 - https://github.com/airlift/airline)
+* attoparser (org.attoparser:attoparser:2.0.5.RELEASE - http://www.attoparser.org)
+* codegen (org.apache.servicecomb.toolkit:codegen:0.2.0-SNAPSHOT - https://github.com/apache/servicecomb-toolkit/codegen)
+* com.github.fge:btf (com.github.fge:btf:1.2 - https://github.com/fge/btf)
+* com.github.fge:jackson-coreutils (com.github.fge:jackson-coreutils:1.6 - https://github.com/fge/jackson-coreutils)
+* com.github.fge:json-patch (com.github.fge:json-patch:1.6 - https://github.com/fge/json-patch)
+* com.github.fge:msg-simple (com.github.fge:msg-simple:1.1 - https://github.com/fge/msg-simple)
+* com.github.fge:uri-template (com.github.fge:uri-template:0.9 - https://github.com/fge/uri-template)
+* core (org.apache.servicecomb.toolkit:core:0.2.0-SNAPSHOT - https://github.com/apache/servicecomb-toolkit/core)
+* docgen (org.apache.servicecomb.toolkit:docgen:0.2.0-SNAPSHOT - https://github.com/apache/servicecomb-toolkit/docgen)
+* error-prone annotations (com.google.errorprone:error_prone_annotations:2.2.0 - http://nexus.sonatype.org/oss-repository-hosting.html/error_prone_parent/error_prone_annotations)
+* jackson-databind (com.fasterxml.jackson.core:jackson-databind:2.9.8 - http://github.com/FasterXML/jackson)
+* javax.inject (javax.inject:javax.inject:1 - http://code.google.com/p/atinject/)
+* json-schema-core (com.github.java-json-tools:json-schema-core:1.2.8 - https://github.com/java-json-tools/json-schema-core)
+* json-schema-validator (com.github.java-json-tools:json-schema-validator:2.2.8 - https://github.com/box-metadata/json-schema-validator)
+* libphonenumber (com.googlecode.libphonenumber:libphonenumber:8.0.0 - https://github.com/googlei18n/libphonenumber/)
+* micrometer-core (io.micrometer:micrometer-core:1.1.4 - https://github.com/micrometer-metrics/micrometer)
+* oas-validator-compatibility (org.apache.servicecomb.toolkit:oas-validator-compatibility:0.2.0-SNAPSHOT - no url defined)
+* oas-validator-compatibility-spring (org.apache.servicecomb.toolkit:oas-validator-compatibility-spring:0.2.0-SNAPSHOT - no url defined)
+* oas-validator-compliance (org.apache.servicecomb.toolkit:oas-validator-compliance:0.2.0-SNAPSHOT - no url defined)
+* oas-validator-compliance-spring (org.apache.servicecomb.toolkit:oas-validator-compliance-spring:0.2.0-SNAPSHOT - no url defined)
+* oas-validator-core (org.apache.servicecomb.toolkit:oas-validator-core:0.2.0-SNAPSHOT - no url defined)
+* oas-validator-core-spring (org.apache.servicecomb.toolkit:oas-validator-core-spring:0.2.0-SNAPSHOT - no url defined)
+* oas-validator-test (org.apache.servicecomb.toolkit:oas-validator-test:0.2.0-SNAPSHOT - no url defined)
+* openapi-generator (core library) (org.openapitools:openapi-generator:4.1.2 - https://github.com/openapitools/openapi-generator/modules/openapi-generator)
+* openapi-generator-core (org.openapitools:openapi-generator-core:4.1.2 - https://github.com/openapitools/openapi-generator)
+* org.xmlunit:xmlunit-core (org.xmlunit:xmlunit-core:2.6.2 - https://www.xmlunit.org/)
+* project ':json-path' (com.jayway.jsonpath:json-path:2.4.0 - https://github.com/jayway/JsonPath)
+* swagger-annotations (io.swagger.core.v3:swagger-annotations:2.0.8 - https://github.com/swagger-api/swagger-core/modules/swagger-annotations)
 * swagger-annotations (io.swagger.core.v3:swagger-annotations:2.0.9 - https://github.com/swagger-api/swagger-core/modules/swagger-annotations)
+* swagger-annotations (io.swagger:swagger-annotations:1.5.22 - https://github.com/swagger-api/swagger-core/modules/swagger-annotations)
 * swagger-codegen (core library) (io.swagger:swagger-codegen:2.4.3 - https://github.com/swagger-api/swagger-codegen/modules/swagger-codegen)
 * swagger-compat-spec-parser (io.swagger:swagger-compat-spec-parser:1.0.43 - http://nexus.sonatype.org/oss-repository-hosting.html/swagger-parser-project/modules/swagger-compat-spec-parser)
-* swagger-core (io.swagger:swagger-core:1.5.22 - https://github.com/swagger-api/swagger-core/modules/swagger-core)
+* swagger-compat-spec-parser (io.swagger:swagger-compat-spec-parser:1.0.44 - http://nexus.sonatype.org/oss-repository-hosting.html/swagger-parser-project/modules/swagger-compat-spec-parser)
+* swagger-core (io.swagger.core.v3:swagger-core:2.0.8 - https://github.com/swagger-api/swagger-core/modules/swagger-core)
 * swagger-core (io.swagger.core.v3:swagger-core:2.0.9 - https://github.com/swagger-api/swagger-core/modules/swagger-core)
-* swagger-models (io.swagger:swagger-models:1.5.22 - https://github.com/swagger-api/swagger-core/modules/swagger-models)
+* swagger-core (io.swagger:swagger-core:1.5.22 - https://github.com/swagger-api/swagger-core/modules/swagger-core)
+* swagger-models (io.swagger.core.v3:swagger-models:2.0.8 - https://github.com/swagger-api/swagger-core/modules/swagger-models)
 * swagger-models (io.swagger.core.v3:swagger-models:2.0.9 - https://github.com/swagger-api/swagger-core/modules/swagger-models)
+* swagger-models (io.swagger:swagger-models:1.5.22 - https://github.com/swagger-api/swagger-core/modules/swagger-models)
+* swagger-parser (io.swagger.parser.v3:swagger-parser-core:2.0.12 - http://nexus.sonatype.org/oss-repository-hosting.html/swagger-parser-project/modules/swagger-parser-core)
+* swagger-parser (io.swagger.parser.v3:swagger-parser:2.0.12 - http://nexus.sonatype.org/oss-repository-hosting.html/swagger-parser-project/modules/swagger-parser)
 * swagger-parser (io.swagger:swagger-parser:1.0.43 - http://nexus.sonatype.org/oss-repository-hosting.html/swagger-parser-project/modules/swagger-parser)
-* swagger-parser (org.openapitools.swagger.parser:swagger-parser:2.0.14-OpenAPITools.org-1 - http://nexus.sonatype.org/oss-repository-hosting.html/swagger-parser-project/modules/swagger-parser)
+* swagger-parser (io.swagger:swagger-parser:1.0.44 - http://nexus.sonatype.org/oss-repository-hosting.html/swagger-parser-project/modules/swagger-parser)
 * swagger-parser (org.openapitools.swagger.parser:swagger-parser-core:2.0.14-OpenAPITools.org-1 - http://nexus.sonatype.org/oss-repository-hosting.html/swagger-parser-project/modules/swagger-parser-core)
+* swagger-parser (org.openapitools.swagger.parser:swagger-parser:2.0.14-OpenAPITools.org-1 - http://nexus.sonatype.org/oss-repository-hosting.html/swagger-parser-project/modules/swagger-parser)
+* swagger-parser-v2-converter (io.swagger.parser.v3:swagger-parser-v2-converter:2.0.12 - http://nexus.sonatype.org/oss-repository-hosting.html/swagger-parser-project/modules/swagger-parser-v2-converter)
 * swagger-parser-v2-converter (org.openapitools.swagger.parser:swagger-parser-v2-converter:2.0.14-OpenAPITools.org-1 - http://nexus.sonatype.org/oss-repository-hosting.html/swagger-parser-project/modules/swagger-parser-v2-converter)
+* swagger-parser-v3 (io.swagger.parser.v3:swagger-parser-v3:2.0.12 - http://nexus.sonatype.org/oss-repository-hosting.html/swagger-parser-project/modules/swagger-parser-v3)
 * swagger-parser-v3 (org.openapitools.swagger.parser:swagger-parser-v3:2.0.14-OpenAPITools.org-1 - http://nexus.sonatype.org/oss-repository-hosting.html/swagger-parser-project/modules/swagger-parser-v3)
-* Woodstox (com.fasterxml.woodstox:woodstox-core:5.0.3 - https://github.com/FasterXML/woodstox)
+* thymeleaf (org.thymeleaf:thymeleaf:3.0.11.RELEASE - http://www.thymeleaf.org)
+* thymeleaf-extras-java8time (org.thymeleaf.extras:thymeleaf-extras-java8time:3.0.4.RELEASE - http://www.thymeleaf.org)
+* thymeleaf-spring5 (org.thymeleaf:thymeleaf-spring5:3.0.11.RELEASE - http://www.thymeleaf.org)
+* tomcat-embed-core (org.apache.tomcat.embed:tomcat-embed-core:9.0.17 - https://tomcat.apache.org/)
+* tomcat-embed-el (org.apache.tomcat.embed:tomcat-embed-el:9.0.17 - https://tomcat.apache.org/)
+* tomcat-embed-websocket (org.apache.tomcat.embed:tomcat-embed-websocket:9.0.17 - https://tomcat.apache.org/)
+* unbescape (org.unbescape:unbescape:1.1.6.RELEASE - http://www.unbescape.org)
+
+===========================================================================
+This product bundles the following libraries which are licensed under the
+CDDL + GPLv2 with classpath exception.
+For details, see their respective project links.
+You can find a copy of the License at licenses/LICENSE-cddl-gplv2
+
+* javax.annotation API (javax.annotation:javax.annotation-api:1.3.2 - http://jcp.org/en/jsr/detail?id=250)
+
+===========================================================================
+This product bundles Webjars which is licensed under the
+MIT License.
+For details, see their respective project links.
+You can find a copy of the License at licenses/LICENSE-webjars
+
+* Popper.js (org.webjars:popper.js:1.14.3 - http://webjars.org)
+* jquery (org.webjars:jquery:3.0.0 - http://webjars.org)
+
+===========================================================================
+This product bundles Animal Sniffer Annotations which is licensed under the
+MIT License.
+For details, see http://www.mojohaus.org/animal-sniffer/animal-sniffer-annotations
+You can find a copy of the License at licenses/LICENSE-mit-unknown
+
+* Animal Sniffer Annotations (org.codehaus.mojo:animal-sniffer-annotations:1.17 - http://www.mojohaus.org/animal-sniffer/animal-sniffer-annotations)
+
+===========================================================================
+This product bundles Checker Qual which is licensed under the
+MIT License.
+For details, see https://checkerframework.org
+You can find a copy of the License at licenses/LICENSE-mit-unknown
+
+* Checker Qual (org.checkerframework:checker-compat-qual:2.5.2 - https://checkerframework.org)
+
+===========================================================================
+This product bundles Mockito which is licensed under the
+MIT License.
+For details, see https://github.com/mockito/mockito
+You can find a copy of the License at licenses/LICENSE-mockito
+
+* mockito-core (org.mockito:mockito-core:2.23.4 - https://github.com/mockito/mockito)
+
+===========================================================================
+This product bundles Project Lombok which is licensed under the
+MIT License.
+For details, see https://projectlombok.org
+You can find a copy of the License at licenses/LICENSE-lombok
+
+* Project Lombok (org.projectlombok:lombok:1.18.6 - https://projectlombok.org)
+
+===========================================================================
+This product bundles following libraries which is licensed under the
+Public Domain, per Creative Commons CC0.
+For details, see their respective project links.
+You can find a copy of the License at licenses/LICENSE-cc0
+
+* HdrHistogram (org.hdrhistogram:HdrHistogram:2.1.9 - http://hdrhistogram.github.io/HdrHistogram/)
+* LatencyUtils (org.latencyutils:LatencyUtils:2.0.3 - http://latencyutils.github.io/LatencyUtils/)
+
+===========================================================================
+This product bundles following libraries which is licensed under the
+Eclipse Public License v1.0.
+For details, see their respective project links.
+You can find a copy of the License at licenses/LICENSE-epl-v10
+
+* Logback Classic Module (ch.qos.logback:logback-classic:1.2.3 - http://logback.qos.ch/logback-classic)
+* Logback Core Module (ch.qos.logback:logback-core:1.2.3 - http://logback.qos.ch/logback-core)
+* JUnit (junit:junit:4.12 - http://junit.org)
+
+===========================================================================
+This product bundles ASM Core which is licensed under the
+3-Clause BSD.
+For details, see http://asm.objectweb.org/asm/
+You can find a copy of the License at licenses/LICENSE-asm
+
+* ASM Core (org.ow2.asm:asm:5.0.4 - http://asm.objectweb.org/asm/)
diff --git a/toolkit-distribution/src/release/licenses/LICENSE-asm b/toolkit-distribution/src/release/licenses/LICENSE-asm
new file mode 100644
index 0000000..c71bb7b
--- /dev/null
+++ b/toolkit-distribution/src/release/licenses/LICENSE-asm
@@ -0,0 +1,27 @@
+ASM: a very small and fast Java bytecode manipulation framework
+Copyright (c) 2000-2011 INRIA, France Telecom
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+1. Redistributions of source code must retain the above copyright
+  notice, this list of conditions and the following disclaimer.
+2. Redistributions in binary form must reproduce the above copyright
+  notice, this list of conditions and the following disclaimer in the
+  documentation and/or other materials provided with the distribution.
+3. Neither the name of the copyright holders nor the names of its
+  contributors may be used to endorse or promote products derived from
+  this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
+THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/toolkit-distribution/src/release/licenses/LICENSE-cal10n b/toolkit-distribution/src/release/licenses/LICENSE-cal10n
old mode 100755
new mode 100644
diff --git a/toolkit-distribution/src/release/licenses/LICENSE-cc0 b/toolkit-distribution/src/release/licenses/LICENSE-cc0
new file mode 100644
index 0000000..2dbc2c0
--- /dev/null
+++ b/toolkit-distribution/src/release/licenses/LICENSE-cc0
@@ -0,0 +1,27 @@
+CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED HEREUNDER.
+Statement of Purpose
+The laws of most jurisdictions throughout the world automatically confer exclusive Copyright and Related Rights (defined below) upon the creator and subsequent owner(s) (each and all, an "owner") of an original work of authorship and/or a database (each, a "Work").
+
+Certain owners wish to permanently relinquish those rights to a Work for the purpose of contributing to a commons of creative, cultural and scientific works ("Commons") that the public can reliably and without fear of later claims of infringement build upon, modify, incorporate in other works, reuse and redistribute as freely as possible in any form whatsoever and for any purposes, including without limitation commercial purposes. These owners may contribute to the Commons to promote the [...]
+
+For these and/or other purposes and motivations, and without any expectation of additional consideration or compensation, the person associating CC0 with a Work (the "Affirmer"), to the extent that he or she is an owner of Copyright and Related Rights in the Work, voluntarily elects to apply CC0 to the Work and publicly distribute the Work under its terms, with knowledge of his or her Copyright and Related Rights in the Work and the meaning and intended legal effect of CC0 on those rights.
+
+1. Copyright and Related Rights. A Work made available under CC0 may be protected by copyright and related or neighboring rights ("Copyright and Related Rights"). Copyright and Related Rights include, but are not limited to, the following:
+
+the right to reproduce, adapt, distribute, perform, display, communicate, and translate a Work;
+moral rights retained by the original author(s) and/or performer(s);
+publicity and privacy rights pertaining to a person's image or likeness depicted in a Work;
+rights protecting against unfair competition in regards to a Work, subject to the limitations in paragraph 4(a), below;
+rights protecting the extraction, dissemination, use and reuse of data in a Work;
+database rights (such as those arising under Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, and under any national implementation thereof, including any amended or successor version of such directive); and
+other similar, equivalent or corresponding rights throughout the world based on applicable law or treaty, and any national implementations thereof.
+2. Waiver. To the greatest extent permitted by, but not in contravention of, applicable law, Affirmer hereby overtly, fully, permanently, irrevocably and unconditionally waives, abandons, and surrenders all of Affirmer's Copyright and Related Rights and associated claims and causes of action, whether now known or unknown (including existing as well as future claims and causes of action), in the Work (i) in all territories worldwide, (ii) for the maximum duration provided by applicable la [...]
+
+3. Public License Fallback. Should any part of the Waiver for any reason be judged legally invalid or ineffective under applicable law, then the Waiver shall be preserved to the maximum extent permitted taking into account Affirmer's express Statement of Purpose. In addition, to the extent the Waiver is so judged Affirmer hereby grants to each affected person a royalty-free, non transferable, non sublicensable, non exclusive, irrevocable and unconditional license to exercise Affirmer's C [...]
+
+4. Limitations and Disclaimers.
+
+No trademark or patent rights held by Affirmer are waived, abandoned, surrendered, licensed or otherwise affected by this document.
+Affirmer offers the Work as-is and makes no representations or warranties of any kind concerning the Work, express, implied, statutory or otherwise, including without limitation warranties of title, merchantability, fitness for a particular purpose, non infringement, or the absence of latent or other defects, accuracy, or the present or absence of errors, whether or not discoverable, all to the greatest extent permissible under applicable law.
+Affirmer disclaims responsibility for clearing rights of other persons that may apply to the Work or any use thereof, including without limitation any person's Copyright and Related Rights in the Work. Further, Affirmer disclaims responsibility for obtaining any necessary consents, permissions or other rights required for any use of the Work.
+Affirmer understands and acknowledges that Creative Commons is not a party to this document and has no duty or obligation with respect to this CC0 or use of the Work.
diff --git a/toolkit-distribution/src/release/licenses/LICENSE-cddl b/toolkit-distribution/src/release/licenses/LICENSE-cddl
old mode 100755
new mode 100644
diff --git a/toolkit-distribution/src/release/licenses/LICENSE-cddl b/toolkit-distribution/src/release/licenses/LICENSE-cddl-gplv2
old mode 100755
new mode 100644
similarity index 99%
copy from toolkit-distribution/src/release/licenses/LICENSE-cddl
copy to toolkit-distribution/src/release/licenses/LICENSE-cddl-gplv2
index b1c74f9..4b156e6
--- a/toolkit-distribution/src/release/licenses/LICENSE-cddl
+++ b/toolkit-distribution/src/release/licenses/LICENSE-cddl-gplv2
@@ -757,3 +757,4 @@ based on this library.  If you modify this library, you may extend this
 exception to your version of the library, but you are not obligated to
 do so.  If you do not wish to do so, delete this exception statement
 from your version.
+
diff --git a/toolkit-distribution/src/release/licenses/LICENSE-commonmark b/toolkit-distribution/src/release/licenses/LICENSE-commonmark
old mode 100755
new mode 100644
diff --git a/toolkit-distribution/src/release/licenses/LICENSE-epl-v10 b/toolkit-distribution/src/release/licenses/LICENSE-epl-v10
old mode 100755
new mode 100644
diff --git a/toolkit-distribution/src/release/licenses/LICENSE-hamcrest b/toolkit-distribution/src/release/licenses/LICENSE-hamcrest
old mode 100755
new mode 100644
diff --git a/toolkit-distribution/src/release/licenses/LICENSE-jopt b/toolkit-distribution/src/release/licenses/LICENSE-jopt
new file mode 100644
index 0000000..7cb505b
--- /dev/null
+++ b/toolkit-distribution/src/release/licenses/LICENSE-jopt
@@ -0,0 +1,22 @@
+The MIT License
+
+Copyright (c) 2004-2016 Paul R. Holser, Jr.
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/toolkit-distribution/src/release/licenses/LICENSE-lombok b/toolkit-distribution/src/release/licenses/LICENSE-lombok
new file mode 100644
index 0000000..5da7dbe
--- /dev/null
+++ b/toolkit-distribution/src/release/licenses/LICENSE-lombok
@@ -0,0 +1,19 @@
+Copyright (C) 2009-2015 The Project Lombok Authors.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/toolkit-distribution/src/release/licenses/LICENSE-mit b/toolkit-distribution/src/release/licenses/LICENSE-mit
new file mode 100644
index 0000000..244229e
--- /dev/null
+++ b/toolkit-distribution/src/release/licenses/LICENSE-mit
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/toolkit-distribution/src/release/licenses/LICENSE-mockito b/toolkit-distribution/src/release/licenses/LICENSE-mockito
new file mode 100644
index 0000000..5a311f7
--- /dev/null
+++ b/toolkit-distribution/src/release/licenses/LICENSE-mockito
@@ -0,0 +1,21 @@
+The MIT License
+
+Copyright (c) 2007 Mockito contributors
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/toolkit-distribution/src/release/licenses/LICENSE-mozilla-v20 b/toolkit-distribution/src/release/licenses/LICENSE-mozilla-v20
old mode 100755
new mode 100644
diff --git a/toolkit-distribution/src/release/licenses/LICENSE-slf4j b/toolkit-distribution/src/release/licenses/LICENSE-slf4j
old mode 100755
new mode 100644
diff --git a/toolkit-distribution/src/release/licenses/LICENSE-webjars b/toolkit-distribution/src/release/licenses/LICENSE-webjars
new file mode 100644
index 0000000..29bdee3
--- /dev/null
+++ b/toolkit-distribution/src/release/licenses/LICENSE-webjars
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2017 James Ward
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/toolkit-distribution/src/release/licenses/LICENSE-woodstox-stax2-api b/toolkit-distribution/src/release/licenses/LICENSE-woodstox-stax2-api
old mode 100755
new mode 100644
diff --git a/toolkit-distribution/src/release/licenses/NOTICE-airline b/toolkit-distribution/src/release/licenses/NOTICE-airline
old mode 100755
new mode 100644
diff --git a/toolkit-distribution/src/release/licenses/NOTICE-apache-commons-cli b/toolkit-distribution/src/release/licenses/NOTICE-apache-commons-cli
old mode 100755
new mode 100644
diff --git a/toolkit-distribution/src/release/licenses/NOTICE-apache-commons-codec b/toolkit-distribution/src/release/licenses/NOTICE-apache-commons-codec
old mode 100755
new mode 100644
diff --git a/toolkit-distribution/src/release/licenses/NOTICE-servicecomb-java-chassis b/toolkit-distribution/src/release/licenses/NOTICE-servicecomb-java-chassis
old mode 100755
new mode 100644


[servicecomb-toolkit] 23/26: SCB-1555 Integrate oas-validator compability check to cli Update readme

Posted by ni...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ningjiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/servicecomb-toolkit.git

commit 24236c66dfab83251e69f5f9c631cf2f9fb1c7ef
Author: Daniel Qian <ch...@gmail.com>
AuthorDate: Thu Nov 7 15:31:00 2019 +0800

    SCB-1555 Integrate oas-validator compability check to cli
    Update readme
---
 README-ZH.md | 16 +++++++++++++++-
 README.md    | 15 ++++++++++++++-
 2 files changed, 29 insertions(+), 2 deletions(-)

diff --git a/README-ZH.md b/README-ZH.md
index a791b7c..747105c 100644
--- a/README-ZH.md
+++ b/README-ZH.md
@@ -275,12 +275,26 @@ $ java -jar toolkit-cli-{version}.jar docgenerate -i swagger.yaml -o ./document
 #### 3.3.3 ๅฅ‘็บฆ้ฃŽๆ ผๆฃ€ๆŸฅ
 
 ```shell
-$ java -jar toolkit-cli-{version}.jar checkstyle openapi.yaml
+$ java -jar toolkit-cli-{version}.jar checkstyle oas.yaml
+ๆˆ–่€…
+$ java -jar toolkit-cli-{version}.jar cs oas.yaml
 ```
 
 > **checkstyle** Command argument
 * &lt;file&gt; OpenAPI v3 spec yamlๆ–‡ไปถ
 
+#### 3.3.4 ๅฅ‘็บฆๅ…ผๅฎนๆ€งๆฃ€ๆŸฅ
+
+```shell
+$ java -jar toolkit-cli-{version}.jar checkcompatibility left-oas.yaml right-oas.yaml
+ๆˆ–่€…
+$ java -jar toolkit-cli-{version}.jar cc left-oas.yaml right-oas.yaml
+```
+
+> **checkcompatibility** Command argument
+* &lt;files&gt; Two OpenAPI v3 spec yaml file
+
+
 ### 3.4 ไฝฟ็”จๆกˆไพ‹
 ๅฏไปฅๅœจ[่ฟ™้‡Œ](./samples/README-ZH.md)ๆ‰พๅˆฐไฝฟ็”จๆ’ไปถ็š„ไธ€ไบ›็คบไพ‹ 
 
diff --git a/README.md b/README.md
index 1a43352..ba07c98 100644
--- a/README.md
+++ b/README.md
@@ -270,12 +270,25 @@ e.g๏ผš-f swagger-ui
 #### 3.3.3 Service contract style checking
 
 ```shell
-$ java -jar toolkit-cli-{version}.jar checkstyle openapi.yaml
+$ java -jar toolkit-cli-{version}.jar checkstyle oas.yaml
+or
+$ java -jar toolkit-cli-{version}.jar cs oas.yaml
 ```
 
 > **checkstyle** Command argument
 * &lt;file&gt; OpenAPI v3 spec yaml file
 
+#### 3.3.4 Service contract compatibility checking
+
+```shell
+$ java -jar toolkit-cli-{version}.jar checkcompatibility left-oas.yaml right-oas.yaml
+or
+$ java -jar toolkit-cli-{version}.jar cc left-oas.yaml right-oas.yaml
+```
+
+> **checkcompatibility** Command argument
+* &lt;files&gt; Two OpenAPI v3 spec yaml file
+
 
 ### 3.4 Use case
 


[servicecomb-toolkit] 18/26: SCB-1553 Integrate oas-validator compliance check to cli Add abbr for checkstyle subcommand: cs

Posted by ni...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ningjiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/servicecomb-toolkit.git

commit fcd97abb68f88a10d10e32d0b49102a40b9108b4
Author: Daniel Qian <ch...@gmail.com>
AuthorDate: Wed Nov 6 09:55:34 2019 +0800

    SCB-1553 Integrate oas-validator compliance check to cli
    Add abbr for checkstyle subcommand: cs
---
 .../apache/servicecomb/toolkit/cli/CheckStyle.java | 103 +--------------------
 .../servicecomb/toolkit/cli/CheckStyleAbbr.java    |  26 ++++++
 .../cli/{CheckStyle.java => CheckStyleBase.java}   |   7 +-
 .../servicecomb/toolkit/cli/ToolkitMain.java       |   2 +-
 .../apache/servicecomb/toolkit/cli/CliTest.java    |   9 ++
 5 files changed, 40 insertions(+), 107 deletions(-)

diff --git a/cli/src/main/java/org/apache/servicecomb/toolkit/cli/CheckStyle.java b/cli/src/main/java/org/apache/servicecomb/toolkit/cli/CheckStyle.java
index 2ea2f99..6cd820b 100644
--- a/cli/src/main/java/org/apache/servicecomb/toolkit/cli/CheckStyle.java
+++ b/cli/src/main/java/org/apache/servicecomb/toolkit/cli/CheckStyle.java
@@ -17,109 +17,10 @@
 
 package org.apache.servicecomb.toolkit.cli;
 
-import java.io.IOException;
-import java.nio.file.Path;
-import java.nio.file.Paths;
-import java.util.List;
-
-import org.apache.commons.collections4.CollectionUtils;
-import org.apache.commons.io.FileUtils;
-import org.apache.commons.io.IOUtils;
-import org.apache.servicecomb.toolkit.oasv.common.OasObjectProperty;
-import org.apache.servicecomb.toolkit.oasv.common.OasObjectPropertyLocation;
-import org.apache.servicecomb.toolkit.oasv.compliance.ComplianceCheckParser;
-import org.apache.servicecomb.toolkit.oasv.compliance.factory.DefaultOasSpecValidatorFactory;
-import org.apache.servicecomb.toolkit.oasv.validation.api.OasSpecValidator;
-import org.apache.servicecomb.toolkit.oasv.validation.api.OasValidationContext;
-import org.apache.servicecomb.toolkit.oasv.validation.api.OasViolation;
-import org.apache.servicecomb.toolkit.oasv.validation.factory.OasSpecValidatorFactory;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-import org.springframework.context.annotation.AnnotationConfigApplicationContext;
-
-import io.airlift.airline.Arguments;
 import io.airlift.airline.Command;
-import io.swagger.v3.oas.models.OpenAPI;
-import io.swagger.v3.parser.core.models.SwaggerParseResult;
 
 @Command(name = "checkstyle",
-    description = "Check style of OpenAPI v3 spec yaml")
-public class CheckStyle implements Runnable {
-
-  private final static Logger LOGGER = LoggerFactory.getLogger(CheckStyle.class);
-
-  @Arguments(
-      title = "file", required = true,
-      description = "OpenAPI v3 spec yaml"
-  )
-  private String filePath;
-
-  @Override
-  public void run() {
-
-    String yaml = null;
-    try {
-      yaml = loadFileContent(filePath);
-    } catch (IOException e) {
-      LOGGER.error(e.getMessage());
-      return;
-    }
-
-    SwaggerParseResult parseResult = ComplianceCheckParser.parseYaml(yaml);
-    OpenAPI openAPI = parseResult.getOpenAPI();
-    if (openAPI == null) {
-      if (CollectionUtils.isNotEmpty(parseResult.getMessages())) {
-        for (String message : parseResult.getMessages()) {
-          LOGGER.error(message);
-        }
-      }
-      LOGGER.error("Parse error");
-      return;
-    }
-
-    OasSpecValidator oasSpecValidator = createOasSpecValidator();
-
-    List<OasViolation> violations = oasSpecValidator.validate(createContext(openAPI), openAPI);
-    if (CollectionUtils.isNotEmpty(violations)) {
-      for (OasViolation violation : violations) {
-        LOGGER.info("{}: {}", toPathString(violation.getLocation()), violation.getError());
-      }
-      return;
-    }
-    LOGGER.info("Everything is good");
-  }
-
-  private String toPathString(OasObjectPropertyLocation location) {
-    StringBuilder sb = new StringBuilder();
-    List<OasObjectProperty> path = location.getPath();
-    for (OasObjectProperty property : path) {
-      sb.append(property.getName()).append('.');
-    }
-    sb.deleteCharAt(sb.length() - 1);
-    return sb.toString();
-  }
-
-  private OasSpecValidator createOasSpecValidator() {
-    AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext(
-        DefaultOasSpecValidatorFactory.class.getPackage().getName());
-    try {
-      OasSpecValidatorFactory oasSpecValidatorFactory = ctx.getBean(OasSpecValidatorFactory.class);
-      return oasSpecValidatorFactory.create();
-    } finally {
-      ctx.close();
-    }
-  }
-
-
-  private String loadFileContent(String filePath) throws IOException {
-    Path specPath = Paths.get(filePath);
-    specPath.toAbsolutePath().toString();
-    return FileUtils.readFileToString(specPath.toFile());
-  }
-
-  private OasValidationContext createContext(OpenAPI openAPI) {
+    description = "Check style for OpenAPI v3 spec yaml")
+public class CheckStyle extends CheckStyleBase {
 
-    OasValidationContext oasValidationContext = new OasValidationContext(openAPI);
-    return oasValidationContext;
-  }
 }
diff --git a/cli/src/main/java/org/apache/servicecomb/toolkit/cli/CheckStyleAbbr.java b/cli/src/main/java/org/apache/servicecomb/toolkit/cli/CheckStyleAbbr.java
new file mode 100644
index 0000000..eca98a2
--- /dev/null
+++ b/cli/src/main/java/org/apache/servicecomb/toolkit/cli/CheckStyleAbbr.java
@@ -0,0 +1,26 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.servicecomb.toolkit.cli;
+
+import io.airlift.airline.Command;
+
+@Command(name = "cs",
+    description = "Check style for OpenAPI v3 spec yaml(abbr for checkstyle)")
+public class CheckStyleAbbr extends CheckStyleBase {
+
+}
diff --git a/cli/src/main/java/org/apache/servicecomb/toolkit/cli/CheckStyle.java b/cli/src/main/java/org/apache/servicecomb/toolkit/cli/CheckStyleBase.java
similarity index 94%
copy from cli/src/main/java/org/apache/servicecomb/toolkit/cli/CheckStyle.java
copy to cli/src/main/java/org/apache/servicecomb/toolkit/cli/CheckStyleBase.java
index 2ea2f99..e021d9f 100644
--- a/cli/src/main/java/org/apache/servicecomb/toolkit/cli/CheckStyle.java
+++ b/cli/src/main/java/org/apache/servicecomb/toolkit/cli/CheckStyleBase.java
@@ -24,7 +24,6 @@ import java.util.List;
 
 import org.apache.commons.collections4.CollectionUtils;
 import org.apache.commons.io.FileUtils;
-import org.apache.commons.io.IOUtils;
 import org.apache.servicecomb.toolkit.oasv.common.OasObjectProperty;
 import org.apache.servicecomb.toolkit.oasv.common.OasObjectPropertyLocation;
 import org.apache.servicecomb.toolkit.oasv.compliance.ComplianceCheckParser;
@@ -42,11 +41,9 @@ import io.airlift.airline.Command;
 import io.swagger.v3.oas.models.OpenAPI;
 import io.swagger.v3.parser.core.models.SwaggerParseResult;
 
-@Command(name = "checkstyle",
-    description = "Check style of OpenAPI v3 spec yaml")
-public class CheckStyle implements Runnable {
+public class CheckStyleBase implements Runnable {
 
-  private final static Logger LOGGER = LoggerFactory.getLogger(CheckStyle.class);
+  private final Logger LOGGER = LoggerFactory.getLogger(this.getClass());
 
   @Arguments(
       title = "file", required = true,
diff --git a/cli/src/main/java/org/apache/servicecomb/toolkit/cli/ToolkitMain.java b/cli/src/main/java/org/apache/servicecomb/toolkit/cli/ToolkitMain.java
index 7bd38f9..39b2477 100755
--- a/cli/src/main/java/org/apache/servicecomb/toolkit/cli/ToolkitMain.java
+++ b/cli/src/main/java/org/apache/servicecomb/toolkit/cli/ToolkitMain.java
@@ -37,7 +37,7 @@ public class ToolkitMain {
     builder.withDescription("Microservice development toolkit(version " + projectVersion
         + "). ");
     builder.withDefaultCommand(Help.class);
-    builder.withCommands(CodeGenerate.class, DocGenerate.class, CheckStyle.class, Help.class);
+    builder.withCommands(CodeGenerate.class, DocGenerate.class, CheckStyle.class, CheckStyleAbbr.class, Help.class);
     Runnable cmd = builder.build().parse(args);
 
     cmd.run();
diff --git a/cli/src/test/java/org/apache/servicecomb/toolkit/cli/CliTest.java b/cli/src/test/java/org/apache/servicecomb/toolkit/cli/CliTest.java
index 3c2fd7b..2068ddb 100755
--- a/cli/src/test/java/org/apache/servicecomb/toolkit/cli/CliTest.java
+++ b/cli/src/test/java/org/apache/servicecomb/toolkit/cli/CliTest.java
@@ -100,4 +100,13 @@ public class CliTest {
     ToolkitMain.main(args);
   }
 
+  @Test
+  public void testCheckStyleAbbr() throws IOException {
+    String[] args = new String[] {
+        "cs",
+        Paths.get("./src/test/resources/oas/parser-test.yaml").toFile().getCanonicalPath()
+    };
+    ToolkitMain.main(args);
+  }
+
 }


[servicecomb-toolkit] 04/26: SCB-1553 Integrate oas-validator compliance check to cli Sub task: connect oas-validator pom.xml with toolkit pom.xml, so it's included in the CI.

Posted by ni...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ningjiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/servicecomb-toolkit.git

commit 6c89bc2b15c38935e0af8ee8585e40c830689080
Author: Daniel Qian <ch...@gmail.com>
AuthorDate: Wed Oct 30 15:19:39 2019 +0800

    SCB-1553 Integrate oas-validator compliance check to cli
    Sub task: connect oas-validator pom.xml with toolkit pom.xml,
    so it's included in the CI.
---
 .../oas-validator-compatibility-spring/pom.xml     |   5 +-
 oas-validator/oas-validator-compatibility/pom.xml  |   8 +-
 .../oas-validator-compliance-spring/pom.xml        |   4 +-
 oas-validator/oas-validator-compliance/pom.xml     |   4 +-
 oas-validator/oas-validator-core-spring/pom.xml    |   5 +-
 oas-validator/oas-validator-core/pom.xml           |   5 +-
 oas-validator/oas-validator-test/pom.xml           |   5 +-
 oas-validator/oas-validator-web/pom.xml            |  20 +-
 oas-validator/pom.xml                              | 207 +--------------------
 pom.xml                                            |   1 +
 10 files changed, 34 insertions(+), 230 deletions(-)

diff --git a/oas-validator/oas-validator-compatibility-spring/pom.xml b/oas-validator/oas-validator-compatibility-spring/pom.xml
index 913db0c..8a262a4 100755
--- a/oas-validator/oas-validator-compatibility-spring/pom.xml
+++ b/oas-validator/oas-validator-compatibility-spring/pom.xml
@@ -18,7 +18,6 @@
 
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
-  <modelVersion>4.0.0</modelVersion>
 
   <parent>
     <groupId>org.apache.servicecomb.toolkit</groupId>
@@ -27,9 +26,9 @@
     <relativePath>../pom.xml</relativePath>
   </parent>
 
-  <groupId>org.apache.servicecomb.toolkit</groupId>
+  <modelVersion>4.0.0</modelVersion>
+
   <artifactId>oas-validator-compatibility-spring</artifactId>
-  <version>${parent.version}</version>
 
   <dependencies>
 
diff --git a/oas-validator/oas-validator-compatibility/pom.xml b/oas-validator/oas-validator-compatibility/pom.xml
index cb4bb4d..926f9c0 100755
--- a/oas-validator/oas-validator-compatibility/pom.xml
+++ b/oas-validator/oas-validator-compatibility/pom.xml
@@ -18,7 +18,6 @@
 
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
-  <modelVersion>4.0.0</modelVersion>
 
   <parent>
     <groupId>org.apache.servicecomb.toolkit</groupId>
@@ -27,12 +26,9 @@
     <relativePath>../pom.xml</relativePath>
   </parent>
 
-  <groupId>org.apache.servicecomb.toolkit</groupId>
-  <artifactId>oas-validator-compatibility</artifactId>
-  <version>${parent.version}</version>
+  <modelVersion>4.0.0</modelVersion>
 
-  <properties>
-  </properties>
+  <artifactId>oas-validator-compatibility</artifactId>
 
   <dependencies>
 
diff --git a/oas-validator/oas-validator-compliance-spring/pom.xml b/oas-validator/oas-validator-compliance-spring/pom.xml
index d6a10d8..91ffb81 100755
--- a/oas-validator/oas-validator-compliance-spring/pom.xml
+++ b/oas-validator/oas-validator-compliance-spring/pom.xml
@@ -18,7 +18,6 @@
 
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
-  <modelVersion>4.0.0</modelVersion>
 
   <parent>
     <groupId>org.apache.servicecomb.toolkit</groupId>
@@ -27,7 +26,8 @@
     <relativePath>../pom.xml</relativePath>
   </parent>
 
-  <groupId>org.apache.servicecomb.toolkit</groupId>
+  <modelVersion>4.0.0</modelVersion>
+
   <artifactId>oas-validator-compliance-spring</artifactId>
 
   <dependencies>
diff --git a/oas-validator/oas-validator-compliance/pom.xml b/oas-validator/oas-validator-compliance/pom.xml
index 4b61abb..d1bd9a8 100755
--- a/oas-validator/oas-validator-compliance/pom.xml
+++ b/oas-validator/oas-validator-compliance/pom.xml
@@ -18,7 +18,6 @@
 
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
-  <modelVersion>4.0.0</modelVersion>
 
   <parent>
     <groupId>org.apache.servicecomb.toolkit</groupId>
@@ -27,7 +26,8 @@
     <relativePath>../pom.xml</relativePath>
   </parent>
 
-  <groupId>org.apache.servicecomb.toolkit</groupId>
+  <modelVersion>4.0.0</modelVersion>
+
   <artifactId>oas-validator-compliance</artifactId>
 
   <dependencies>
diff --git a/oas-validator/oas-validator-core-spring/pom.xml b/oas-validator/oas-validator-core-spring/pom.xml
index 5af317e..166649c 100755
--- a/oas-validator/oas-validator-core-spring/pom.xml
+++ b/oas-validator/oas-validator-core-spring/pom.xml
@@ -18,7 +18,6 @@
 
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
-  <modelVersion>4.0.0</modelVersion>
 
   <parent>
     <groupId>org.apache.servicecomb.toolkit</groupId>
@@ -27,9 +26,9 @@
     <relativePath>../pom.xml</relativePath>
   </parent>
 
-  <groupId>org.apache.servicecomb.toolkit</groupId>
+  <modelVersion>4.0.0</modelVersion>
+
   <artifactId>oas-validator-core-spring</artifactId>
-  <packaging>jar</packaging>
 
   <dependencies>
 
diff --git a/oas-validator/oas-validator-core/pom.xml b/oas-validator/oas-validator-core/pom.xml
index cc6ea34..92e381c 100755
--- a/oas-validator/oas-validator-core/pom.xml
+++ b/oas-validator/oas-validator-core/pom.xml
@@ -18,7 +18,6 @@
 
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
-  <modelVersion>4.0.0</modelVersion>
 
   <parent>
     <groupId>org.apache.servicecomb.toolkit</groupId>
@@ -27,9 +26,9 @@
     <relativePath>../pom.xml</relativePath>
   </parent>
 
-  <groupId>org.apache.servicecomb.toolkit</groupId>
+  <modelVersion>4.0.0</modelVersion>
+
   <artifactId>oas-validator-core</artifactId>
-  <packaging>jar</packaging>
 
   <dependencies>
 
diff --git a/oas-validator/oas-validator-test/pom.xml b/oas-validator/oas-validator-test/pom.xml
index 364b0e4..e5b9c90 100755
--- a/oas-validator/oas-validator-test/pom.xml
+++ b/oas-validator/oas-validator-test/pom.xml
@@ -18,7 +18,6 @@
 
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
-  <modelVersion>4.0.0</modelVersion>
 
   <parent>
     <groupId>org.apache.servicecomb.toolkit</groupId>
@@ -27,9 +26,9 @@
     <relativePath>../pom.xml</relativePath>
   </parent>
 
-  <groupId>org.apache.servicecomb.toolkit</groupId>
+  <modelVersion>4.0.0</modelVersion>
+
   <artifactId>oas-validator-test</artifactId>
-  <packaging>jar</packaging>
 
   <dependencies>
 
diff --git a/oas-validator/oas-validator-web/pom.xml b/oas-validator/oas-validator-web/pom.xml
index 9a6bb8d..5deaf60 100755
--- a/oas-validator/oas-validator-web/pom.xml
+++ b/oas-validator/oas-validator-web/pom.xml
@@ -18,7 +18,6 @@
 
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
-  <modelVersion>4.0.0</modelVersion>
 
   <parent>
     <groupId>org.apache.servicecomb.toolkit</groupId>
@@ -27,9 +26,9 @@
     <relativePath>../pom.xml</relativePath>
   </parent>
 
-  <groupId>org.apache.servicecomb.toolkit</groupId>
+  <modelVersion>4.0.0</modelVersion>
+
   <artifactId>oas-validator-web</artifactId>
-  <version>${parent.version}</version>
   
   <properties>
     <start-class>org.apache.servicecomb.toolkit.oasv.web.Application</start-class>
@@ -101,7 +100,6 @@
   </dependencies>
 
   <build>
-    <finalName>${project.artifactId}</finalName>
 
     <plugins>
       <plugin>
@@ -114,13 +112,21 @@
         <artifactId>maven-surefire-report-plugin</artifactId>
       </plugin>
 
-
-
       <plugin>
         <groupId>org.springframework.boot</groupId>
         <artifactId>spring-boot-maven-plugin</artifactId>
+        <version>${spring-boot.version}</version>
+        <executions>
+          <execution>
+            <id>boot-repackage</id>
+            <phase>package</phase>
+            <goals>
+              <goal>repackage</goal>
+            </goals>
+          </execution>
+        </executions>
         <configuration>
-          <skip>false</skip>
+          <classifier>exec</classifier>
         </configuration>
       </plugin>
 
diff --git a/oas-validator/pom.xml b/oas-validator/pom.xml
index 3002928..1546299 100755
--- a/oas-validator/pom.xml
+++ b/oas-validator/pom.xml
@@ -19,20 +19,16 @@
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
 
+  <parent>
+    <artifactId>toolkit</artifactId>
+    <groupId>org.apache.servicecomb.toolkit</groupId>
+    <version>0.2.0-SNAPSHOT</version>
+  </parent>
+
   <modelVersion>4.0.0</modelVersion>
 
-  <groupId>org.apache.servicecomb.toolkit</groupId>
   <artifactId>oas-validator-parent</artifactId>
-  <version>0.2.0-SNAPSHOT</version>
   <packaging>pom</packaging>
-
-  <licenses>
-    <license>
-      <name>Apache License, Version 2.0</name>
-      <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
-      <distribution>repo</distribution>
-    </license>
-  </licenses>
   
   <properties>
     <java.version>1.8</java.version>
@@ -42,12 +38,6 @@
 
     <maven-compiler-plugin.version>3.3</maven-compiler-plugin.version>
     <maven.surefire.version>3.0.0-M3</maven.surefire.version>
-    <maven-source-plugin.version>3.0.1</maven-source-plugin.version>
-    <maven-javadoc-plugin.version>3.0.1</maven-javadoc-plugin.version>
-
-    <skipTests>false</skipTests>
-    <skipITs>${skipTests}</skipITs>
-    <skipUTs>${skipTests}</skipUTs>
 
     <swagger-parser.version>2.0.12</swagger-parser.version>
     <commons-collections4.version>4.3</commons-collections4.version>
@@ -64,10 +54,8 @@
     <module>oas-validator-compatibility</module>
     <module>oas-validator-compatibility-spring</module>
     <module>oas-validator-web</module>
-    <module>distribution</module>
   </modules>
 
-
   <dependencyManagement>
     <dependencies>
 
@@ -103,79 +91,9 @@
     <pluginManagement>
       <plugins>
         <plugin>
-          <groupId>org.springframework.boot</groupId>
-          <artifactId>spring-boot-maven-plugin</artifactId>
-          <executions>
-            <execution>
-              <id>boot-repackage</id>
-              <phase>package</phase>
-              <goals>
-                <goal>repackage</goal>
-              </goals>
-            </execution>
-          </executions>
-          <configuration>
-            <classifier>exec</classifier>
-          </configuration>
-        </plugin>
-
-        <plugin>
-          <groupId>org.apache.maven.plugins</groupId>
-          <artifactId>maven-failsafe-plugin</artifactId>
-          <version>${maven.surefire.version}</version>
-          <executions>
-            <execution>
-              <id>integration-test</id>
-              <goals>
-                <goal>integration-test</goal>
-              </goals>
-            </execution>
-            <execution>
-              <id>verify</id>
-              <goals>
-                <goal>verify</goal>
-              </goals>
-            </execution>
-          </executions>
-          <configuration>
-            <skipTests>${skipTests}</skipTests>
-            <skipITs>${skipITs}</skipITs>
-          </configuration>
-        </plugin>
-
-        <plugin>
-          <groupId>io.fabric8</groupId>
-          <artifactId>docker-maven-plugin</artifactId>
-          <version>${fabric8.dmp.version}</version>
-          <configuration>
-            <skip>${skipITs}</skip>
-          </configuration>
-          <executions>
-            <execution>
-              <id>start</id>
-              <phase>pre-integration-test</phase>
-              <goals>
-                <goal>start</goal>
-              </goals>
-            </execution>
-            <execution>
-              <id>stop</id>
-              <phase>post-integration-test</phase>
-              <goals>
-                <goal>stop</goal>
-              </goals>
-            </execution>
-          </executions>
-        </plugin>
-
-
-        <plugin>
           <groupId>org.apache.maven.plugins</groupId>
           <artifactId>maven-surefire-plugin</artifactId>
           <version>${maven.surefire.version}</version>
-          <configuration>
-            <skipTests>${skipUTs}</skipTests>
-          </configuration>
         </plugin>
 
         <plugin>
@@ -192,124 +110,11 @@
             </execution>
           </executions>
         </plugin>
-
-        <plugin>
-          <groupId>org.codehaus.mojo</groupId>
-          <artifactId>license-maven-plugin</artifactId>
-          <version>1.19</version>
-          <executions>
-            <execution>
-              <id>default-cli</id>
-              <configuration>
-                <!-- Accept the pom module -->
-                <acceptPomPackaging>true</acceptPomPackaging>
-                <!-- Using the template which is grouped by License file -->
-                <fileTemplate>/org/codehaus/mojo/license/third-party-file-groupByMultiLicense.ftl</fileTemplate>
-                <licenseMerges>
-                  <licenseMerge>The Apache Software License, Version 2.0|The Apache License, Version 2.0</licenseMerge>
-                  <licenseMerge>The Apache Software License, Version 2.0|Apache License, Version 2.0</licenseMerge>
-                  <licenseMerge>The Apache Software License, Version 2.0|Apache Public License 2.0</licenseMerge>
-                  <licenseMerge>The Apache Software License, Version 2.0|Apache 2</licenseMerge>
-                  <licenseMerge>The Apache Software License, Version 2.0|Apache 2.0</licenseMerge>
-                  <licenseMerge>The Apache Software License, Version 2.0|Apache-2.0</licenseMerge>
-                  <licenseMerge>The Apache Software License, Version 2.0|Apache License 2.0</licenseMerge>
-                  <licenseMerge>The Apache Software License, Version 2.0|Apache License, version 2.0</licenseMerge>
-                  <licenseMerge>3-Clause BSD License|BSD 3-clause</licenseMerge>
-                  <licenseMerge>3-Clause BSD License|BSD 3-Clause</licenseMerge>
-                  <licenseMerge>Eclipse Public License v1.0|Eclipse Public License 1.0</licenseMerge>
-                  <licenseMerge>Eclipse Public License v1.0|Eclipse Public License - v 1.0</licenseMerge>
-                  <licenseMerge>The MIT License|MIT License</licenseMerge>
-                </licenseMerges>
-              </configuration>
-            </execution>
-          </executions>
-        </plugin>
         
       </plugins>
     </pluginManagement>
-
-
-    <plugins>
-
-      <plugin>
-        <groupId>org.springframework.boot</groupId>
-        <artifactId>spring-boot-maven-plugin</artifactId>
-        <configuration>
-          <skip>true</skip>
-        </configuration>
-      </plugin>
-
-    </plugins>
     
   </build>
 
-  <profiles>
-    <profile>
-      <id>release</id>
-      <build>
-        <plugins>
-          <!-- <plugin>
-            <groupId>org.apache.maven.plugins</groupId>
-            <artifactId>maven-gpg-plugin</artifactId>
-            <version>1.6</version>
-            <executions>
-              <execution>
-                <id>sign-artifacts</id>
-                <phase>verify</phase>
-                <goals>
-                  <goal>sign</goal>
-                </goals>
-              </execution>
-            </executions>
-          </plugin> -->
-          <!-- Source -->
-          <plugin>
-            <groupId>org.apache.maven.plugins</groupId>
-            <artifactId>maven-source-plugin</artifactId>
-            <version>${maven-source-plugin.version}</version>
-            <executions>
-              <execution>
-                <!-- <phase>package</phase> -->
-                <id>attach-sources</id>
-                <goals>
-                  <goal>jar-no-fork</goal>
-                </goals>
-              </execution>
-            </executions>
-          </plugin>
-          <!-- Javadoc -->
-          <plugin>
-            <groupId>org.apache.maven.plugins</groupId>
-            <artifactId>maven-javadoc-plugin</artifactId>
-            <version>${maven-javadoc-plugin.version}</version>
-            <executions>
-              <execution>
-                <!-- <phase>package</phase> -->
-                <id>attach-javadocs</id>
-                <goals>
-                  <goal>jar</goal>
-                </goals>
-              </execution>
-            </executions>
-            <configuration>
-              <charset>UTF-8</charset>
-              <locale>zh_CN</locale>
-              <doclint>reference</doclint>
-            </configuration>
-          </plugin>
-        </plugins>
-      </build>
-    </profile>
-  </profiles>
-
-  <repositories>
-    <repository>
-      <snapshots>
-        <enabled>false</enabled>
-      </snapshots>
-      <id>central</id>
-      <url>http://repo.maven.apache.org/maven2</url>
-    </repository>
-  </repositories>
 
 </project>
diff --git a/pom.xml b/pom.xml
index e8cc593..f06893e 100755
--- a/pom.xml
+++ b/pom.xml
@@ -110,6 +110,7 @@
     <module>core</module>
     <module>integration-tests</module>
     <module>contractgen</module>
+    <module>oas-validator</module>
   </modules>
 
   <dependencyManagement>


[servicecomb-toolkit] 07/26: SCB-1553 Integrate oas-validator compliance check to cli refactor parse checker code, remove duplication

Posted by ni...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ningjiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/servicecomb-toolkit.git

commit 2646643159f51ea15aa3cd831b67596c3be85cf5
Author: Daniel Qian <ch...@gmail.com>
AuthorDate: Fri Nov 1 15:11:01 2019 +0800

    SCB-1553 Integrate oas-validator compliance check to cli
    refactor parse checker code, remove duplication
---
 .../compatibility/CompatibilityCheckParser.java    | 36 +++++++++++++++++++
 .../validators/OasCompatibilityTestBase.java       | 17 ++++-----
 .../oasv/compliance/ComplianceCheckParser.java     | 36 +++++++++++++++++++
 .../validator/OasComplianceTestBase.java           | 18 +++++-----
 .../oasv/util/DefaultOasSpecSyntaxChecker.java     | 42 ----------------------
 .../toolkit/oasv/util/OasSpecParseException.java   | 39 --------------------
 .../toolkit/oasv/util/OasSpecParser.java           | 36 -------------------
 .../toolkit/oasv/util/OasSpecSyntaxChecker.java    | 36 -------------------
 .../servicecomb/toolkit/oasv/OasSpecLoader.java    |  9 +----
 .../api/controller/CompatibilityController.java    | 30 ++++------------
 .../web/api/controller/ComplianceController.java   | 36 ++++++-------------
 11 files changed, 106 insertions(+), 229 deletions(-)

diff --git a/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/CompatibilityCheckParser.java b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/CompatibilityCheckParser.java
new file mode 100644
index 0000000..18fa225
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/main/java/org/apache/servicecomb/toolkit/oasv/compatibility/CompatibilityCheckParser.java
@@ -0,0 +1,36 @@
+package org.apache.servicecomb.toolkit.oasv.compatibility;
+
+import static java.util.Collections.emptyList;
+
+import java.util.List;
+
+import io.swagger.v3.parser.OpenAPIV3Parser;
+import io.swagger.v3.parser.core.models.ParseOptions;
+import io.swagger.v3.parser.core.models.SwaggerParseResult;
+
+public abstract class CompatibilityCheckParser {
+
+  private CompatibilityCheckParser() {
+    // singleton
+  }
+
+  public static SwaggerParseResult parseYaml(String yaml) {
+    OpenAPIV3Parser parser = new OpenAPIV3Parser();
+    return parser.readContents(yaml, null, createParseOptions());
+  }
+
+  public static List<String> checkSyntax(String yaml) {
+    SwaggerParseResult result = parseYaml(yaml);
+    return result.getMessages() == null ? emptyList() : result.getMessages();
+  }
+
+  private static ParseOptions createParseOptions() {
+
+    ParseOptions parseOptions = new ParseOptions();
+    parseOptions.setResolve(true);
+    parseOptions.setResolveCombinators(true);
+    parseOptions.setResolveFully(true);
+    parseOptions.setFlatten(false);
+    return parseOptions;
+  }
+}
diff --git a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/OasCompatibilityTestBase.java b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/OasCompatibilityTestBase.java
index efbf135..0713c2a 100755
--- a/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/OasCompatibilityTestBase.java
+++ b/oas-validator/oas-validator-compatibility/src/test/java/org/apache/servicecomb/toolkit/oasv/compatibility/validators/OasCompatibilityTestBase.java
@@ -17,21 +17,18 @@
 
 package org.apache.servicecomb.toolkit.oasv.compatibility.validators;
 
+import org.apache.servicecomb.toolkit.oasv.compatibility.CompatibilityCheckParser;
 import org.apache.servicecomb.toolkit.oasv.diffvalidation.test.OasDiffValidatorTestBase;
-import io.swagger.v3.parser.core.models.ParseOptions;
+
+import io.swagger.v3.parser.core.models.SwaggerParseResult;
+import io.swagger.v3.parser.util.ClasspathHelper;
 
 public class OasCompatibilityTestBase extends OasDiffValidatorTestBase {
 
   @Override
-  protected ParseOptions createParseOptions() {
-
-    ParseOptions parseOptions = new ParseOptions();
-    parseOptions.setResolve(true);
-    parseOptions.setResolveCombinators(true);
-    parseOptions.setResolveFully(true);
-    parseOptions.setFlatten(false);
-    return parseOptions;
-
+  protected SwaggerParseResult parseAbsolute(String classpath) {
+    String content = ClasspathHelper.loadFileFromClasspath(classpath);
+    return CompatibilityCheckParser.parseYaml(content);
   }
 
 }
diff --git a/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/ComplianceCheckParser.java b/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/ComplianceCheckParser.java
new file mode 100644
index 0000000..ad08cff
--- /dev/null
+++ b/oas-validator/oas-validator-compliance/src/main/java/org/apache/servicecomb/toolkit/oasv/compliance/ComplianceCheckParser.java
@@ -0,0 +1,36 @@
+package org.apache.servicecomb.toolkit.oasv.compliance;
+
+import static java.util.Collections.emptyList;
+
+import java.util.List;
+
+import io.swagger.v3.parser.OpenAPIV3Parser;
+import io.swagger.v3.parser.core.models.ParseOptions;
+import io.swagger.v3.parser.core.models.SwaggerParseResult;
+
+public abstract class ComplianceCheckParser {
+
+  private ComplianceCheckParser() {
+    // singleton
+  }
+
+  public static SwaggerParseResult parseYaml(String yaml) {
+    OpenAPIV3Parser parser = new OpenAPIV3Parser();
+    return parser.readContents(yaml, null, createParseOptions());
+  }
+
+  public static List<String> checkSyntax(String yaml) {
+    SwaggerParseResult result = parseYaml(yaml);
+    return result.getMessages() == null ? emptyList() : result.getMessages();
+  }
+
+  private static ParseOptions createParseOptions() {
+
+    ParseOptions parseOptions = new ParseOptions();
+    parseOptions.setResolve(true);
+    parseOptions.setResolveCombinators(false);
+    parseOptions.setResolveFully(false);
+    parseOptions.setFlatten(false);
+    return parseOptions;
+  }
+}
diff --git a/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/OasComplianceTestBase.java b/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/OasComplianceTestBase.java
index e3861e8..89c0312 100755
--- a/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/OasComplianceTestBase.java
+++ b/oas-validator/oas-validator-compliance/src/test/java/org/apache/servicecomb/toolkit/oasv/compliance/validator/OasComplianceTestBase.java
@@ -17,20 +17,18 @@
 
 package org.apache.servicecomb.toolkit.oasv.compliance.validator;
 
+import org.apache.servicecomb.toolkit.oasv.compliance.ComplianceCheckParser;
 import org.apache.servicecomb.toolkit.oasv.validation.test.OasValidatorTestBase;
-import io.swagger.v3.parser.core.models.ParseOptions;
+
+import io.swagger.v3.parser.core.models.SwaggerParseResult;
+import io.swagger.v3.parser.util.ClasspathHelper;
 
 public class OasComplianceTestBase extends OasValidatorTestBase {
 
   @Override
-  protected ParseOptions createParseOptions() {
-
-    ParseOptions parseOptions = new ParseOptions();
-    parseOptions.setResolve(true);
-    parseOptions.setResolveCombinators(false);
-    parseOptions.setResolveFully(false);
-    parseOptions.setFlatten(false);
-    return parseOptions;
-
+  protected SwaggerParseResult parseAbsolute(String classpath) {
+    String content = ClasspathHelper.loadFileFromClasspath(classpath);
+    return ComplianceCheckParser.parseYaml(content);
   }
+
 }
diff --git a/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/util/DefaultOasSpecSyntaxChecker.java b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/util/DefaultOasSpecSyntaxChecker.java
deleted file mode 100755
index cd1de49..0000000
--- a/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/util/DefaultOasSpecSyntaxChecker.java
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.servicecomb.toolkit.oasv.util;
-
-import io.swagger.v3.parser.core.models.ParseOptions;
-import io.swagger.v3.parser.core.models.SwaggerParseResult;
-
-import java.util.List;
-
-import static java.util.Collections.emptyList;
-
-public class DefaultOasSpecSyntaxChecker implements OasSpecSyntaxChecker {
-
-  @Override
-  public List<String> check(String oasSpecContent) {
-
-    ParseOptions parseOptions = new ParseOptions();
-    parseOptions.setResolve(false);
-    parseOptions.setResolveFully(false);
-    parseOptions.setResolveCombinators(false);
-    parseOptions.setFlatten(false);
-    SwaggerParseResult result = OasSpecParser.parse(oasSpecContent, parseOptions);
-    return result.getMessages() == null ? emptyList() : result.getMessages();
-
-  }
-
-}
diff --git a/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/util/OasSpecParseException.java b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/util/OasSpecParseException.java
deleted file mode 100755
index a263968..0000000
--- a/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/util/OasSpecParseException.java
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.servicecomb.toolkit.oasv.util;
-
-public class OasSpecParseException extends RuntimeException {
-  public OasSpecParseException() {
-  }
-
-  public OasSpecParseException(String message) {
-    super(message);
-  }
-
-  public OasSpecParseException(String message, Throwable cause) {
-    super(message, cause);
-  }
-
-  public OasSpecParseException(Throwable cause) {
-    super(cause);
-  }
-
-  public OasSpecParseException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
-    super(message, cause, enableSuppression, writableStackTrace);
-  }
-}
diff --git a/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/util/OasSpecParser.java b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/util/OasSpecParser.java
deleted file mode 100755
index 03ecccc..0000000
--- a/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/util/OasSpecParser.java
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.servicecomb.toolkit.oasv.util;
-
-import io.swagger.v3.parser.OpenAPIV3Parser;
-import io.swagger.v3.parser.core.models.ParseOptions;
-import io.swagger.v3.parser.core.models.SwaggerParseResult;
-
-public abstract class OasSpecParser {
-
-  private OasSpecParser() {
-    // singleton
-  }
-
-  public static SwaggerParseResult parse(String oasSpecContent, ParseOptions parseOptions) {
-    OpenAPIV3Parser parser = new OpenAPIV3Parser();
-    SwaggerParseResult swaggerParseResult = parser.readContents(oasSpecContent, null, parseOptions);
-    return swaggerParseResult;
-  }
-
-}
diff --git a/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/util/OasSpecSyntaxChecker.java b/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/util/OasSpecSyntaxChecker.java
deleted file mode 100755
index 7b07281..0000000
--- a/oas-validator/oas-validator-core/src/main/java/org/apache/servicecomb/toolkit/oasv/util/OasSpecSyntaxChecker.java
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.servicecomb.toolkit.oasv.util;
-
-import java.util.List;
-
-/**
- * <a href="https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#openapi-specification">OAS Spec</a>็š„่ฏญๆณ•ๆฃ€ๆŸฅๅ™จใ€‚
- * ๅชๆฃ€ๆŸฅๅฑžๆ€งๅๆ˜ฏๅฆๆญฃ็กฎ
- */
-public interface OasSpecSyntaxChecker {
-
-  /**
-   * ๆฃ€ๆŸฅ่ฏญๆณ•้”™่ฏฏ
-   *
-   * @param oasSpecContent
-   * @return ่ฏญๆณ•้”™่ฏฏๆถˆๆฏ๏ผŒๅฆ‚ๆžœๆ˜ฏempty๏ผŒๅˆ™ไปฃ่กจๆฒกๆœ‰่ฏญๆณ•้”™่ฏฏ
-   */
-  List<String> check(String oasSpecContent);
-
-}
diff --git a/oas-validator/oas-validator-test/src/main/java/org/apache/servicecomb/toolkit/oasv/OasSpecLoader.java b/oas-validator/oas-validator-test/src/main/java/org/apache/servicecomb/toolkit/oasv/OasSpecLoader.java
index db01a70..009c303 100755
--- a/oas-validator/oas-validator-test/src/main/java/org/apache/servicecomb/toolkit/oasv/OasSpecLoader.java
+++ b/oas-validator/oas-validator-test/src/main/java/org/apache/servicecomb/toolkit/oasv/OasSpecLoader.java
@@ -33,15 +33,8 @@ public abstract class OasSpecLoader {
    * @param classpath
    * @return
    */
-  protected final SwaggerParseResult parseAbsolute(String classpath) {
+  protected abstract SwaggerParseResult parseAbsolute(String classpath);
 
-    String content = ClasspathHelper.loadFileFromClasspath(classpath);
-    OpenAPIV3Parser parser = new OpenAPIV3Parser();
-    return parser.readContents(content, null, createParseOptions());
-
-  }
-
-  protected abstract ParseOptions createParseOptions();
 
   /**
    * ๅŠ ่ฝฝ็ปๅฏน่ทฏๅพ„ไธ‹็š„ๆ–‡ไปถ
diff --git a/oas-validator/oas-validator-web/src/main/java/org/apache/servicecomb/toolkit/oasv/web/api/controller/CompatibilityController.java b/oas-validator/oas-validator-web/src/main/java/org/apache/servicecomb/toolkit/oasv/web/api/controller/CompatibilityController.java
index 99662e1..5a045ee 100755
--- a/oas-validator/oas-validator-web/src/main/java/org/apache/servicecomb/toolkit/oasv/web/api/controller/CompatibilityController.java
+++ b/oas-validator/oas-validator-web/src/main/java/org/apache/servicecomb/toolkit/oasv/web/api/controller/CompatibilityController.java
@@ -23,6 +23,10 @@ import java.util.Map;
 
 import org.apache.commons.collections4.CollectionUtils;
 import org.apache.commons.lang3.StringUtils;
+import org.apache.servicecomb.toolkit.oasv.compatibility.CompatibilityCheckParser;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffValidationContext;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffViolation;
+import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasSpecDiffValidator;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.http.HttpStatus;
 import org.springframework.util.MimeTypeUtils;
@@ -32,23 +36,13 @@ import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.ResponseStatus;
 import org.springframework.web.bind.annotation.RestController;
 
-import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffValidationContext;
-import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasDiffViolation;
-import org.apache.servicecomb.toolkit.oasv.diffvalidation.api.OasSpecDiffValidator;
-import org.apache.servicecomb.toolkit.oasv.util.DefaultOasSpecSyntaxChecker;
-import org.apache.servicecomb.toolkit.oasv.util.OasSpecSyntaxChecker;
-
 import io.swagger.v3.oas.models.OpenAPI;
-import io.swagger.v3.parser.OpenAPIV3Parser;
-import io.swagger.v3.parser.core.models.ParseOptions;
 import io.swagger.v3.parser.core.models.SwaggerParseResult;
 
 @RestController
 @RequestMapping("/api/compatibility")
 public class CompatibilityController {
 
-  private OasSpecSyntaxChecker oasSpecSyntaxChecker = new DefaultOasSpecSyntaxChecker();
-
   @Autowired
   private OasSpecDiffValidator oasSpecDiffValidator;
 
@@ -72,8 +66,8 @@ public class CompatibilityController {
     String leftYaml = yaml.split("---\n")[0];
     String rightYaml = yaml.split("---\n")[1];
 
-    importError.addLeftParseErrors(oasSpecSyntaxChecker.check(leftYaml));
-    importError.addRightParseErrors(oasSpecSyntaxChecker.check(rightYaml));
+    importError.addLeftParseErrors(CompatibilityCheckParser.checkSyntax(leftYaml));
+    importError.addRightParseErrors(CompatibilityCheckParser.checkSyntax(rightYaml));
 
     if (importError.isNotEmpty()) {
       return importError;
@@ -91,24 +85,14 @@ public class CompatibilityController {
   }
 
   private OpenAPI loadByYaml(String yaml) {
-    OpenAPIV3Parser parser = new OpenAPIV3Parser();
-    SwaggerParseResult parseResult = parser.readContents(yaml, null, createParseOptions());
+    SwaggerParseResult parseResult = CompatibilityCheckParser.parseYaml(yaml);
     if (CollectionUtils.isNotEmpty(parseResult.getMessages())) {
       throw new RuntimeException(StringUtils.join(parseResult.getMessages(), ","));
     }
     return parseResult.getOpenAPI();
   }
 
-  private ParseOptions createParseOptions() {
 
-    ParseOptions parseOptions = new ParseOptions();
-    parseOptions.setResolve(true);
-    parseOptions.setResolveCombinators(true);
-    parseOptions.setResolveFully(true);
-    parseOptions.setFlatten(false);
-    return parseOptions;
-
-  }
   
   private OasDiffValidationContext createContext(OpenAPI leftOpenAPI, OpenAPI rightOpenAPI) {
 
diff --git a/oas-validator/oas-validator-web/src/main/java/org/apache/servicecomb/toolkit/oasv/web/api/controller/ComplianceController.java b/oas-validator/oas-validator-web/src/main/java/org/apache/servicecomb/toolkit/oasv/web/api/controller/ComplianceController.java
index 8149344..e6b5c99 100755
--- a/oas-validator/oas-validator-web/src/main/java/org/apache/servicecomb/toolkit/oasv/web/api/controller/ComplianceController.java
+++ b/oas-validator/oas-validator-web/src/main/java/org/apache/servicecomb/toolkit/oasv/web/api/controller/ComplianceController.java
@@ -23,6 +23,10 @@ import java.util.Map;
 
 import org.apache.commons.collections4.CollectionUtils;
 import org.apache.commons.lang3.StringUtils;
+import org.apache.servicecomb.toolkit.oasv.compliance.ComplianceCheckParser;
+import org.apache.servicecomb.toolkit.oasv.validation.api.OasSpecValidator;
+import org.apache.servicecomb.toolkit.oasv.validation.api.OasValidationContext;
+import org.apache.servicecomb.toolkit.oasv.validation.api.OasViolation;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.http.HttpStatus;
 import org.springframework.util.MimeTypeUtils;
@@ -32,23 +36,13 @@ import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.ResponseStatus;
 import org.springframework.web.bind.annotation.RestController;
 
-import org.apache.servicecomb.toolkit.oasv.util.DefaultOasSpecSyntaxChecker;
-import org.apache.servicecomb.toolkit.oasv.util.OasSpecSyntaxChecker;
-import org.apache.servicecomb.toolkit.oasv.validation.api.OasSpecValidator;
-import org.apache.servicecomb.toolkit.oasv.validation.api.OasValidationContext;
-import org.apache.servicecomb.toolkit.oasv.validation.api.OasViolation;
-
 import io.swagger.v3.oas.models.OpenAPI;
-import io.swagger.v3.parser.OpenAPIV3Parser;
-import io.swagger.v3.parser.core.models.ParseOptions;
 import io.swagger.v3.parser.core.models.SwaggerParseResult;
 
 @RestController
 @RequestMapping("/api/compliance")
 public class ComplianceController {
 
-  private OasSpecSyntaxChecker oasSpecSyntaxChecker = new DefaultOasSpecSyntaxChecker();
-
   @Autowired
   private OasSpecValidator oasSpecValidator;
   
@@ -70,11 +64,16 @@ public class ComplianceController {
   private ImportError doValidate(String yaml) {
 
     ImportError importError = new ImportError();
-    importError.addParseErrors(oasSpecSyntaxChecker.check(yaml));
+    importError.addParseErrors(ComplianceCheckParser.checkSyntax(yaml));
     if (importError.isNotEmpty()) {
       return importError;
     }
 
+    SwaggerParseResult parseResult = ComplianceCheckParser.parseYaml(yaml);
+    if (CollectionUtils.isNotEmpty(parseResult.getMessages())) {
+      throw new RuntimeException(StringUtils.join(parseResult.getMessages(), ","));
+    }
+
     OpenAPI openAPI = loadByYaml(yaml);
     List<OasViolation> violations = oasSpecValidator.validate(createContext(openAPI), openAPI);
     if (CollectionUtils.isNotEmpty(violations)) {
@@ -84,27 +83,14 @@ public class ComplianceController {
     return importError;
   }
 
-
   private OpenAPI loadByYaml(String yaml) {
-    OpenAPIV3Parser parser = new OpenAPIV3Parser();
-    SwaggerParseResult parseResult = parser.readContents(yaml, null, createParseOptions());
+    SwaggerParseResult parseResult = ComplianceCheckParser.parseYaml(yaml);
     if (CollectionUtils.isNotEmpty(parseResult.getMessages())) {
       throw new RuntimeException(StringUtils.join(parseResult.getMessages(), ","));
     }
     return parseResult.getOpenAPI();
   }
   
-  private ParseOptions createParseOptions() {
-
-    ParseOptions parseOptions = new ParseOptions();
-    parseOptions.setResolve(true);
-    parseOptions.setResolveCombinators(false);
-    parseOptions.setResolveFully(false);
-    parseOptions.setFlatten(false);
-    return parseOptions;
-
-  }
-  
   private OasValidationContext createContext(OpenAPI openAPI) {
 
     OasValidationContext oasValidationContext = new OasValidationContext(openAPI);


[servicecomb-toolkit] 03/26: SCB-1553 Integrate oas-validator compliance check to cli Sub task: since oas-validator doesn't distribute itself standalone so remove distribution dir and LICENSE files

Posted by ni...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ningjiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/servicecomb-toolkit.git

commit 973682d74579ed2be2922c08571715a30e86f5c7
Author: Daniel Qian <ch...@gmail.com>
AuthorDate: Wed Oct 30 15:15:07 2019 +0800

    SCB-1553 Integrate oas-validator compliance check to cli
    Sub task: since oas-validator doesn't distribute itself standalone
    so remove distribution dir and LICENSE files
---
 oas-validator/LICENSE                              | 201 ------
 oas-validator/distribution/pom.xml                 | 107 ---
 oas-validator/distribution/src/assembly/bin.xml    |  65 --
 oas-validator/distribution/src/assembly/src.xml    |  66 --
 oas-validator/distribution/src/release/LICENSE     | 437 ------------
 .../distribution/src/release/licenses/LICENSE-asm  |  27 -
 .../distribution/src/release/licenses/LICENSE-cc0  |  27 -
 .../src/release/licenses/LICENSE-cddl-gplv2        | 760 ---------------------
 .../src/release/licenses/LICENSE-cddl-v10          | 132 ----
 .../src/release/licenses/LICENSE-epl-v10           |  86 ---
 .../src/release/licenses/LICENSE-hamcrest          |  27 -
 .../distribution/src/release/licenses/LICENSE-jopt |  22 -
 .../src/release/licenses/LICENSE-lombok            |  19 -
 .../distribution/src/release/licenses/LICENSE-mit  |  21 -
 .../src/release/licenses/LICENSE-mockito           |  21 -
 .../src/release/licenses/LICENSE-mpl-v20           | 373 ----------
 .../distribution/src/release/licenses/LICENSE-qos  |  21 -
 .../src/release/licenses/LICENSE-slf4j             |  21 -
 .../src/release/licenses/LICENSE-webjars           |  21 -
 19 files changed, 2454 deletions(-)

diff --git a/oas-validator/LICENSE b/oas-validator/LICENSE
deleted file mode 100755
index 261eeb9..0000000
--- a/oas-validator/LICENSE
+++ /dev/null
@@ -1,201 +0,0 @@
-                                 Apache License
-                           Version 2.0, January 2004
-                        http://www.apache.org/licenses/
-
-   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
-   1. Definitions.
-
-      "License" shall mean the terms and conditions for use, reproduction,
-      and distribution as defined by Sections 1 through 9 of this document.
-
-      "Licensor" shall mean the copyright owner or entity authorized by
-      the copyright owner that is granting the License.
-
-      "Legal Entity" shall mean the union of the acting entity and all
-      other entities that control, are controlled by, or are under common
-      control with that entity. For the purposes of this definition,
-      "control" means (i) the power, direct or indirect, to cause the
-      direction or management of such entity, whether by contract or
-      otherwise, or (ii) ownership of fifty percent (50%) or more of the
-      outstanding shares, or (iii) beneficial ownership of such entity.
-
-      "You" (or "Your") shall mean an individual or Legal Entity
-      exercising permissions granted by this License.
-
-      "Source" form shall mean the preferred form for making modifications,
-      including but not limited to software source code, documentation
-      source, and configuration files.
-
-      "Object" form shall mean any form resulting from mechanical
-      transformation or translation of a Source form, including but
-      not limited to compiled object code, generated documentation,
-      and conversions to other media types.
-
-      "Work" shall mean the work of authorship, whether in Source or
-      Object form, made available under the License, as indicated by a
-      copyright notice that is included in or attached to the work
-      (an example is provided in the Appendix below).
-
-      "Derivative Works" shall mean any work, whether in Source or Object
-      form, that is based on (or derived from) the Work and for which the
-      editorial revisions, annotations, elaborations, or other modifications
-      represent, as a whole, an original work of authorship. For the purposes
-      of this License, Derivative Works shall not include works that remain
-      separable from, or merely link (or bind by name) to the interfaces of,
-      the Work and Derivative Works thereof.
-
-      "Contribution" shall mean any work of authorship, including
-      the original version of the Work and any modifications or additions
-      to that Work or Derivative Works thereof, that is intentionally
-      submitted to Licensor for inclusion in the Work by the copyright owner
-      or by an individual or Legal Entity authorized to submit on behalf of
-      the copyright owner. For the purposes of this definition, "submitted"
-      means any form of electronic, verbal, or written communication sent
-      to the Licensor or its representatives, including but not limited to
-      communication on electronic mailing lists, source code control systems,
-      and issue tracking systems that are managed by, or on behalf of, the
-      Licensor for the purpose of discussing and improving the Work, but
-      excluding communication that is conspicuously marked or otherwise
-      designated in writing by the copyright owner as "Not a Contribution."
-
-      "Contributor" shall mean Licensor and any individual or Legal Entity
-      on behalf of whom a Contribution has been received by Licensor and
-      subsequently incorporated within the Work.
-
-   2. Grant of Copyright License. Subject to the terms and conditions of
-      this License, each Contributor hereby grants to You a perpetual,
-      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
-      copyright license to reproduce, prepare Derivative Works of,
-      publicly display, publicly perform, sublicense, and distribute the
-      Work and such Derivative Works in Source or Object form.
-
-   3. Grant of Patent License. Subject to the terms and conditions of
-      this License, each Contributor hereby grants to You a perpetual,
-      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
-      (except as stated in this section) patent license to make, have made,
-      use, offer to sell, sell, import, and otherwise transfer the Work,
-      where such license applies only to those patent claims licensable
-      by such Contributor that are necessarily infringed by their
-      Contribution(s) alone or by combination of their Contribution(s)
-      with the Work to which such Contribution(s) was submitted. If You
-      institute patent litigation against any entity (including a
-      cross-claim or counterclaim in a lawsuit) alleging that the Work
-      or a Contribution incorporated within the Work constitutes direct
-      or contributory patent infringement, then any patent licenses
-      granted to You under this License for that Work shall terminate
-      as of the date such litigation is filed.
-
-   4. Redistribution. You may reproduce and distribute copies of the
-      Work or Derivative Works thereof in any medium, with or without
-      modifications, and in Source or Object form, provided that You
-      meet the following conditions:
-
-      (a) You must give any other recipients of the Work or
-          Derivative Works a copy of this License; and
-
-      (b) You must cause any modified files to carry prominent notices
-          stating that You changed the files; and
-
-      (c) You must retain, in the Source form of any Derivative Works
-          that You distribute, all copyright, patent, trademark, and
-          attribution notices from the Source form of the Work,
-          excluding those notices that do not pertain to any part of
-          the Derivative Works; and
-
-      (d) If the Work includes a "NOTICE" text file as part of its
-          distribution, then any Derivative Works that You distribute must
-          include a readable copy of the attribution notices contained
-          within such NOTICE file, excluding those notices that do not
-          pertain to any part of the Derivative Works, in at least one
-          of the following places: within a NOTICE text file distributed
-          as part of the Derivative Works; within the Source form or
-          documentation, if provided along with the Derivative Works; or,
-          within a display generated by the Derivative Works, if and
-          wherever such third-party notices normally appear. The contents
-          of the NOTICE file are for informational purposes only and
-          do not modify the License. You may add Your own attribution
-          notices within Derivative Works that You distribute, alongside
-          or as an addendum to the NOTICE text from the Work, provided
-          that such additional attribution notices cannot be construed
-          as modifying the License.
-
-      You may add Your own copyright statement to Your modifications and
-      may provide additional or different license terms and conditions
-      for use, reproduction, or distribution of Your modifications, or
-      for any such Derivative Works as a whole, provided Your use,
-      reproduction, and distribution of the Work otherwise complies with
-      the conditions stated in this License.
-
-   5. Submission of Contributions. Unless You explicitly state otherwise,
-      any Contribution intentionally submitted for inclusion in the Work
-      by You to the Licensor shall be under the terms and conditions of
-      this License, without any additional terms or conditions.
-      Notwithstanding the above, nothing herein shall supersede or modify
-      the terms of any separate license agreement you may have executed
-      with Licensor regarding such Contributions.
-
-   6. Trademarks. This License does not grant permission to use the trade
-      names, trademarks, service marks, or product names of the Licensor,
-      except as required for reasonable and customary use in describing the
-      origin of the Work and reproducing the content of the NOTICE file.
-
-   7. Disclaimer of Warranty. Unless required by applicable law or
-      agreed to in writing, Licensor provides the Work (and each
-      Contributor provides its Contributions) on an "AS IS" BASIS,
-      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
-      implied, including, without limitation, any warranties or conditions
-      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
-      PARTICULAR PURPOSE. You are solely responsible for determining the
-      appropriateness of using or redistributing the Work and assume any
-      risks associated with Your exercise of permissions under this License.
-
-   8. Limitation of Liability. In no event and under no legal theory,
-      whether in tort (including negligence), contract, or otherwise,
-      unless required by applicable law (such as deliberate and grossly
-      negligent acts) or agreed to in writing, shall any Contributor be
-      liable to You for damages, including any direct, indirect, special,
-      incidental, or consequential damages of any character arising as a
-      result of this License or out of the use or inability to use the
-      Work (including but not limited to damages for loss of goodwill,
-      work stoppage, computer failure or malfunction, or any and all
-      other commercial damages or losses), even if such Contributor
-      has been advised of the possibility of such damages.
-
-   9. Accepting Warranty or Additional Liability. While redistributing
-      the Work or Derivative Works thereof, You may choose to offer,
-      and charge a fee for, acceptance of support, warranty, indemnity,
-      or other liability obligations and/or rights consistent with this
-      License. However, in accepting such obligations, You may act only
-      on Your own behalf and on Your sole responsibility, not on behalf
-      of any other Contributor, and only if You agree to indemnify,
-      defend, and hold each Contributor harmless for any liability
-      incurred by, or claims asserted against, such Contributor by reason
-      of your accepting any such warranty or additional liability.
-
-   END OF TERMS AND CONDITIONS
-
-   APPENDIX: How to apply the Apache License to your work.
-
-      To apply the Apache License to your work, attach the following
-      boilerplate notice, with the fields enclosed by brackets "[]"
-      replaced with your own identifying information. (Don't include
-      the brackets!)  The text should be enclosed in the appropriate
-      comment syntax for the file format. We also recommend that a
-      file or class name and description of purpose be included on the
-      same "printed page" as the copyright notice for easier
-      identification within third-party archives.
-
-   Copyright [yyyy] [name of copyright owner]
-
-   Licensed under the Apache License, Version 2.0 (the "License");
-   you may not use this file except in compliance with the License.
-   You may obtain a copy of the License at
-
-       http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
diff --git a/oas-validator/distribution/pom.xml b/oas-validator/distribution/pom.xml
deleted file mode 100755
index 2e7cf98..0000000
--- a/oas-validator/distribution/pom.xml
+++ /dev/null
@@ -1,107 +0,0 @@
-<?xml version="1.0"?>
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one or more
-  ~ contributor license agreements.  See the NOTICE file distributed with
-  ~ this work for additional information regarding copyright ownership.
-  ~ The ASF licenses this file to You under the Apache License, Version 2.0
-  ~ (the "License"); you may not use this file except in compliance with
-  ~ the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing, software
-  ~ distributed under the License is distributed on an "AS IS" BASIS,
-  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-  ~ See the License for the specific language governing permissions and
-  ~ limitations under the License.
-  -->
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
-  <modelVersion>4.0.0</modelVersion>
-  <parent>
-    <groupId>org.apache.servicecomb.toolkit</groupId>
-    <artifactId>oas-validator-parent</artifactId>
-    <version>0.2.0-SNAPSHOT</version>
-  </parent>
-  <artifactId>oas-validator-distribution</artifactId>
-  <packaging>pom</packaging>
-  <dependencies>
-    <dependency>
-      <groupId>org.apache.servicecomb.toolkit</groupId>
-      <artifactId>oas-validator-core</artifactId>
-      <version>0.2.0-SNAPSHOT</version>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.servicecomb.toolkit</groupId>
-      <artifactId>oas-validator-core-spring</artifactId>
-      <version>0.2.0-SNAPSHOT</version>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.servicecomb.toolkit</groupId>
-      <artifactId>oas-validator-test</artifactId>
-      <version>0.2.0-SNAPSHOT</version>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.servicecomb.toolkit</groupId>
-      <artifactId>oas-validator-compliance</artifactId>
-      <version>0.2.0-SNAPSHOT</version>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.servicecomb.toolkit</groupId>
-      <artifactId>oas-validator-compliance-spring</artifactId>
-      <version>0.2.0-SNAPSHOT</version>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.servicecomb.toolkit</groupId>
-      <artifactId>oas-validator-compatibility</artifactId>
-      <version>0.2.0-SNAPSHOT</version>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.servicecomb.toolkit</groupId>
-      <artifactId>oas-validator-compatibility-spring</artifactId>
-      <version>0.2.0-SNAPSHOT</version>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.servicecomb.toolkit</groupId>
-      <artifactId>oas-validator-web</artifactId>
-      <version>0.2.0-SNAPSHOT</version>
-    </dependency>
-  </dependencies>
-  <profiles>
-    <profile>
-      <id>release</id>
-      <build>
-        <plugins>
-          <plugin>
-            <artifactId>maven-assembly-plugin</artifactId>
-            <executions>
-              <execution>
-                <id>bin</id>
-                <phase>package</phase>
-                <goals>
-                  <goal>single</goal>
-                </goals>
-                <configuration>
-                  <descriptors>
-                    <descriptor>src/assembly/bin.xml</descriptor>
-                  </descriptors>
-                </configuration>
-              </execution>
-              <execution>
-                <id>src</id>
-                <phase>package</phase>
-                <goals>
-                  <goal>single</goal>
-                </goals>
-                <configuration>
-                  <descriptors>
-                    <descriptor>src/assembly/src.xml</descriptor>
-                  </descriptors>
-                </configuration>
-              </execution>
-            </executions>
-          </plugin>
-        </plugins>
-      </build>
-    </profile>
-  </profiles>
-</project>
diff --git a/oas-validator/distribution/src/assembly/bin.xml b/oas-validator/distribution/src/assembly/bin.xml
deleted file mode 100755
index cb908a3..0000000
--- a/oas-validator/distribution/src/assembly/bin.xml
+++ /dev/null
@@ -1,65 +0,0 @@
-<!--
-  ~ Licensed to the Apache Software Foundation (ASF) under one or more
-  ~ contributor license agreements.  See the NOTICE file distributed with
-  ~ this work for additional information regarding copyright ownership.
-  ~ The ASF licenses this file to You under the Apache License, Version 2.0
-  ~ (the "License"); you may not use this file except in compliance with
-  ~ the License.  You may obtain a copy of the License at
-  ~
-  ~     http://www.apache.org/licenses/LICENSE-2.0
-  ~
-  ~ Unless required by applicable law or agreed to in writing, software
-  ~ distributed under the License is distributed on an "AS IS" BASIS,
-  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-  ~ See the License for the specific language governing permissions and
-  ~ limitations under the License.
-  -->
-
-<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-    xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
-    <includeBaseDirectory>true</includeBaseDirectory>
-    <baseDirectory>${project.build.finalName}-bin</baseDirectory>
-    <id>bin</id>
-    <formats>
-        <format>zip</format>
-    </formats>
-    <fileSets>
-        <fileSet>
-            <directory>../doc</directory>
-            <outputDirectory>/doc</outputDirectory>
-        </fileSet>
-        <fileSet>
-            <directory>../</directory>
-            <outputDirectory>/</outputDirectory>
-            <includes>
-                <include>README.md</include>
-            </includes>
-        </fileSet>
-        <!-- include the LICENSE file from release directory -->
-        <fileSet>
-            <directory>src/release</directory>
-            <outputDirectory>/</outputDirectory>
-            <includes>
-                <include>LICENSE</include>
-                <include>licenses/**</include>
-            </includes>
-        </fileSet>
-        <!-- include alpha server exec into bin directory -->
-        <fileSet>
-            <directory>../oas-validator-web//target</directory>
-            <outputDirectory>/</outputDirectory>
-            <includes>
-                <include>oas-validator-web-exec.jar</include>
-            </includes>
-            <fileMode>0755</fileMode>
-        </fileSet>
-    </fileSets>
-    <dependencySets>
-        <dependencySet>
-            <useProjectArtifact>true</useProjectArtifact>
-            <unpack>false</unpack>
-            <outputDirectory>/libs</outputDirectory>
-            <scope>runtime</scope>
-        </dependencySet>
-    </dependencySets>
-</assembly>
diff --git a/oas-validator/distribution/src/assembly/src.xml b/oas-validator/distribution/src/assembly/src.xml
deleted file mode 100755
index b365db5..0000000
--- a/oas-validator/distribution/src/assembly/src.xml
+++ /dev/null
@@ -1,66 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-
-    Licensed to the Apache Software Foundation (ASF) under one or more
-    contributor license agreements.  See the NOTICE file distributed with
-    this work for additional information regarding copyright ownership.
-    The ASF licenses this file to You under the Apache License, Version 2.0
-    (the "License"); you may not use this file except in compliance with
-    the License.  You may obtain a copy of the License at
-
-         http://www.apache.org/licenses/LICENSE-2.0
-
-    Unless required by applicable law or agreed to in writing, software
-    distributed under the License is distributed on an "AS IS" BASIS,
-    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-    See the License for the specific language governing permissions and
-    limitations under the License.
-
--->
-<assembly>
-  <id>src</id>
-  <formats>
-    <format>zip</format>
-  </formats>
-  <includeBaseDirectory>true</includeBaseDirectory>
-  <baseDirectory>${project.build.finalName}-src</baseDirectory>
-  <fileSets>
-    <!-- Binary Files -->
-    <fileSet>
-      <directory>..</directory>
-      <outputDirectory></outputDirectory>
-      <includes>
-        <include>**/*</include>
-      </includes>
-      <!-- excludes the binary files -->
-      <excludes>
-        <!-- exclude the mvn wrapper in the source artifact -->
-        <exclude>Jenkinsfile</exclude>
-        <exclude>mvnw*</exclude>
-        <exclude>.mvn/**</exclude>
-
-        <exclude>**/eclipse-classes/**</exclude>
-        <exclude>**/target/**</exclude>
-        <exclude>**/build/**</exclude>
-        <exclude>**/eclipse-classes/**</exclude>
-        <exclude>**/.*</exclude>
-        <exclude>**/.*/**</exclude>
-        <exclude>*.enc</exclude>
-        <exclude>*.gpg</exclude>
-        <exclude>random_seed</exclude>
-        <exclude>**/surefire*</exclude>
-        <exclude>**/svn-commit*</exclude>
-
-        <exclude>**/.idea/**</exclude>
-        <exclude>**/*.iml</exclude>
-        <exclude>**/*.ipr</exclude>
-        <exclude>**/*.iws</exclude>
-
-        <exclude>**/cobertura.ser</exclude>
-
-        <exclude>**/node_modules/**</exclude>
-      </excludes>
-    </fileSet>
-
-  </fileSets>
-</assembly>
diff --git a/oas-validator/distribution/src/release/LICENSE b/oas-validator/distribution/src/release/LICENSE
deleted file mode 100755
index d649bec..0000000
--- a/oas-validator/distribution/src/release/LICENSE
+++ /dev/null
@@ -1,437 +0,0 @@
-                                 Apache License
-                           Version 2.0, January 2004
-                        http://www.apache.org/licenses/
-
-   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
-   1. Definitions.
-
-      "License" shall mean the terms and conditions for use, reproduction,
-      and distribution as defined by Sections 1 through 9 of this document.
-
-      "Licensor" shall mean the copyright owner or entity authorized by
-      the copyright owner that is granting the License.
-
-      "Legal Entity" shall mean the union of the acting entity and all
-      other entities that control, are controlled by, or are under common
-      control with that entity. For the purposes of this definition,
-      "control" means (i) the power, direct or indirect, to cause the
-      direction or management of such entity, whether by contract or
-      otherwise, or (ii) ownership of fifty percent (50%) or more of the
-      outstanding shares, or (iii) beneficial ownership of such entity.
-
-      "You" (or "Your") shall mean an individual or Legal Entity
-      exercising permissions granted by this License.
-
-      "Source" form shall mean the preferred form for making modifications,
-      including but not limited to software source code, documentation
-      source, and configuration files.
-
-      "Object" form shall mean any form resulting from mechanical
-      transformation or translation of a Source form, including but
-      not limited to compiled object code, generated documentation,
-      and conversions to other media types.
-
-      "Work" shall mean the work of authorship, whether in Source or
-      Object form, made available under the License, as indicated by a
-      copyright notice that is included in or attached to the work
-      (an example is provided in the Appendix below).
-
-      "Derivative Works" shall mean any work, whether in Source or Object
-      form, that is based on (or derived from) the Work and for which the
-      editorial revisions, annotations, elaborations, or other modifications
-      represent, as a whole, an original work of authorship. For the purposes
-      of this License, Derivative Works shall not include works that remain
-      separable from, or merely link (or bind by name) to the interfaces of,
-      the Work and Derivative Works thereof.
-
-      "Contribution" shall mean any work of authorship, including
-      the original version of the Work and any modifications or additions
-      to that Work or Derivative Works thereof, that is intentionally
-      submitted to Licensor for inclusion in the Work by the copyright owner
-      or by an individual or Legal Entity authorized to submit on behalf of
-      the copyright owner. For the purposes of this definition, "submitted"
-      means any form of electronic, verbal, or written communication sent
-      to the Licensor or its representatives, including but not limited to
-      communication on electronic mailing lists, source code control systems,
-      and issue tracking systems that are managed by, or on behalf of, the
-      Licensor for the purpose of discussing and improving the Work, but
-      excluding communication that is conspicuously marked or otherwise
-      designated in writing by the copyright owner as "Not a Contribution."
-
-      "Contributor" shall mean Licensor and any individual or Legal Entity
-      on behalf of whom a Contribution has been received by Licensor and
-      subsequently incorporated within the Work.
-
-   2. Grant of Copyright License. Subject to the terms and conditions of
-      this License, each Contributor hereby grants to You a perpetual,
-      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
-      copyright license to reproduce, prepare Derivative Works of,
-      publicly display, publicly perform, sublicense, and distribute the
-      Work and such Derivative Works in Source or Object form.
-
-   3. Grant of Patent License. Subject to the terms and conditions of
-      this License, each Contributor hereby grants to You a perpetual,
-      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
-      (except as stated in this section) patent license to make, have made,
-      use, offer to sell, sell, import, and otherwise transfer the Work,
-      where such license applies only to those patent claims licensable
-      by such Contributor that are necessarily infringed by their
-      Contribution(s) alone or by combination of their Contribution(s)
-      with the Work to which such Contribution(s) was submitted. If You
-      institute patent litigation against any entity (including a
-      cross-claim or counterclaim in a lawsuit) alleging that the Work
-      or a Contribution incorporated within the Work constitutes direct
-      or contributory patent infringement, then any patent licenses
-      granted to You under this License for that Work shall terminate
-      as of the date such litigation is filed.
-
-   4. Redistribution. You may reproduce and distribute copies of the
-      Work or Derivative Works thereof in any medium, with or without
-      modifications, and in Source or Object form, provided that You
-      meet the following conditions:
-
-      (a) You must give any other recipients of the Work or
-          Derivative Works a copy of this License; and
-
-      (b) You must cause any modified files to carry prominent notices
-          stating that You changed the files; and
-
-      (c) You must retain, in the Source form of any Derivative Works
-          that You distribute, all copyright, patent, trademark, and
-          attribution notices from the Source form of the Work,
-          excluding those notices that do not pertain to any part of
-          the Derivative Works; and
-
-      (d) If the Work includes a "NOTICE" text file as part of its
-          distribution, then any Derivative Works that You distribute must
-          include a readable copy of the attribution notices contained
-          within such NOTICE file, excluding those notices that do not
-          pertain to any part of the Derivative Works, in at least one
-          of the following places: within a NOTICE text file distributed
-          as part of the Derivative Works; within the Source form or
-          documentation, if provided along with the Derivative Works; or,
-          within a display generated by the Derivative Works, if and
-          wherever such third-party notices normally appear. The contents
-          of the NOTICE file are for informational purposes only and
-          do not modify the License. You may add Your own attribution
-          notices within Derivative Works that You distribute, alongside
-          or as an addendum to the NOTICE text from the Work, provided
-          that such additional attribution notices cannot be construed
-          as modifying the License.
-
-      You may add Your own copyright statement to Your modifications and
-      may provide additional or different license terms and conditions
-      for use, reproduction, or distribution of Your modifications, or
-      for any such Derivative Works as a whole, provided Your use,
-      reproduction, and distribution of the Work otherwise complies with
-      the conditions stated in this License.
-
-   5. Submission of Contributions. Unless You explicitly state otherwise,
-      any Contribution intentionally submitted for inclusion in the Work
-      by You to the Licensor shall be under the terms and conditions of
-      this License, without any additional terms or conditions.
-      Notwithstanding the above, nothing herein shall supersede or modify
-      the terms of any separate license agreement you may have executed
-      with Licensor regarding such Contributions.
-
-   6. Trademarks. This License does not grant permission to use the trade
-      names, trademarks, service marks, or product names of the Licensor,
-      except as required for reasonable and customary use in describing the
-      origin of the Work and reproducing the content of the NOTICE file.
-
-   7. Disclaimer of Warranty. Unless required by applicable law or
-      agreed to in writing, Licensor provides the Work (and each
-      Contributor provides its Contributions) on an "AS IS" BASIS,
-      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
-      implied, including, without limitation, any warranties or conditions
-      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
-      PARTICULAR PURPOSE. You are solely responsible for determining the
-      appropriateness of using or redistributing the Work and assume any
-      risks associated with Your exercise of permissions under this License.
-
-   8. Limitation of Liability. In no event and under no legal theory,
-      whether in tort (including negligence), contract, or otherwise,
-      unless required by applicable law (such as deliberate and grossly
-      negligent acts) or agreed to in writing, shall any Contributor be
-      liable to You for damages, including any direct, indirect, special,
-      incidental, or consequential damages of any character arising as a
-      result of this License or out of the use or inability to use the
-      Work (including but not limited to damages for loss of goodwill,
-      work stoppage, computer failure or malfunction, or any and all
-      other commercial damages or losses), even if such Contributor
-      has been advised of the possibility of such damages.
-
-   9. Accepting Warranty or Additional Liability. While redistributing
-      the Work or Derivative Works thereof, You may choose to offer,
-      and charge a fee for, acceptance of support, warranty, indemnity,
-      or other liability obligations and/or rights consistent with this
-      License. However, in accepting such obligations, You may act only
-      on Your own behalf and on Your sole responsibility, not on behalf
-      of any other Contributor, and only if You agree to indemnify,
-      defend, and hold each Contributor harmless for any liability
-      incurred by, or claims asserted against, such Contributor by reason
-      of your accepting any such warranty or additional liability.
-
-   END OF TERMS AND CONDITIONS
-
-   APPENDIX: How to apply the Apache License to your work.
-
-      To apply the Apache License to your work, attach the following
-      boilerplate notice, with the fields enclosed by brackets "[]"
-      replaced with your own identifying information. (Don't include
-      the brackets!)  The text should be enclosed in the appropriate
-      comment syntax for the file format. We also recommend that a
-      file or class name and description of purpose be included on the
-      same "printed page" as the copyright notice for easier
-      identification within third-party archives.
-
-   Copyright [yyyy] [name of copyright owner]
-
-   Licensed under the Apache License, Version 2.0 (the "License");
-   you may not use this file except in compliance with the License.
-   You may obtain a copy of the License at
-
-       http://www.apache.org/licenses/LICENSE-2.0
-
-   Unless required by applicable law or agreed to in writing, software
-   distributed under the License is distributed on an "AS IS" BASIS,
-   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-   See the License for the specific language governing permissions and
-   limitations under the License.
-
-================================================================
-This product bundles the following libraries which are licensed
-under the Apache License v2.
-For details, see their respective project links.
-
-* Apache Commons Codec (commons-codec:commons-codec:1.9 - http://commons.apache.org/proper/commons-codec/)
-* Apache Commons Collections (org.apache.commons:commons-collections4:4.3 - http://commons.apache.org/proper/commons-collections/)
-* Apache Commons Lang (org.apache.commons:commons-lang3:3.8.1 - http://commons.apache.org/proper/commons-lang/)
-* Apache Commons Logging (commons-logging:commons-logging:1.2 - http://commons.apache.org/proper/commons-logging/)
-* Apache HttpClient (org.apache.httpcomponents:httpclient:4.5.2 - http://hc.apache.org/httpcomponents-client)
-* Apache HttpCore (org.apache.httpcomponents:httpcore:4.4.4 - http://hc.apache.org/httpcomponents-core-ga)
-* Apache Log4j API (org.apache.logging.log4j:log4j-api:2.11.2 - https://logging.apache.org/log4j/2.x/log4j-api/)
-* Apache Log4j to SLF4J Adapter (org.apache.logging.log4j:log4j-to-slf4j:2.11.2 - https://logging.apache.org/log4j/2.x/log4j-to-slf4j/)
-* ASM based accessors helper used by json-smart (net.minidev:accessors-smart:1.2 - http://www.minidev.net/)
-* AssertJ fluent assertions (org.assertj:assertj-core:3.11.1 - http://assertj.org/assertj-core)
-* attoparser (org.attoparser:attoparser:2.0.5.RELEASE - http://www.attoparser.org)
-* Bean Validation API (javax.validation:validation-api:1.1.0.Final - http://beanvalidation.org)
-* Bean Validation API (javax.validation:validation-api:2.0.1.Final - http://beanvalidation.org)
-* Bootstrap (org.webjars:bootstrap:4.3.1 - http://webjars.org)
-* Byte Buddy (without dependencies) (net.bytebuddy:byte-buddy:1.9.3 - http://bytebuddy.net/byte-buddy)
-* Byte Buddy Java agent (net.bytebuddy:byte-buddy-agent:1.9.3 - http://bytebuddy.net/byte-buddy-agent)
-* ClassMate (com.fasterxml:classmate:1.3.4 - http://github.com/FasterXML/java-classmate)
-* Commons IO (commons-io:commons-io:2.4 - http://commons.apache.org/io/)
-* error-prone annotations (com.google.errorprone:error_prone_annotations:2.2.0 - http://nexus.sonatype.org/oss-repository-hosting.html/error_prone_parent/error_prone_annotations)
-* FindBugs-jsr305 (com.google.code.findbugs:jsr305:3.0.1 - http://findbugs.sourceforge.net/)
-* Guava: Google Core Libraries for Java (com.google.guava:guava:27.0.1-android - https://github.com/google/guava/guava)
-* Guava InternalFutureFailureAccess and InternalFutures (com.google.guava:failureaccess:1.0.1 - https://github.com/google/guava/failureaccess)
-* Guava ListenableFuture only (com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava - https://github.com/google/guava/listenablefuture)
-* Hibernate Validator Engine (org.hibernate.validator:hibernate-validator:6.0.16.Final - http://hibernate.org/validator/hibernate-validator)
-* J2ObjC Annotations (com.google.j2objc:j2objc-annotations:1.1 - https://github.com/google/j2objc/)
-* Jackson-annotations (com.fasterxml.jackson.core:jackson-annotations:2.9.0 - http://github.com/FasterXML/jackson)
-* Jackson-annotations (com.fasterxml.jackson.core:jackson-annotations:2.9.8 - http://github.com/FasterXML/jackson)
-* Jackson-core (com.fasterxml.jackson.core:jackson-core:2.9.8 - https://github.com/FasterXML/jackson-core)
-* jackson-databind (com.fasterxml.jackson.core:jackson-databind:2.9.8 - http://github.com/FasterXML/jackson)
-* Jackson-dataformat-YAML (com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.9.8 - https://github.com/FasterXML/jackson-dataformats-text)
-* Jackson datatype: jdk8 (com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.9.8 - https://github.com/FasterXML/jackson-modules-java8/jackson-datatype-jdk8)
-* Jackson datatype: JSR310 (com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.9.8 - https://github.com/FasterXML/jackson-modules-java8/jackson-datatype-jsr310)
-* Jackson-module-parameter-names (com.fasterxml.jackson.module:jackson-module-parameter-names:2.9.8 - https://github.com/FasterXML/jackson-modules-java8/jackson-module-parameter-names)
-* JBoss Logging 3 (org.jboss.logging:jboss-logging:3.3.2.Final - http://www.jboss.org)
-* Joda-Time (joda-time:joda-time:2.9.7 - http://www.joda.org/joda-time/)
-* JSONassert (org.skyscreamer:jsonassert:1.5.0 - https://github.com/skyscreamer/JSONassert)
-* JSON library from Android SDK (com.vaadin.external.google:android-json:0.0.20131108.vaadin1 - http://developer.android.com/sdk)
-* JSON Small and Fast Parser (net.minidev:json-smart:2.3 - http://www.minidev.net/)
-* libphonenumber (com.googlecode.libphonenumber:libphonenumber:8.0.0 - https://github.com/googlei18n/libphonenumber/)
-* micrometer-core (io.micrometer:micrometer-core:1.1.4 - https://github.com/micrometer-metrics/micrometer)
-* oas-validator-compatibility (org.apache.servicecomb.toolkit:oas-validator-compatibility:0.2.0-SNAPSHOT - no url defined)
-* oas-validator-compatibility-spring (org.apache.servicecomb.toolkit:oas-validator-compatibility-spring:0.2.0-SNAPSHOT - no url defined)
-* oas-validator-compliance (org.apache.servicecomb.toolkit:oas-validator-compliance:0.2.0-SNAPSHOT - no url defined)
-* oas-validator-compliance-spring (org.apache.servicecomb.toolkit:oas-validator-compliance-spring:0.2.0-SNAPSHOT - no url defined)
-* oas-validator-core (org.apache.servicecomb.toolkit:oas-validator-core:0.2.0-SNAPSHOT - no url defined)
-* oas-validator-core-spring (org.apache.servicecomb.toolkit:oas-validator-core-spring:0.2.0-SNAPSHOT - no url defined)
-* oas-validator-test (org.apache.servicecomb.toolkit:oas-validator-test:0.2.0-SNAPSHOT - no url defined)
-* Objenesis (org.objenesis:objenesis:2.6 - http://objenesis.org)
-* org.xmlunit:xmlunit-core (org.xmlunit:xmlunit-core:2.6.2 - https://www.xmlunit.org/)
-* project ':json-path' (com.jayway.jsonpath:json-path:2.4.0 - https://github.com/jayway/JsonPath)
-* SnakeYAML (org.yaml:snakeyaml:1.23 - http://www.snakeyaml.org)
-* Spring AOP (org.springframework:spring-aop:5.1.6.RELEASE - https://github.com/spring-projects/spring-framework)
-* Spring Beans (org.springframework:spring-beans:5.1.6.RELEASE - https://github.com/spring-projects/spring-framework)
-* Spring Boot (org.springframework.boot:spring-boot:2.1.4.RELEASE - https://projects.spring.io/spring-boot/#/spring-boot-parent/spring-boot)
-* Spring Boot Actuator (org.springframework.boot:spring-boot-actuator:2.1.4.RELEASE - https://projects.spring.io/spring-boot/#/spring-boot-parent/spring-boot-actuator)
-* Spring Boot Actuator AutoConfigure (org.springframework.boot:spring-boot-actuator-autoconfigure:2.1.4.RELEASE - https://projects.spring.io/spring-boot/#/spring-boot-parent/spring-boot-actuator-autoconfigure)
-* Spring Boot Actuator Starter (org.springframework.boot:spring-boot-starter-actuator:2.1.4.RELEASE - https://projects.spring.io/spring-boot/#/spring-boot-parent/spring-boot-starters/spring-boot-starter-actuator)
-* Spring Boot AutoConfigure (org.springframework.boot:spring-boot-autoconfigure:2.1.4.RELEASE - https://projects.spring.io/spring-boot/#/spring-boot-parent/spring-boot-autoconfigure)
-* Spring Boot Json Starter (org.springframework.boot:spring-boot-starter-json:2.1.4.RELEASE - https://projects.spring.io/spring-boot/#/spring-boot-parent/spring-boot-starters/spring-boot-starter-json)
-* Spring Boot Logging Starter (org.springframework.boot:spring-boot-starter-logging:2.1.4.RELEASE - https://projects.spring.io/spring-boot/#/spring-boot-parent/spring-boot-starters/spring-boot-starter-logging)
-* Spring Boot Starter (org.springframework.boot:spring-boot-starter:2.1.4.RELEASE - https://projects.spring.io/spring-boot/#/spring-boot-parent/spring-boot-starters/spring-boot-starter)
-* Spring Boot Test (org.springframework.boot:spring-boot-test:2.1.4.RELEASE - https://projects.spring.io/spring-boot/#/spring-boot-parent/spring-boot-test)
-* Spring Boot Test Auto-Configure (org.springframework.boot:spring-boot-test-autoconfigure:2.1.4.RELEASE - https://projects.spring.io/spring-boot/#/spring-boot-parent/spring-boot-test-autoconfigure)
-* Spring Boot Test Starter (org.springframework.boot:spring-boot-starter-test:2.1.4.RELEASE - https://projects.spring.io/spring-boot/#/spring-boot-parent/spring-boot-starters/spring-boot-starter-test)
-* Spring Boot Thymeleaf Starter (org.springframework.boot:spring-boot-starter-thymeleaf:2.1.4.RELEASE - https://projects.spring.io/spring-boot/#/spring-boot-parent/spring-boot-starters/spring-boot-starter-thymeleaf)
-* Spring Boot Tomcat Starter (org.springframework.boot:spring-boot-starter-tomcat:2.1.4.RELEASE - https://projects.spring.io/spring-boot/#/spring-boot-parent/spring-boot-starters/spring-boot-starter-tomcat)
-* Spring Boot Web Starter (org.springframework.boot:spring-boot-starter-web:2.1.4.RELEASE - https://projects.spring.io/spring-boot/#/spring-boot-parent/spring-boot-starters/spring-boot-starter-web)
-* Spring Commons Logging Bridge (org.springframework:spring-jcl:5.1.6.RELEASE - https://github.com/spring-projects/spring-framework)
-* Spring Context (org.springframework:spring-context:5.1.6.RELEASE - https://github.com/spring-projects/spring-framework)
-* Spring Core (org.springframework:spring-core:5.1.6.RELEASE - https://github.com/spring-projects/spring-framework)
-* Spring Expression Language (SpEL) (org.springframework:spring-expression:5.1.6.RELEASE - https://github.com/spring-projects/spring-framework)
-* Spring TestContext Framework (org.springframework:spring-test:5.1.6.RELEASE - https://github.com/spring-projects/spring-framework)
-* Spring Web (org.springframework:spring-web:5.1.6.RELEASE - https://github.com/spring-projects/spring-framework)
-* Spring Web MVC (org.springframework:spring-webmvc:5.1.6.RELEASE - https://github.com/spring-projects/spring-framework)
-* swagger-annotations (io.swagger:swagger-annotations:1.5.22 - https://github.com/swagger-api/swagger-core/modules/swagger-annotations)
-* swagger-annotations (io.swagger.core.v3:swagger-annotations:2.0.8 - https://github.com/swagger-api/swagger-core/modules/swagger-annotations)
-* swagger-compat-spec-parser (io.swagger:swagger-compat-spec-parser:1.0.44 - http://nexus.sonatype.org/oss-repository-hosting.html/swagger-parser-project/modules/swagger-compat-spec-parser)
-* swagger-core (io.swagger:swagger-core:1.5.22 - https://github.com/swagger-api/swagger-core/modules/swagger-core)
-* swagger-core (io.swagger.core.v3:swagger-core:2.0.8 - https://github.com/swagger-api/swagger-core/modules/swagger-core)
-* swagger-models (io.swagger:swagger-models:1.5.22 - https://github.com/swagger-api/swagger-core/modules/swagger-models)
-* swagger-models (io.swagger.core.v3:swagger-models:2.0.8 - https://github.com/swagger-api/swagger-core/modules/swagger-models)
-* swagger-parser (io.swagger:swagger-parser:1.0.44 - http://nexus.sonatype.org/oss-repository-hosting.html/swagger-parser-project/modules/swagger-parser)
-* swagger-parser (io.swagger.parser.v3:swagger-parser:2.0.12 - http://nexus.sonatype.org/oss-repository-hosting.html/swagger-parser-project/modules/swagger-parser)
-* swagger-parser (io.swagger.parser.v3:swagger-parser-core:2.0.12 - http://nexus.sonatype.org/oss-repository-hosting.html/swagger-parser-project/modules/swagger-parser-core)
-* swagger-parser-v2-converter (io.swagger.parser.v3:swagger-parser-v2-converter:2.0.12 - http://nexus.sonatype.org/oss-repository-hosting.html/swagger-parser-project/modules/swagger-parser-v2-converter)
-* swagger-parser-v3 (io.swagger.parser.v3:swagger-parser-v3:2.0.12 - http://nexus.sonatype.org/oss-repository-hosting.html/swagger-parser-project/modules/swagger-parser-v3)
-* thymeleaf (org.thymeleaf:thymeleaf:3.0.11.RELEASE - http://www.thymeleaf.org)
-* thymeleaf-extras-java8time (org.thymeleaf.extras:thymeleaf-extras-java8time:3.0.4.RELEASE - http://www.thymeleaf.org)
-* thymeleaf-spring5 (org.thymeleaf:thymeleaf-spring5:3.0.11.RELEASE - http://www.thymeleaf.org)
-* tomcat-embed-core (org.apache.tomcat.embed:tomcat-embed-core:9.0.17 - https://tomcat.apache.org/)
-* tomcat-embed-el (org.apache.tomcat.embed:tomcat-embed-el:9.0.17 - https://tomcat.apache.org/)
-* tomcat-embed-websocket (org.apache.tomcat.embed:tomcat-embed-websocket:9.0.17 - https://tomcat.apache.org/)
-* unbescape (org.unbescape:unbescape:1.1.6.RELEASE - http://www.unbescape.org)
-* json-schema-core (com.github.java-json-tools:json-schema-core:1.2.8 - https://github.com/java-json-tools/json-schema-core)
-* json-schema-validator (com.github.java-json-tools:json-schema-validator:2.2.8 - https://github.com/box-metadata/json-schema-validator)
-* com.github.fge:btf (com.github.fge:btf:1.2 - https://github.com/fge/btf)
-* com.github.fge:jackson-coreutils (com.github.fge:jackson-coreutils:1.6 - https://github.com/fge/jackson-coreutils)
-* com.github.fge:json-patch (com.github.fge:json-patch:1.6 - https://github.com/fge/json-patch)
-* com.github.fge:msg-simple (com.github.fge:msg-simple:1.1 - https://github.com/fge/msg-simple)
-* com.github.fge:uri-template (com.github.fge:uri-template:0.9 - https://github.com/fge/uri-template)
-
-===========================================================================
-This product bundles JavaBeans Activation Framework which are licensed under the
-COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) v1.0.
-For details, see http://java.sun.com/products/javabeans/jaf/index.jsp
-You can find a copy of the License at licenses/LICENSE-cddl-v10
-
-* JavaBeans Activation Framework (JAF) (javax.activation:activation:1.1 - http://java.sun.com/products/javabeans/jaf/index.jsp)
-
-===========================================================================
-This product bundles the following libraries which are licensed under the
-CDDL + GPLv2 with classpath exception.
-For details, see their respective project links.
-You can find a copy of the License at licenses/LICENSE-cddl-gplv2
-
-* javax.annotation API (javax.annotation:javax.annotation-api:1.3.2 - http://jcp.org/en/jsr/detail?id=250)
-* jaxb-api (javax.xml.bind:jaxb-api:2.3.0 - https://github.com/javaee/jaxb-spec/jaxb-api)
-* JavaMail API jar (javax.mail:mailapi:1.4.3 - http://java.sun.com/projects/javamail/mailapi)
-
-===========================================================================
-This product bundles Mozilla Rhino which is licensed under the
-Mozilla Public License, Version 2.0.
-For details, see https://developer.mozilla.org/en/Rhino
-You can find a copy of the License at licenses/LICENSE-mpl-v20
-
-* Mozilla Rhino (org.mozilla:rhino:1.7R4 - https://developer.mozilla.org/en/Rhino)
-
-===========================================================================
-This product bundles Webjars which is licensed under the
-MIT License.
-For details, see their respective project links.
-You can find a copy of the License at licenses/LICENSE-webjars
-
-* Popper.js (org.webjars:popper.js:1.14.3 - http://webjars.org)
-* jquery (org.webjars:jquery:3.0.0 - http://webjars.org)
-
-===========================================================================
-This product bundles Animal Sniffer Annotations which is licensed under the
-MIT License.
-For details, see http://www.mojohaus.org/animal-sniffer/animal-sniffer-annotations
-You can find a copy of the License at licenses/LICENSE-mit-unknown
-
-* Animal Sniffer Annotations (org.codehaus.mojo:animal-sniffer-annotations:1.17 - http://www.mojohaus.org/animal-sniffer/animal-sniffer-annotations)
-
-===========================================================================
-This product bundles Checker Qual which is licensed under the
-MIT License.
-For details, see https://checkerframework.org
-You can find a copy of the License at licenses/LICENSE-mit-unknown
-
-* Checker Qual (org.checkerframework:checker-compat-qual:2.5.2 - https://checkerframework.org)
-
-===========================================================================
-This product bundles Mockito which is licensed under the
-MIT License.
-For details, see https://github.com/mockito/mockito
-You can find a copy of the License at licenses/LICENSE-mockito
-
-* mockito-core (org.mockito:mockito-core:2.23.4 - https://github.com/mockito/mockito)
-
-===========================================================================
-This product bundles SLF4J which is licensed under the
-MIT License.
-For details, see http://www.slf4j.org
-You can find a copy of the License at licenses/LICENSE-slf4j
-
-* JUL to SLF4J bridge (org.slf4j:jul-to-slf4j:1.7.26 - http://www.slf4j.org)
-* SLF4J API Module (org.slf4j:slf4j-api:1.6.3 - http://www.slf4j.org)
-* SLF4J API Module (org.slf4j:slf4j-api:1.7.25 - http://www.slf4j.org)
-* SLF4J Extensions Module (org.slf4j:slf4j-ext:1.6.3 - http://www.slf4j.org)
-
-===========================================================================
-This product bundles Project Lombok which is licensed under the
-MIT License.
-For details, see https://projectlombok.org
-You can find a copy of the License at licenses/LICENSE-lombok
-
-* Project Lombok (org.projectlombok:lombok:1.18.6 - https://projectlombok.org)
-
-===========================================================================
-This product bundles JOpt Simple which is licensed under the
-MIT License.
-For details, see http://pholser.github.io/jopt-simple
-You can find a copy of the License at licenses/LICENSE-jopt
-
-* JOpt Simple (net.sf.jopt-simple:jopt-simple:5.0.3 - http://pholser.github.io/jopt-simple)
-
-===========================================================================
-This product bundles CAL10N which is licensed under the
-MIT License.
-For details, see http://cal10n.qos.ch/cal10n-api
-You can find a copy of the License at licenses/LICENSE-qos
-
-* Compiler assisted localization library (CAL10N) -    API (ch.qos.cal10n:cal10n-api:0.7.4 - http://cal10n.qos.ch/cal10n-api)
-
-===========================================================================
-This product bundles following libraries which is licensed under the
-Public Domain, per Creative Commons CC0.
-For details, see their respective project links.
-You can find a copy of the License at licenses/LICENSE-cc0
-
-* HdrHistogram (org.hdrhistogram:HdrHistogram:2.1.9 - http://hdrhistogram.github.io/HdrHistogram/)
-* LatencyUtils (org.latencyutils:LatencyUtils:2.0.3 - http://latencyutils.github.io/LatencyUtils/)
-
-===========================================================================
-This product bundles following libraries which is licensed under the
-Eclipse Public License v1.0.
-For details, see their respective project links.
-You can find a copy of the License at licenses/LICENSE-epl-v10
-
-* Logback Classic Module (ch.qos.logback:logback-classic:1.2.3 - http://logback.qos.ch/logback-classic)
-* Logback Core Module (ch.qos.logback:logback-core:1.2.3 - http://logback.qos.ch/logback-core)
-* JUnit (junit:junit:4.12 - http://junit.org)
-
-===========================================================================
-This product bundles Hamcrest which is licensed under the
-2-Clause BSD.
-For details, see https://github.com/hamcrest/JavaHamcrest
-You can find a copy of the License at licenses/LICENSE-hamcrest
-
-* Hamcrest Core (org.hamcrest:hamcrest-core:1.3 - https://github.com/hamcrest/JavaHamcrest/hamcrest-core)
-* Hamcrest library (org.hamcrest:hamcrest-library:1.3 - https://github.com/hamcrest/JavaHamcrest/hamcrest-library)
-
-===========================================================================
-This product bundles ASM Core which is licensed under the
-3-Clause BSD.
-For details, see http://asm.objectweb.org/asm/
-You can find a copy of the License at licenses/LICENSE-asm
-
-* ASM Core (org.ow2.asm:asm:5.0.4 - http://asm.objectweb.org/asm/)
diff --git a/oas-validator/distribution/src/release/licenses/LICENSE-asm b/oas-validator/distribution/src/release/licenses/LICENSE-asm
deleted file mode 100755
index c71bb7b..0000000
--- a/oas-validator/distribution/src/release/licenses/LICENSE-asm
+++ /dev/null
@@ -1,27 +0,0 @@
-ASM: a very small and fast Java bytecode manipulation framework
-Copyright (c) 2000-2011 INRIA, France Telecom
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions
-are met:
-1. Redistributions of source code must retain the above copyright
-  notice, this list of conditions and the following disclaimer.
-2. Redistributions in binary form must reproduce the above copyright
-  notice, this list of conditions and the following disclaimer in the
-  documentation and/or other materials provided with the distribution.
-3. Neither the name of the copyright holders nor the names of its
-  contributors may be used to endorse or promote products derived from
-  this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
-LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
-THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/oas-validator/distribution/src/release/licenses/LICENSE-cc0 b/oas-validator/distribution/src/release/licenses/LICENSE-cc0
deleted file mode 100755
index 2dbc2c0..0000000
--- a/oas-validator/distribution/src/release/licenses/LICENSE-cc0
+++ /dev/null
@@ -1,27 +0,0 @@
-CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED HEREUNDER.
-Statement of Purpose
-The laws of most jurisdictions throughout the world automatically confer exclusive Copyright and Related Rights (defined below) upon the creator and subsequent owner(s) (each and all, an "owner") of an original work of authorship and/or a database (each, a "Work").
-
-Certain owners wish to permanently relinquish those rights to a Work for the purpose of contributing to a commons of creative, cultural and scientific works ("Commons") that the public can reliably and without fear of later claims of infringement build upon, modify, incorporate in other works, reuse and redistribute as freely as possible in any form whatsoever and for any purposes, including without limitation commercial purposes. These owners may contribute to the Commons to promote the [...]
-
-For these and/or other purposes and motivations, and without any expectation of additional consideration or compensation, the person associating CC0 with a Work (the "Affirmer"), to the extent that he or she is an owner of Copyright and Related Rights in the Work, voluntarily elects to apply CC0 to the Work and publicly distribute the Work under its terms, with knowledge of his or her Copyright and Related Rights in the Work and the meaning and intended legal effect of CC0 on those rights.
-
-1. Copyright and Related Rights. A Work made available under CC0 may be protected by copyright and related or neighboring rights ("Copyright and Related Rights"). Copyright and Related Rights include, but are not limited to, the following:
-
-the right to reproduce, adapt, distribute, perform, display, communicate, and translate a Work;
-moral rights retained by the original author(s) and/or performer(s);
-publicity and privacy rights pertaining to a person's image or likeness depicted in a Work;
-rights protecting against unfair competition in regards to a Work, subject to the limitations in paragraph 4(a), below;
-rights protecting the extraction, dissemination, use and reuse of data in a Work;
-database rights (such as those arising under Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, and under any national implementation thereof, including any amended or successor version of such directive); and
-other similar, equivalent or corresponding rights throughout the world based on applicable law or treaty, and any national implementations thereof.
-2. Waiver. To the greatest extent permitted by, but not in contravention of, applicable law, Affirmer hereby overtly, fully, permanently, irrevocably and unconditionally waives, abandons, and surrenders all of Affirmer's Copyright and Related Rights and associated claims and causes of action, whether now known or unknown (including existing as well as future claims and causes of action), in the Work (i) in all territories worldwide, (ii) for the maximum duration provided by applicable la [...]
-
-3. Public License Fallback. Should any part of the Waiver for any reason be judged legally invalid or ineffective under applicable law, then the Waiver shall be preserved to the maximum extent permitted taking into account Affirmer's express Statement of Purpose. In addition, to the extent the Waiver is so judged Affirmer hereby grants to each affected person a royalty-free, non transferable, non sublicensable, non exclusive, irrevocable and unconditional license to exercise Affirmer's C [...]
-
-4. Limitations and Disclaimers.
-
-No trademark or patent rights held by Affirmer are waived, abandoned, surrendered, licensed or otherwise affected by this document.
-Affirmer offers the Work as-is and makes no representations or warranties of any kind concerning the Work, express, implied, statutory or otherwise, including without limitation warranties of title, merchantability, fitness for a particular purpose, non infringement, or the absence of latent or other defects, accuracy, or the present or absence of errors, whether or not discoverable, all to the greatest extent permissible under applicable law.
-Affirmer disclaims responsibility for clearing rights of other persons that may apply to the Work or any use thereof, including without limitation any person's Copyright and Related Rights in the Work. Further, Affirmer disclaims responsibility for obtaining any necessary consents, permissions or other rights required for any use of the Work.
-Affirmer understands and acknowledges that Creative Commons is not a party to this document and has no duty or obligation with respect to this CC0 or use of the Work.
diff --git a/oas-validator/distribution/src/release/licenses/LICENSE-cddl-gplv2 b/oas-validator/distribution/src/release/licenses/LICENSE-cddl-gplv2
deleted file mode 100755
index 4b156e6..0000000
--- a/oas-validator/distribution/src/release/licenses/LICENSE-cddl-gplv2
+++ /dev/null
@@ -1,760 +0,0 @@
-COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.1
-
-1. Definitions.
-
-    1.1. "Contributor" means each individual or entity that creates or
-    contributes to the creation of Modifications.
-
-    1.2. "Contributor Version" means the combination of the Original
-    Software, prior Modifications used by a Contributor (if any), and
-    the Modifications made by that particular Contributor.
-
-    1.3. "Covered Software" means (a) the Original Software, or (b)
-    Modifications, or (c) the combination of files containing Original
-    Software with files containing Modifications, in each case including
-    portions thereof.
-
-    1.4. "Executable" means the Covered Software in any form other than
-    Source Code.
-
-    1.5. "Initial Developer" means the individual or entity that first
-    makes Original Software available under this License.
-
-    1.6. "Larger Work" means a work which combines Covered Software or
-    portions thereof with code not governed by the terms of this License.
-
-    1.7. "License" means this document.
-
-    1.8. "Licensable" means having the right to grant, to the maximum
-    extent possible, whether at the time of the initial grant or
-    subsequently acquired, any and all of the rights conveyed herein.
-
-    1.9. "Modifications" means the Source Code and Executable form of
-    any of the following:
-
-    A. Any file that results from an addition to, deletion from or
-    modification of the contents of a file containing Original Software
-    or previous Modifications;
-
-    B. Any new file that contains any part of the Original Software or
-    previous Modification; or
-
-    C. Any new file that is contributed or otherwise made available
-    under the terms of this License.
-
-    1.10. "Original Software" means the Source Code and Executable form
-    of computer software code that is originally released under this
-    License.
-
-    1.11. "Patent Claims" means any patent claim(s), now owned or
-    hereafter acquired, including without limitation, method, process,
-    and apparatus claims, in any patent Licensable by grantor.
-
-    1.12. "Source Code" means (a) the common form of computer software
-    code in which modifications are made and (b) associated
-    documentation included in or with such code.
-
-    1.13. "You" (or "Your") means an individual or a legal entity
-    exercising rights under, and complying with all of the terms of,
-    this License. For legal entities, "You" includes any entity which
-    controls, is controlled by, or is under common control with You. For
-    purposes of this definition, "control" means (a) the power, direct
-    or indirect, to cause the direction or management of such entity,
-    whether by contract or otherwise, or (b) ownership of more than
-    fifty percent (50%) of the outstanding shares or beneficial
-    ownership of such entity.
-
-2. License Grants.
-
-    2.1. The Initial Developer Grant.
-
-    Conditioned upon Your compliance with Section 3.1 below and subject
-    to third party intellectual property claims, the Initial Developer
-    hereby grants You a world-wide, royalty-free, non-exclusive license:
-
-    (a) under intellectual property rights (other than patent or
-    trademark) Licensable by Initial Developer, to use, reproduce,
-    modify, display, perform, sublicense and distribute the Original
-    Software (or portions thereof), with or without Modifications,
-    and/or as part of a Larger Work; and
-
-    (b) under Patent Claims infringed by the making, using or selling of
-    Original Software, to make, have made, use, practice, sell, and
-    offer for sale, and/or otherwise dispose of the Original Software
-    (or portions thereof).
-
-    (c) The licenses granted in Sections 2.1(a) and (b) are effective on
-    the date Initial Developer first distributes or otherwise makes the
-    Original Software available to a third party under the terms of this
-    License.
-
-    (d) Notwithstanding Section 2.1(b) above, no patent license is
-    granted: (1) for code that You delete from the Original Software, or
-    (2) for infringements caused by: (i) the modification of the
-    Original Software, or (ii) the combination of the Original Software
-    with other software or devices.
-
-    2.2. Contributor Grant.
-
-    Conditioned upon Your compliance with Section 3.1 below and subject
-    to third party intellectual property claims, each Contributor hereby
-    grants You a world-wide, royalty-free, non-exclusive license:
-
-    (a) under intellectual property rights (other than patent or
-    trademark) Licensable by Contributor to use, reproduce, modify,
-    display, perform, sublicense and distribute the Modifications
-    created by such Contributor (or portions thereof), either on an
-    unmodified basis, with other Modifications, as Covered Software
-    and/or as part of a Larger Work; and
-
-    (b) under Patent Claims infringed by the making, using, or selling
-    of Modifications made by that Contributor either alone and/or in
-    combination with its Contributor Version (or portions of such
-    combination), to make, use, sell, offer for sale, have made, and/or
-    otherwise dispose of: (1) Modifications made by that Contributor (or
-    portions thereof); and (2) the combination of Modifications made by
-    that Contributor with its Contributor Version (or portions of such
-    combination).
-
-    (c) The licenses granted in Sections 2.2(a) and 2.2(b) are effective
-    on the date Contributor first distributes or otherwise makes the
-    Modifications available to a third party.
-
-    (d) Notwithstanding Section 2.2(b) above, no patent license is
-    granted: (1) for any code that Contributor has deleted from the
-    Contributor Version; (2) for infringements caused by: (i) third
-    party modifications of Contributor Version, or (ii) the combination
-    of Modifications made by that Contributor with other software
-    (except as part of the Contributor Version) or other devices; or (3)
-    under Patent Claims infringed by Covered Software in the absence of
-    Modifications made by that Contributor.
-
-3. Distribution Obligations.
-
-    3.1. Availability of Source Code.
-
-    Any Covered Software that You distribute or otherwise make available
-    in Executable form must also be made available in Source Code form
-    and that Source Code form must be distributed only under the terms
-    of this License. You must include a copy of this License with every
-    copy of the Source Code form of the Covered Software You distribute
-    or otherwise make available. You must inform recipients of any such
-    Covered Software in Executable form as to how they can obtain such
-    Covered Software in Source Code form in a reasonable manner on or
-    through a medium customarily used for software exchange.
-
-    3.2. Modifications.
-
-    The Modifications that You create or to which You contribute are
-    governed by the terms of this License. You represent that You
-    believe Your Modifications are Your original creation(s) and/or You
-    have sufficient rights to grant the rights conveyed by this License.
-
-    3.3. Required Notices.
-
-    You must include a notice in each of Your Modifications that
-    identifies You as the Contributor of the Modification. You may not
-    remove or alter any copyright, patent or trademark notices contained
-    within the Covered Software, or any notices of licensing or any
-    descriptive text giving attribution to any Contributor or the
-    Initial Developer.
-
-    3.4. Application of Additional Terms.
-
-    You may not offer or impose any terms on any Covered Software in
-    Source Code form that alters or restricts the applicable version of
-    this License or the recipients' rights hereunder. You may choose to
-    offer, and to charge a fee for, warranty, support, indemnity or
-    liability obligations to one or more recipients of Covered Software.
-    However, you may do so only on Your own behalf, and not on behalf of
-    the Initial Developer or any Contributor. You must make it
-    absolutely clear that any such warranty, support, indemnity or
-    liability obligation is offered by You alone, and You hereby agree
-    to indemnify the Initial Developer and every Contributor for any
-    liability incurred by the Initial Developer or such Contributor as a
-    result of warranty, support, indemnity or liability terms You offer.
-
-    3.5. Distribution of Executable Versions.
-
-    You may distribute the Executable form of the Covered Software under
-    the terms of this License or under the terms of a license of Your
-    choice, which may contain terms different from this License,
-    provided that You are in compliance with the terms of this License
-    and that the license for the Executable form does not attempt to
-    limit or alter the recipient's rights in the Source Code form from
-    the rights set forth in this License. If You distribute the Covered
-    Software in Executable form under a different license, You must make
-    it absolutely clear that any terms which differ from this License
-    are offered by You alone, not by the Initial Developer or
-    Contributor. You hereby agree to indemnify the Initial Developer and
-    every Contributor for any liability incurred by the Initial
-    Developer or such Contributor as a result of any such terms You offer.
-
-    3.6. Larger Works.
-
-    You may create a Larger Work by combining Covered Software with
-    other code not governed by the terms of this License and distribute
-    the Larger Work as a single product. In such a case, You must make
-    sure the requirements of this License are fulfilled for the Covered
-    Software.
-
-4. Versions of the License.
-
-    4.1. New Versions.
-
-    Oracle is the initial license steward and may publish revised and/or
-    new versions of this License from time to time. Each version will be
-    given a distinguishing version number. Except as provided in Section
-    4.3, no one other than the license steward has the right to modify
-    this License.
-
-    4.2. Effect of New Versions.
-
-    You may always continue to use, distribute or otherwise make the
-    Covered Software available under the terms of the version of the
-    License under which You originally received the Covered Software. If
-    the Initial Developer includes a notice in the Original Software
-    prohibiting it from being distributed or otherwise made available
-    under any subsequent version of the License, You must distribute and
-    make the Covered Software available under the terms of the version
-    of the License under which You originally received the Covered
-    Software. Otherwise, You may also choose to use, distribute or
-    otherwise make the Covered Software available under the terms of any
-    subsequent version of the License published by the license steward.
-
-    4.3. Modified Versions.
-
-    When You are an Initial Developer and You want to create a new
-    license for Your Original Software, You may create and use a
-    modified version of this License if You: (a) rename the license and
-    remove any references to the name of the license steward (except to
-    note that the license differs from this License); and (b) otherwise
-    make it clear that the license contains terms which differ from this
-    License.
-
-5. DISCLAIMER OF WARRANTY.
-
-    COVERED SOFTWARE IS PROVIDED UNDER THIS LICENSE ON AN "AS IS" BASIS,
-    WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED,
-    INCLUDING, WITHOUT LIMITATION, WARRANTIES THAT THE COVERED SOFTWARE
-    IS FREE OF DEFECTS, MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE OR
-    NON-INFRINGING. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF
-    THE COVERED SOFTWARE IS WITH YOU. SHOULD ANY COVERED SOFTWARE PROVE
-    DEFECTIVE IN ANY RESPECT, YOU (NOT THE INITIAL DEVELOPER OR ANY
-    OTHER CONTRIBUTOR) ASSUME THE COST OF ANY NECESSARY SERVICING,
-    REPAIR OR CORRECTION. THIS DISCLAIMER OF WARRANTY CONSTITUTES AN
-    ESSENTIAL PART OF THIS LICENSE. NO USE OF ANY COVERED SOFTWARE IS
-    AUTHORIZED HEREUNDER EXCEPT UNDER THIS DISCLAIMER.
-
-6. TERMINATION.
-
-    6.1. This License and the rights granted hereunder will terminate
-    automatically if You fail to comply with terms herein and fail to
-    cure such breach within 30 days of becoming aware of the breach.
-    Provisions which, by their nature, must remain in effect beyond the
-    termination of this License shall survive.
-
-    6.2. If You assert a patent infringement claim (excluding
-    declaratory judgment actions) against Initial Developer or a
-    Contributor (the Initial Developer or Contributor against whom You
-    assert such claim is referred to as "Participant") alleging that the
-    Participant Software (meaning the Contributor Version where the
-    Participant is a Contributor or the Original Software where the
-    Participant is the Initial Developer) directly or indirectly
-    infringes any patent, then any and all rights granted directly or
-    indirectly to You by such Participant, the Initial Developer (if the
-    Initial Developer is not the Participant) and all Contributors under
-    Sections 2.1 and/or 2.2 of this License shall, upon 60 days notice
-    from Participant terminate prospectively and automatically at the
-    expiration of such 60 day notice period, unless if within such 60
-    day period You withdraw Your claim with respect to the Participant
-    Software against such Participant either unilaterally or pursuant to
-    a written agreement with Participant.
-
-    6.3. If You assert a patent infringement claim against Participant
-    alleging that the Participant Software directly or indirectly
-    infringes any patent where such claim is resolved (such as by
-    license or settlement) prior to the initiation of patent
-    infringement litigation, then the reasonable value of the licenses
-    granted by such Participant under Sections 2.1 or 2.2 shall be taken
-    into account in determining the amount or value of any payment or
-    license.
-
-    6.4. In the event of termination under Sections 6.1 or 6.2 above,
-    all end user licenses that have been validly granted by You or any
-    distributor hereunder prior to termination (excluding licenses
-    granted to You by any distributor) shall survive termination.
-
-7. LIMITATION OF LIABILITY.
-
-    UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, WHETHER TORT
-    (INCLUDING NEGLIGENCE), CONTRACT, OR OTHERWISE, SHALL YOU, THE
-    INITIAL DEVELOPER, ANY OTHER CONTRIBUTOR, OR ANY DISTRIBUTOR OF
-    COVERED SOFTWARE, OR ANY SUPPLIER OF ANY OF SUCH PARTIES, BE LIABLE
-    TO ANY PERSON FOR ANY INDIRECT, SPECIAL, INCIDENTAL, OR
-    CONSEQUENTIAL DAMAGES OF ANY CHARACTER INCLUDING, WITHOUT
-    LIMITATION, DAMAGES FOR LOSS OF GOODWILL, WORK STOPPAGE, COMPUTER
-    FAILURE OR MALFUNCTION, OR ANY AND ALL OTHER COMMERCIAL DAMAGES OR
-    LOSSES, EVEN IF SUCH PARTY SHALL HAVE BEEN INFORMED OF THE
-    POSSIBILITY OF SUCH DAMAGES. THIS LIMITATION OF LIABILITY SHALL NOT
-    APPLY TO LIABILITY FOR DEATH OR PERSONAL INJURY RESULTING FROM SUCH
-    PARTY'S NEGLIGENCE TO THE EXTENT APPLICABLE LAW PROHIBITS SUCH
-    LIMITATION. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OR
-    LIMITATION OF INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO THIS EXCLUSION
-    AND LIMITATION MAY NOT APPLY TO YOU.
-
-8. U.S. GOVERNMENT END USERS.
-
-    The Covered Software is a "commercial item," as that term is defined
-    in 48 C.F.R. 2.101 (Oct. 1995), consisting of "commercial computer
-    software" (as that term is defined at 48 C.F.R. ยง
-    252.227-7014(a)(1)) and "commercial computer software documentation"
-    as such terms are used in 48 C.F.R. 12.212 (Sept. 1995). Consistent
-    with 48 C.F.R. 12.212 and 48 C.F.R. 227.7202-1 through 227.7202-4
-    (June 1995), all U.S. Government End Users acquire Covered Software
-    with only those rights set forth herein. This U.S. Government Rights
-    clause is in lieu of, and supersedes, any other FAR, DFAR, or other
-    clause or provision that addresses Government rights in computer
-    software under this License.
-
-9. MISCELLANEOUS.
-
-    This License represents the complete agreement concerning subject
-    matter hereof. If any provision of this License is held to be
-    unenforceable, such provision shall be reformed only to the extent
-    necessary to make it enforceable. This License shall be governed by
-    the law of the jurisdiction specified in a notice contained within
-    the Original Software (except to the extent applicable law, if any,
-    provides otherwise), excluding such jurisdiction's conflict-of-law
-    provisions. Any litigation relating to this License shall be subject
-    to the jurisdiction of the courts located in the jurisdiction and
-    venue specified in a notice contained within the Original Software,
-    with the losing party responsible for costs, including, without
-    limitation, court costs and reasonable attorneys' fees and expenses.
-    The application of the United Nations Convention on Contracts for
-    the International Sale of Goods is expressly excluded. Any law or
-    regulation which provides that the language of a contract shall be
-    construed against the drafter shall not apply to this License. You
-    agree that You alone are responsible for compliance with the United
-    States export administration regulations (and the export control
-    laws and regulation of any other countries) when You use, distribute
-    or otherwise make available any Covered Software.
-
-10. RESPONSIBILITY FOR CLAIMS.
-
-    As between Initial Developer and the Contributors, each party is
-    responsible for claims and damages arising, directly or indirectly,
-    out of its utilization of rights under this License and You agree to
-    work with Initial Developer and Contributors to distribute such
-    responsibility on an equitable basis. Nothing herein is intended or
-    shall be deemed to constitute any admission of liability.
-
-------------------------------------------------------------------------
-
-NOTICE PURSUANT TO SECTION 9 OF THE COMMON DEVELOPMENT AND DISTRIBUTION
-LICENSE (CDDL)
-
-The code released under the CDDL shall be governed by the laws of the
-State of California (excluding conflict-of-law provisions). Any
-litigation relating to this License shall be subject to the jurisdiction
-of the Federal Courts of the Northern District of California and the
-state courts of the State of California, with venue lying in Santa Clara
-County, California.
-
-
-
-  The GNU General Public License (GPL) Version 2, June 1991
-
-Copyright (C) 1989, 1991 Free Software Foundation, Inc.
-51 Franklin Street, Fifth Floor
-Boston, MA 02110-1335
-USA
-
-Everyone is permitted to copy and distribute verbatim copies
-of this license document, but changing it is not allowed.
-
-Preamble
-
-The licenses for most software are designed to take away your freedom to
-share and change it. By contrast, the GNU General Public License is
-intended to guarantee your freedom to share and change free software--to
-make sure the software is free for all its users. This General Public
-License applies to most of the Free Software Foundation's software and
-to any other program whose authors commit to using it. (Some other Free
-Software Foundation software is covered by the GNU Library General
-Public License instead.) You can apply it to your programs, too.
-
-When we speak of free software, we are referring to freedom, not price.
-Our General Public Licenses are designed to make sure that you have the
-freedom to distribute copies of free software (and charge for this
-service if you wish), that you receive source code or can get it if you
-want it, that you can change the software or use pieces of it in new
-free programs; and that you know you can do these things.
-
-To protect your rights, we need to make restrictions that forbid anyone
-to deny you these rights or to ask you to surrender the rights. These
-restrictions translate to certain responsibilities for you if you
-distribute copies of the software, or if you modify it.
-
-For example, if you distribute copies of such a program, whether gratis
-or for a fee, you must give the recipients all the rights that you have.
-You must make sure that they, too, receive or can get the source code.
-And you must show them these terms so they know their rights.
-
-We protect your rights with two steps: (1) copyright the software, and
-(2) offer you this license which gives you legal permission to copy,
-distribute and/or modify the software.
-
-Also, for each author's protection and ours, we want to make certain
-that everyone understands that there is no warranty for this free
-software. If the software is modified by someone else and passed on, we
-want its recipients to know that what they have is not the original, so
-that any problems introduced by others will not reflect on the original
-authors' reputations.
-
-Finally, any free program is threatened constantly by software patents.
-We wish to avoid the danger that redistributors of a free program will
-individually obtain patent licenses, in effect making the program
-proprietary. To prevent this, we have made it clear that any patent must
-be licensed for everyone's free use or not licensed at all.
-
-The precise terms and conditions for copying, distribution and
-modification follow.
-
-TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
-
-0. This License applies to any program or other work which contains a
-notice placed by the copyright holder saying it may be distributed under
-the terms of this General Public License. The "Program", below, refers
-to any such program or work, and a "work based on the Program" means
-either the Program or any derivative work under copyright law: that is
-to say, a work containing the Program or a portion of it, either
-verbatim or with modifications and/or translated into another language.
-(Hereinafter, translation is included without limitation in the term
-"modification".) Each licensee is addressed as "you".
-
-Activities other than copying, distribution and modification are not
-covered by this License; they are outside its scope. The act of running
-the Program is not restricted, and the output from the Program is
-covered only if its contents constitute a work based on the Program
-(independent of having been made by running the Program). Whether that
-is true depends on what the Program does.
-
-1. You may copy and distribute verbatim copies of the Program's source
-code as you receive it, in any medium, provided that you conspicuously
-and appropriately publish on each copy an appropriate copyright notice
-and disclaimer of warranty; keep intact all the notices that refer to
-this License and to the absence of any warranty; and give any other
-recipients of the Program a copy of this License along with the Program.
-
-You may charge a fee for the physical act of transferring a copy, and
-you may at your option offer warranty protection in exchange for a fee.
-
-2. You may modify your copy or copies of the Program or any portion of
-it, thus forming a work based on the Program, and copy and distribute
-such modifications or work under the terms of Section 1 above, provided
-that you also meet all of these conditions:
-
-    a) You must cause the modified files to carry prominent notices
-    stating that you changed the files and the date of any change.
-
-    b) You must cause any work that you distribute or publish, that in
-    whole or in part contains or is derived from the Program or any part
-    thereof, to be licensed as a whole at no charge to all third parties
-    under the terms of this License.
-
-    c) If the modified program normally reads commands interactively
-    when run, you must cause it, when started running for such
-    interactive use in the most ordinary way, to print or display an
-    announcement including an appropriate copyright notice and a notice
-    that there is no warranty (or else, saying that you provide a
-    warranty) and that users may redistribute the program under these
-    conditions, and telling the user how to view a copy of this License.
-    (Exception: if the Program itself is interactive but does not
-    normally print such an announcement, your work based on the Program
-    is not required to print an announcement.)
-
-These requirements apply to the modified work as a whole. If
-identifiable sections of that work are not derived from the Program, and
-can be reasonably considered independent and separate works in
-themselves, then this License, and its terms, do not apply to those
-sections when you distribute them as separate works. But when you
-distribute the same sections as part of a whole which is a work based on
-the Program, the distribution of the whole must be on the terms of this
-License, whose permissions for other licensees extend to the entire
-whole, and thus to each and every part regardless of who wrote it.
-
-Thus, it is not the intent of this section to claim rights or contest
-your rights to work written entirely by you; rather, the intent is to
-exercise the right to control the distribution of derivative or
-collective works based on the Program.
-
-In addition, mere aggregation of another work not based on the Program
-with the Program (or with a work based on the Program) on a volume of a
-storage or distribution medium does not bring the other work under the
-scope of this License.
-
-3. You may copy and distribute the Program (or a work based on it,
-under Section 2) in object code or executable form under the terms of
-Sections 1 and 2 above provided that you also do one of the following:
-
-    a) Accompany it with the complete corresponding machine-readable
-    source code, which must be distributed under the terms of Sections 1
-    and 2 above on a medium customarily used for software interchange; or,
-
-    b) Accompany it with a written offer, valid for at least three
-    years, to give any third party, for a charge no more than your cost
-    of physically performing source distribution, a complete
-    machine-readable copy of the corresponding source code, to be
-    distributed under the terms of Sections 1 and 2 above on a medium
-    customarily used for software interchange; or,
-
-    c) Accompany it with the information you received as to the offer to
-    distribute corresponding source code. (This alternative is allowed
-    only for noncommercial distribution and only if you received the
-    program in object code or executable form with such an offer, in
-    accord with Subsection b above.)
-
-The source code for a work means the preferred form of the work for
-making modifications to it. For an executable work, complete source code
-means all the source code for all modules it contains, plus any
-associated interface definition files, plus the scripts used to control
-compilation and installation of the executable. However, as a special
-exception, the source code distributed need not include anything that is
-normally distributed (in either source or binary form) with the major
-components (compiler, kernel, and so on) of the operating system on
-which the executable runs, unless that component itself accompanies the
-executable.
-
-If distribution of executable or object code is made by offering access
-to copy from a designated place, then offering equivalent access to copy
-the source code from the same place counts as distribution of the source
-code, even though third parties are not compelled to copy the source
-along with the object code.
-
-4. You may not copy, modify, sublicense, or distribute the Program
-except as expressly provided under this License. Any attempt otherwise
-to copy, modify, sublicense or distribute the Program is void, and will
-automatically terminate your rights under this License. However, parties
-who have received copies, or rights, from you under this License will
-not have their licenses terminated so long as such parties remain in
-full compliance.
-
-5. You are not required to accept this License, since you have not
-signed it. However, nothing else grants you permission to modify or
-distribute the Program or its derivative works. These actions are
-prohibited by law if you do not accept this License. Therefore, by
-modifying or distributing the Program (or any work based on the
-Program), you indicate your acceptance of this License to do so, and all
-its terms and conditions for copying, distributing or modifying the
-Program or works based on it.
-
-6. Each time you redistribute the Program (or any work based on the
-Program), the recipient automatically receives a license from the
-original licensor to copy, distribute or modify the Program subject to
-these terms and conditions. You may not impose any further restrictions
-on the recipients' exercise of the rights granted herein. You are not
-responsible for enforcing compliance by third parties to this License.
-
-7. If, as a consequence of a court judgment or allegation of patent
-infringement or for any other reason (not limited to patent issues),
-conditions are imposed on you (whether by court order, agreement or
-otherwise) that contradict the conditions of this License, they do not
-excuse you from the conditions of this License. If you cannot distribute
-so as to satisfy simultaneously your obligations under this License and
-any other pertinent obligations, then as a consequence you may not
-distribute the Program at all. For example, if a patent license would
-not permit royalty-free redistribution of the Program by all those who
-receive copies directly or indirectly through you, then the only way you
-could satisfy both it and this License would be to refrain entirely from
-distribution of the Program.
-
-If any portion of this section is held invalid or unenforceable under
-any particular circumstance, the balance of the section is intended to
-apply and the section as a whole is intended to apply in other
-circumstances.
-
-It is not the purpose of this section to induce you to infringe any
-patents or other property right claims or to contest validity of any
-such claims; this section has the sole purpose of protecting the
-integrity of the free software distribution system, which is implemented
-by public license practices. Many people have made generous
-contributions to the wide range of software distributed through that
-system in reliance on consistent application of that system; it is up to
-the author/donor to decide if he or she is willing to distribute
-software through any other system and a licensee cannot impose that choice.
-
-This section is intended to make thoroughly clear what is believed to be
-a consequence of the rest of this License.
-
-8. If the distribution and/or use of the Program is restricted in
-certain countries either by patents or by copyrighted interfaces, the
-original copyright holder who places the Program under this License may
-add an explicit geographical distribution limitation excluding those
-countries, so that distribution is permitted only in or among countries
-not thus excluded. In such case, this License incorporates the
-limitation as if written in the body of this License.
-
-9. The Free Software Foundation may publish revised and/or new
-versions of the General Public License from time to time. Such new
-versions will be similar in spirit to the present version, but may
-differ in detail to address new problems or concerns.
-
-Each version is given a distinguishing version number. If the Program
-specifies a version number of this License which applies to it and "any
-later version", you have the option of following the terms and
-conditions either of that version or of any later version published by
-the Free Software Foundation. If the Program does not specify a version
-number of this License, you may choose any version ever published by the
-Free Software Foundation.
-
-10. If you wish to incorporate parts of the Program into other free
-programs whose distribution conditions are different, write to the
-author to ask for permission. For software which is copyrighted by the
-Free Software Foundation, write to the Free Software Foundation; we
-sometimes make exceptions for this. Our decision will be guided by the
-two goals of preserving the free status of all derivatives of our free
-software and of promoting the sharing and reuse of software generally.
-
-NO WARRANTY
-
-11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO
-WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
-EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
-OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND,
-EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE
-ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH
-YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL
-NECESSARY SERVICING, REPAIR OR CORRECTION.
-
-12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
-WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
-AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR
-DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL
-DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM
-(INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED
-INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF
-THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR
-OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
-
-END OF TERMS AND CONDITIONS
-
-How to Apply These Terms to Your New Programs
-
-If you develop a new program, and you want it to be of the greatest
-possible use to the public, the best way to achieve this is to make it
-free software which everyone can redistribute and change under these terms.
-
-To do so, attach the following notices to the program. It is safest to
-attach them to the start of each source file to most effectively convey
-the exclusion of warranty; and each file should have at least the
-"copyright" line and a pointer to where the full notice is found.
-
-    One line to give the program's name and a brief idea of what it does.
-    Copyright (C) <year> <name of author>
-
-    This program is free software; you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation; either version 2 of the License, or
-    (at your option) any later version.
-
-    This program is distributed in the hope that it will be useful, but
-    WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-    General Public License for more details.
-
-    You should have received a copy of the GNU General Public License
-    along with this program; if not, write to the Free Software
-    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335 USA
-
-Also add information on how to contact you by electronic and paper mail.
-
-If the program is interactive, make it output a short notice like this
-when it starts in an interactive mode:
-
-    Gnomovision version 69, Copyright (C) year name of author
-    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type
-    `show w'. This is free software, and you are welcome to redistribute
-    it under certain conditions; type `show c' for details.
-
-The hypothetical commands `show w' and `show c' should show the
-appropriate parts of the General Public License. Of course, the commands
-you use may be called something other than `show w' and `show c'; they
-could even be mouse-clicks or menu items--whatever suits your program.
-
-You should also get your employer (if you work as a programmer) or your
-school, if any, to sign a "copyright disclaimer" for the program, if
-necessary. Here is a sample; alter the names:
-
-    Yoyodyne, Inc., hereby disclaims all copyright interest in the
-    program `Gnomovision' (which makes passes at compilers) written by
-    James Hacker.
-
-    signature of Ty Coon, 1 April 1989
-    Ty Coon, President of Vice
-
-This General Public License does not permit incorporating your program
-into proprietary programs. If your program is a subroutine library, you
-may consider it more useful to permit linking proprietary applications
-with the library. If this is what you want to do, use the GNU Library
-General Public License instead of this License.
-
-#
-
-Certain source files distributed by Oracle America, Inc. and/or its
-affiliates are subject to the following clarification and special
-exception to the GPLv2, based on the GNU Project exception for its
-Classpath libraries, known as the GNU Classpath Exception, but only
-where Oracle has expressly included in the particular source file's
-header the words "Oracle designates this particular file as subject to
-the "Classpath" exception as provided by Oracle in the LICENSE file
-that accompanied this code."
-
-You should also note that Oracle includes multiple, independent
-programs in this software package. Some of those programs are provided
-under licenses deemed incompatible with the GPLv2 by the Free Software
-Foundation and others.  For example, the package includes programs
-licensed under the Apache License, Version 2.0.  Such programs are
-licensed to you under their original licenses.
-
-Oracle facilitates your further distribution of this package by adding
-the Classpath Exception to the necessary parts of its GPLv2 code, which
-permits you to use that code in combination with other independent
-modules not licensed under the GPLv2.  However, note that this would
-not permit you to commingle code under an incompatible license with
-Oracle's GPLv2 licensed code by, for example, cutting and pasting such
-code into a file also containing Oracle's GPLv2 licensed code and then
-distributing the result.  Additionally, if you were to remove the
-Classpath Exception from any of the files to which it applies and
-distribute the result, you would likely be required to license some or
-all of the other code in that distribution under the GPLv2 as well, and
-since the GPLv2 is incompatible with the license terms of some items
-included in the distribution by Oracle, removing the Classpath
-Exception could therefore effectively compromise your ability to
-further distribute the package.
-
-Proceed with caution and we recommend that you obtain the advice of a
-lawyer skilled in open source matters before removing the Classpath
-Exception or making modifications to this package which may
-subsequently be redistributed and/or involve the use of third party
-software.
-
-CLASSPATH EXCEPTION
-Linking this library statically or dynamically with other modules is
-making a combined work based on this library.  Thus, the terms and
-conditions of the GNU General Public License version 2 cover the whole
-combination.
-
-As a special exception, the copyright holders of this library give you
-permission to link this library with independent modules to produce an
-executable, regardless of the license terms of these independent
-modules, and to copy and distribute the resulting executable under
-terms of your choice, provided that you also meet, for each linked
-independent module, the terms and conditions of the license of that
-module.  An independent module is a module which is not derived from or
-based on this library.  If you modify this library, you may extend this
-exception to your version of the library, but you are not obligated to
-do so.  If you do not wish to do so, delete this exception statement
-from your version.
-
diff --git a/oas-validator/distribution/src/release/licenses/LICENSE-cddl-v10 b/oas-validator/distribution/src/release/licenses/LICENSE-cddl-v10
deleted file mode 100755
index 46164de..0000000
--- a/oas-validator/distribution/src/release/licenses/LICENSE-cddl-v10
+++ /dev/null
@@ -1,132 +0,0 @@
-COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0
-
-1. Definitions.
-
-1.1. "Contributor" means each individual or entity that creates or contributes to the creation of Modifications.
-
-1.2. "Contributor Version" means the combination of the Original Software, prior Modifications used by a Contributor (if any), and the Modifications made by that particular Contributor.
-
-1.3. "Covered Software" means (a) the Original Software, or (b) Modifications, or (c) the combination of files containing Original Software with files containing Modifications, in each case including portions thereof.
-
-1.4. "Executable" means the Covered Software in any form other than Source Code.
-
-1.5. "Initial Developer" means the individual or entity that first makes Original Software available under this License.
-
-1.6. "Larger Work" means a work which combines Covered Software or portions thereof with code not governed by the terms of this License.
-
-1.7. "License" means this document.
-
-1.8. "Licensable" means having the right to grant, to the maximum extent possible, whether at the time of the initial grant or subsequently acquired, any and all of the rights conveyed herein.
-
-1.9. "Modifications" means the Source Code and Executable form of any of the following:
-
-A. Any file that results from an addition to, deletion from or modification of the contents of a file containing Original Software or previous Modifications;
-
-B. Any new file that contains any part of the Original Software or previous Modification; or
-
-C. Any new file that is contributed or otherwise made available under the terms of this License.
-
-1.10. "Original Software" means the Source Code and Executable form of computer software code that is originally released under this License.
-
-1.11. "Patent Claims" means any patent claim(s), now owned or hereafter acquired, including without limitation, method, process, and apparatus claims, in any patent Licensable by grantor.
-
-1.12. "Source Code" means (a) the common form of computer software code in which modifications are made and (b) associated documentation included in or with such code.
-
-1.13. "You" (or "Your") means an individual or a legal entity exercising rights under, and complying with all of the terms of, this License. For legal entities, "You" includes any entity which controls, is controlled by, or is under common control with You. For purposes of this definition, "control" means (a) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (b) ownership of more than fifty percent (50%) of the outsta [...]
-
-2. License Grants.
-
-2.1. The Initial Developer Grant.
-
-Conditioned upon Your compliance with Section 3.1 below and subject to third party intellectual property claims, the Initial Developer hereby grants You a world-wide, royalty-free, non-exclusive license:
-
-(a) under intellectual property rights (other than patent or trademark) Licensable by Initial Developer, to use, reproduce, modify, display, perform, sublicense and distribute the Original Software (or portions thereof), with or without Modifications, and/or as part of a Larger Work; and
-
-(b) under Patent Claims infringed by the making, using or selling of Original Software, to make, have made, use, practice, sell, and offer for sale, and/or otherwise dispose of the Original Software (or portions thereof).
-
-(c) The licenses granted in Sections 2.1(a) and (b) are effective on the date Initial Developer first distributes or otherwise makes the Original Software available to a third party under the terms of this License.
-
-(d) Notwithstanding Section 2.1(b) above, no patent license is granted: (1) for code that You delete from the Original Software, or (2) for infringements caused by: (i) the modification of the Original Software, or (ii) the combination of the Original Software with other software or devices.
-
-2.2. Contributor Grant.
-
-Conditioned upon Your compliance with Section 3.1 below and
-subject to third party intellectual property claims, each
-Contributor hereby grants You a world-wide, royalty-free,
-non-exclusive license:
-
-(a) under intellectual property rights (other than patent or trademark) Licensable by Contributor to use, reproduce, modify, display, perform, sublicense and distribute the Modifications created by such Contributor (or portions thereof), either on an unmodified basis, with other Modifications, as Covered Software and/or as part of a Larger Work; and
-
-(b) under Patent Claims infringed by the making, using, or selling of Modifications made by that Contributor either alone and/or in combination with its Contributor Version (or portions of such combination), to make, use, sell, offer for sale, have made, and/or otherwise dispose of: (1) Modifications made by that Contributor (or portions thereof); and (2) the combination of Modifications made by that Contributor with its Contributor Version (or portions of such combination).
-
-(c) The licenses granted in Sections 2.2(a) and 2.2(b) are effective on the date Contributor first distributes or otherwise makes the Modifications available to a third party.
-(d) Notwithstanding Section 2.2(b) above, no patent license is granted: (1) for any code that Contributor has deleted from the Contributor Version; (2) for infringements caused by: (i) third party modifications of Contributor Version, or (ii) the combination of Modifications made by that Contributor with other software (except as part of the Contributor Version) or other devices; or (3) under Patent Claims infringed by Covered Software in the absence of Modifications made by that Contributor.
-
-3. Distribution Obligations.
-
-3.1. Availability of Source Code.
-
-Any Covered Software that You distribute or otherwise make available in Executable form must also be made available in Source Code form and that Source Code form must be distributed only under the terms of this License. You must include a copy of this License with every copy of the Source Code form of the Covered Software You distribute or otherwise make available. You must inform recipients of any such Covered Software in Executable form as to how they can obtain such Covered Software i [...]
-
-3.2. Modifications.
-
-The Modifications that You create or to which You contribute are governed by the terms of this License. You represent that You believe Your Modifications are Your original creation(s) and/or You have sufficient rights to grant the rights conveyed by this License.
-
-3.3. Required Notices.
-
-You must include a notice in each of Your Modifications that identifies You as the Contributor of the Modification. You may not remove or alter any copyright, patent or trademark notices contained within the Covered Software, or any notices of licensing or any descriptive text giving attribution to any Contributor or the Initial Developer.
-
-3.4. Application of Additional Terms.
-
-You may not offer or impose any terms on any Covered Software in Source Code form that alters or restricts the applicable version of this License or the recipients' rights hereunder. You may choose to offer, and to charge a fee for, warranty, support, indemnity or liability obligations to one or more recipients of Covered Software. However, you may do so only on Your own behalf, and not on behalf of the Initial Developer or any Contributor. You must make it absolutely clear that any such [...]
-
-3.5. Distribution of Executable Versions.
-
-You may distribute the Executable form of the Covered Software under the terms of this License or under the terms of a license of Your choice, which may contain terms different from this License, provided that You are in compliance with the terms of this License and that the license for the Executable form does not attempt to limit or alter the recipient's rights in the Source Code form from the rights set forth in this License. If You distribute the Covered Software in Executable form u [...]
-
-3.6. Larger Works.
-
-You may create a Larger Work by combining Covered Software with other code not governed by the terms of this License and distribute the Larger Work as a single product. In such a case, You must make sure the requirements of this License are fulfilled for the Covered Software.
-
-4. Versions of the License.
-
-4.1. New Versions.
-
-Sun Microsystems, Inc. is the initial license steward and may publish revised and/or new versions of this License from time to time. Each version will be given a distinguishing version number. Except as provided in Section 4.3, no one other than the license steward has the right to modify this License.
-
-4.2. Effect of New Versions.
-
-You may always continue to use, distribute or otherwise make the Covered Software available under the terms of the version of the License under which You originally received the Covered Software. If the Initial Developer includes a notice in the Original Software prohibiting it from being distributed or otherwise made available under any subsequent version of the License, You must distribute and make the Covered Software available under the terms of the version of the License under which [...]
-
-4.3. Modified Versions.
-
-When You are an Initial Developer and You want to create a new license for Your Original Software, You may create and use a modified version of this License if You: (a) rename the license and remove any references to the name of the license steward (except to note that the license differs from this License); and (b) otherwise make it clear that the license contains terms which differ from this License.
-
-5. DISCLAIMER OF WARRANTY.
-
-COVERED SOFTWARE IS PROVIDED UNDER THIS LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, WITHOUT LIMITATION, WARRANTIES THAT THE COVERED SOFTWARE IS FREE OF DEFECTS, MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE OR NON-INFRINGING. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE COVERED SOFTWARE IS WITH YOU. SHOULD ANY COVERED SOFTWARE PROVE DEFECTIVE IN ANY RESPECT, YOU (NOT THE INITIAL DEVELOPER OR ANY OTHER CONTRIBUTOR) ASSUME THE [...]
-
-6. TERMINATION.
-
-6.1. This License and the rights granted hereunder will terminate automatically if You fail to comply with terms herein and fail to cure such breach within 30 days of becoming aware of the breach. Provisions which, by their nature, must remain in effect beyond the termination of this License shall survive.
-
-6.2. If You assert a patent infringement claim (excluding declaratory judgment actions) against Initial Developer or a Contributor (the Initial Developer or Contributor against whom You assert such claim is referred to as "Participant") alleging that the Participant Software (meaning the Contributor Version where the Participant is a Contributor or the Original Software where the Participant is the Initial Developer) directly or indirectly infringes any patent, then any and all rights gr [...]
-
-6.3. In the event of termination under Sections 6.1 or 6.2 above, all end user licenses that have been validly granted by You or any distributor hereunder prior to termination (excluding licenses granted to You by any distributor) shall survive termination.
-
-7. LIMITATION OF LIABILITY.
-
-UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, WHETHER TORT (INCLUDING NEGLIGENCE), CONTRACT, OR OTHERWISE, SHALL YOU, THE INITIAL DEVELOPER, ANY OTHER CONTRIBUTOR, OR ANY DISTRIBUTOR OF COVERED SOFTWARE, OR ANY SUPPLIER OF ANY OF SUCH PARTIES, BE LIABLE TO ANY PERSON FOR ANY INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOST PROFITS, LOSS OF GOODWILL, WORK STOPPAGE, COMPUTER FAILURE OR MALFUNCTION, OR ANY AND ALL O [...]
-
-8. U.S. GOVERNMENT END USERS.
-
-The Covered Software is a "commercial item," as that term is defined in 48 C.F.R. 2.101 (Oct. 1995), consisting of "commercial computer software" (as that term is defined at 48 C.F.R. ยค 252.227-7014(a)(1)) and "commercial computer software documentation" as such terms are used in 48 C.F.R. 12.212 (Sept. 1995). Consistent with 48 C.F.R. 12.212 and 48 C.F.R. 227.7202-1 through 227.7202-4 (June 1995), all U.S. Government End Users acquire Covered Software with only those rights set forth he [...]
-
-9. MISCELLANEOUS.
-
-This License represents the complete agreement concerning subject matter hereof. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable. This License shall be governed by the law of the jurisdiction specified in a notice contained within the Original Software (except to the extent applicable law, if any, provides otherwise), excluding such jurisdiction's conflict-of-law provisions. Any litigation  [...]
-
-10. RESPONSIBILITY FOR CLAIMS.
-
-As between Initial Developer and the Contributors, each party is responsible for claims and damages arising, directly or indirectly, out of its utilization of rights under this License and You agree to work with Initial Developer and Contributors to distribute such responsibility on an equitable basis. Nothing herein is intended or shall be deemed to constitute any admission of liability.
-
diff --git a/oas-validator/distribution/src/release/licenses/LICENSE-epl-v10 b/oas-validator/distribution/src/release/licenses/LICENSE-epl-v10
deleted file mode 100755
index b0476ee..0000000
--- a/oas-validator/distribution/src/release/licenses/LICENSE-epl-v10
+++ /dev/null
@@ -1,86 +0,0 @@
-Eclipse Public License - v 1.0
-THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT.
-
-1. DEFINITIONS
-
-"Contribution" means:
-
-a) in the case of the initial Contributor, the initial code and documentation distributed under this Agreement, and
-
-b) in the case of each subsequent Contributor:
-
-i) changes to the Program, and
-
-ii) additions to the Program;
-
-where such changes and/or additions to the Program originate from and are distributed by that particular Contributor. A Contribution 'originates' from a Contributor if it was added to the Program by such Contributor itself or anyone acting on such Contributor's behalf. Contributions do not include additions to the Program which: (i) are separate modules of software distributed in conjunction with the Program under their own license agreement, and (ii) are not derivative works of the Program.
-
-"Contributor" means any person or entity that distributes the Program.
-
-"Licensed Patents" mean patent claims licensable by a Contributor which are necessarily infringed by the use or sale of its Contribution alone or when combined with the Program.
-
-"Program" means the Contributions distributed in accordance with this Agreement.
-
-"Recipient" means anyone who receives the Program under this Agreement, including all Contributors.
-
-2. GRANT OF RIGHTS
-
-a) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, distribute and sublicense the Contribution of such Contributor, if any, and such derivative works, in source code and object code form.
-
-b) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free patent license under Licensed Patents to make, use, sell, offer to sell, import and otherwise transfer the Contribution of such Contributor, if any, in source code and object code form. This patent license shall apply to the combination of the Contribution and the Program if, at the time the Contribution is added by the Contributor, such addition of the Contributio [...]
-
-c) Recipient understands that although each Contributor grants the licenses to its Contributions set forth herein, no assurances are provided by any Contributor that the Program does not infringe the patent or other intellectual property rights of any other entity. Each Contributor disclaims any liability to Recipient for claims brought by any other entity based on infringement of intellectual property rights or otherwise. As a condition to exercising the rights and licenses granted here [...]
-
-d) Each Contributor represents that to its knowledge it has sufficient copyright rights in its Contribution, if any, to grant the copyright license set forth in this Agreement.
-
-3. REQUIREMENTS
-
-A Contributor may choose to distribute the Program in object code form under its own license agreement, provided that:
-
-a) it complies with the terms and conditions of this Agreement; and
-
-b) its license agreement:
-
-i) effectively disclaims on behalf of all Contributors all warranties and conditions, express and implied, including warranties or conditions of title and non-infringement, and implied warranties or conditions of merchantability and fitness for a particular purpose;
-
-ii) effectively excludes on behalf of all Contributors all liability for damages, including direct, indirect, special, incidental and consequential damages, such as lost profits;
-
-iii) states that any provisions which differ from this Agreement are offered by that Contributor alone and not by any other party; and
-
-iv) states that source code for the Program is available from such Contributor, and informs licensees how to obtain it in a reasonable manner on or through a medium customarily used for software exchange.
-
-When the Program is made available in source code form:
-
-a) it must be made available under this Agreement; and
-
-b) a copy of this Agreement must be included with each copy of the Program.
-
-Contributors may not remove or alter any copyright notices contained within the Program.
-
-Each Contributor must identify itself as the originator of its Contribution, if any, in a manner that reasonably allows subsequent Recipients to identify the originator of the Contribution.
-
-4. COMMERCIAL DISTRIBUTION
-
-Commercial distributors of software may accept certain responsibilities with respect to end users, business partners and the like. While this license is intended to facilitate the commercial use of the Program, the Contributor who includes the Program in a commercial product offering should do so in a manner which does not create potential liability for other Contributors. Therefore, if a Contributor includes the Program in a commercial product offering, such Contributor ("Commercial Con [...]
-
-For example, a Contributor might include the Program in a commercial product offering, Product X. That Contributor is then a Commercial Contributor. If that Commercial Contributor then makes performance claims, or offers warranties related to Product X, those performance claims and warranties are such Commercial Contributor's responsibility alone. Under this section, the Commercial Contributor would have to defend claims against the other Contributors related to those performance claims  [...]
-
-5. NO WARRANTY
-
-EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely responsible for determining the appropriateness of using and distributing the Program and assumes all risks associated with its exercise of rights under this Ag [...]
-
-6. DISCLAIMER OF LIABILITY
-
-EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF [...]
-
-7. GENERAL
-
-If any provision of this Agreement is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this Agreement, and without further action by the parties hereto, such provision shall be reformed to the minimum extent necessary to make such provision valid and enforceable.
-
-If Recipient institutes patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Program itself (excluding combinations of the Program with other software or hardware) infringes such Recipient's patent(s), then such Recipient's rights granted under Section 2(b) shall terminate as of the date such litigation is filed.
-
-All Recipient's rights under this Agreement shall terminate if it fails to comply with any of the material terms or conditions of this Agreement and does not cure such failure in a reasonable period of time after becoming aware of such noncompliance. If all Recipient's rights under this Agreement terminate, Recipient agrees to cease use and distribution of the Program as soon as reasonably practicable. However, Recipient's obligations under this Agreement and any licenses granted by Reci [...]
-
-Everyone is permitted to copy and distribute copies of this Agreement, but in order to avoid inconsistency the Agreement is copyrighted and may only be modified in the following manner. The Agreement Steward reserves the right to publish new versions (including revisions) of this Agreement from time to time. No one other than the Agreement Steward has the right to modify this Agreement. The Eclipse Foundation is the initial Agreement Steward. The Eclipse Foundation may assign the respons [...]
-
-This Agreement is governed by the laws of the State of New York and the intellectual property laws of the United States of America. No party to this Agreement will bring a legal action under this Agreement more than one year after the cause of action arose. Each party waives its rights to a jury trial in any resulting litigation.
diff --git a/oas-validator/distribution/src/release/licenses/LICENSE-hamcrest b/oas-validator/distribution/src/release/licenses/LICENSE-hamcrest
deleted file mode 100755
index dcdcc42..0000000
--- a/oas-validator/distribution/src/release/licenses/LICENSE-hamcrest
+++ /dev/null
@@ -1,27 +0,0 @@
-BSD License
-
-Copyright (c) 2000-2006, www.hamcrest.org
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
-
-Redistributions of source code must retain the above copyright notice, this list of
-conditions and the following disclaimer. Redistributions in binary form must reproduce
-the above copyright notice, this list of conditions and the following disclaimer in
-the documentation and/or other materials provided with the distribution.
-
-Neither the name of Hamcrest nor the names of its contributors may be used to endorse
-or promote products derived from this software without specific prior written
-permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
-EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
-OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
-SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
-INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
-TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
-BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
-WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
-DAMAGE.
diff --git a/oas-validator/distribution/src/release/licenses/LICENSE-jopt b/oas-validator/distribution/src/release/licenses/LICENSE-jopt
deleted file mode 100755
index 7cb505b..0000000
--- a/oas-validator/distribution/src/release/licenses/LICENSE-jopt
+++ /dev/null
@@ -1,22 +0,0 @@
-The MIT License
-
-Copyright (c) 2004-2016 Paul R. Holser, Jr.
-
-Permission is hereby granted, free of charge, to any person obtaining
-a copy of this software and associated documentation files (the
-"Software"), to deal in the Software without restriction, including
-without limitation the rights to use, copy, modify, merge, publish,
-distribute, sublicense, and/or sell copies of the Software, and to
-permit persons to whom the Software is furnished to do so, subject to
-the following conditions:
-
-The above copyright notice and this permission notice shall be
-included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/oas-validator/distribution/src/release/licenses/LICENSE-lombok b/oas-validator/distribution/src/release/licenses/LICENSE-lombok
deleted file mode 100755
index 5da7dbe..0000000
--- a/oas-validator/distribution/src/release/licenses/LICENSE-lombok
+++ /dev/null
@@ -1,19 +0,0 @@
-Copyright (C) 2009-2015 The Project Lombok Authors.
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/oas-validator/distribution/src/release/licenses/LICENSE-mit b/oas-validator/distribution/src/release/licenses/LICENSE-mit
deleted file mode 100755
index 244229e..0000000
--- a/oas-validator/distribution/src/release/licenses/LICENSE-mit
+++ /dev/null
@@ -1,21 +0,0 @@
-MIT License
-
-Copyright (c)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
diff --git a/oas-validator/distribution/src/release/licenses/LICENSE-mockito b/oas-validator/distribution/src/release/licenses/LICENSE-mockito
deleted file mode 100755
index 5a311f7..0000000
--- a/oas-validator/distribution/src/release/licenses/LICENSE-mockito
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License
-
-Copyright (c) 2007 Mockito contributors
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/oas-validator/distribution/src/release/licenses/LICENSE-mpl-v20 b/oas-validator/distribution/src/release/licenses/LICENSE-mpl-v20
deleted file mode 100755
index 14e2f77..0000000
--- a/oas-validator/distribution/src/release/licenses/LICENSE-mpl-v20
+++ /dev/null
@@ -1,373 +0,0 @@
-Mozilla Public License Version 2.0
-==================================
-
-1. Definitions
---------------
-
-1.1. "Contributor"
-    means each individual or legal entity that creates, contributes to
-    the creation of, or owns Covered Software.
-
-1.2. "Contributor Version"
-    means the combination of the Contributions of others (if any) used
-    by a Contributor and that particular Contributor's Contribution.
-
-1.3. "Contribution"
-    means Covered Software of a particular Contributor.
-
-1.4. "Covered Software"
-    means Source Code Form to which the initial Contributor has attached
-    the notice in Exhibit A, the Executable Form of such Source Code
-    Form, and Modifications of such Source Code Form, in each case
-    including portions thereof.
-
-1.5. "Incompatible With Secondary Licenses"
-    means
-
-    (a) that the initial Contributor has attached the notice described
-        in Exhibit B to the Covered Software; or
-
-    (b) that the Covered Software was made available under the terms of
-        version 1.1 or earlier of the License, but not also under the
-        terms of a Secondary License.
-
-1.6. "Executable Form"
-    means any form of the work other than Source Code Form.
-
-1.7. "Larger Work"
-    means a work that combines Covered Software with other material, in 
-    a separate file or files, that is not Covered Software.
-
-1.8. "License"
-    means this document.
-
-1.9. "Licensable"
-    means having the right to grant, to the maximum extent possible,
-    whether at the time of the initial grant or subsequently, any and
-    all of the rights conveyed by this License.
-
-1.10. "Modifications"
-    means any of the following:
-
-    (a) any file in Source Code Form that results from an addition to,
-        deletion from, or modification of the contents of Covered
-        Software; or
-
-    (b) any new file in Source Code Form that contains any Covered
-        Software.
-
-1.11. "Patent Claims" of a Contributor
-    means any patent claim(s), including without limitation, method,
-    process, and apparatus claims, in any patent Licensable by such
-    Contributor that would be infringed, but for the grant of the
-    License, by the making, using, selling, offering for sale, having
-    made, import, or transfer of either its Contributions or its
-    Contributor Version.
-
-1.12. "Secondary License"
-    means either the GNU General Public License, Version 2.0, the GNU
-    Lesser General Public License, Version 2.1, the GNU Affero General
-    Public License, Version 3.0, or any later versions of those
-    licenses.
-
-1.13. "Source Code Form"
-    means the form of the work preferred for making modifications.
-
-1.14. "You" (or "Your")
-    means an individual or a legal entity exercising rights under this
-    License. For legal entities, "You" includes any entity that
-    controls, is controlled by, or is under common control with You. For
-    purposes of this definition, "control" means (a) the power, direct
-    or indirect, to cause the direction or management of such entity,
-    whether by contract or otherwise, or (b) ownership of more than
-    fifty percent (50%) of the outstanding shares or beneficial
-    ownership of such entity.
-
-2. License Grants and Conditions
---------------------------------
-
-2.1. Grants
-
-Each Contributor hereby grants You a world-wide, royalty-free,
-non-exclusive license:
-
-(a) under intellectual property rights (other than patent or trademark)
-    Licensable by such Contributor to use, reproduce, make available,
-    modify, display, perform, distribute, and otherwise exploit its
-    Contributions, either on an unmodified basis, with Modifications, or
-    as part of a Larger Work; and
-
-(b) under Patent Claims of such Contributor to make, use, sell, offer
-    for sale, have made, import, and otherwise transfer either its
-    Contributions or its Contributor Version.
-
-2.2. Effective Date
-
-The licenses granted in Section 2.1 with respect to any Contribution
-become effective for each Contribution on the date the Contributor first
-distributes such Contribution.
-
-2.3. Limitations on Grant Scope
-
-The licenses granted in this Section 2 are the only rights granted under
-this License. No additional rights or licenses will be implied from the
-distribution or licensing of Covered Software under this License.
-Notwithstanding Section 2.1(b) above, no patent license is granted by a
-Contributor:
-
-(a) for any code that a Contributor has removed from Covered Software;
-    or
-
-(b) for infringements caused by: (i) Your and any other third party's
-    modifications of Covered Software, or (ii) the combination of its
-    Contributions with other software (except as part of its Contributor
-    Version); or
-
-(c) under Patent Claims infringed by Covered Software in the absence of
-    its Contributions.
-
-This License does not grant any rights in the trademarks, service marks,
-or logos of any Contributor (except as may be necessary to comply with
-the notice requirements in Section 3.4).
-
-2.4. Subsequent Licenses
-
-No Contributor makes additional grants as a result of Your choice to
-distribute the Covered Software under a subsequent version of this
-License (see Section 10.2) or under the terms of a Secondary License (if
-permitted under the terms of Section 3.3).
-
-2.5. Representation
-
-Each Contributor represents that the Contributor believes its
-Contributions are its original creation(s) or it has sufficient rights
-to grant the rights to its Contributions conveyed by this License.
-
-2.6. Fair Use
-
-This License is not intended to limit any rights You have under
-applicable copyright doctrines of fair use, fair dealing, or other
-equivalents.
-
-2.7. Conditions
-
-Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted
-in Section 2.1.
-
-3. Responsibilities
--------------------
-
-3.1. Distribution of Source Form
-
-All distribution of Covered Software in Source Code Form, including any
-Modifications that You create or to which You contribute, must be under
-the terms of this License. You must inform recipients that the Source
-Code Form of the Covered Software is governed by the terms of this
-License, and how they can obtain a copy of this License. You may not
-attempt to alter or restrict the recipients' rights in the Source Code
-Form.
-
-3.2. Distribution of Executable Form
-
-If You distribute Covered Software in Executable Form then:
-
-(a) such Covered Software must also be made available in Source Code
-    Form, as described in Section 3.1, and You must inform recipients of
-    the Executable Form how they can obtain a copy of such Source Code
-    Form by reasonable means in a timely manner, at a charge no more
-    than the cost of distribution to the recipient; and
-
-(b) You may distribute such Executable Form under the terms of this
-    License, or sublicense it under different terms, provided that the
-    license for the Executable Form does not attempt to limit or alter
-    the recipients' rights in the Source Code Form under this License.
-
-3.3. Distribution of a Larger Work
-
-You may create and distribute a Larger Work under terms of Your choice,
-provided that You also comply with the requirements of this License for
-the Covered Software. If the Larger Work is a combination of Covered
-Software with a work governed by one or more Secondary Licenses, and the
-Covered Software is not Incompatible With Secondary Licenses, this
-License permits You to additionally distribute such Covered Software
-under the terms of such Secondary License(s), so that the recipient of
-the Larger Work may, at their option, further distribute the Covered
-Software under the terms of either this License or such Secondary
-License(s).
-
-3.4. Notices
-
-You may not remove or alter the substance of any license notices
-(including copyright notices, patent notices, disclaimers of warranty,
-or limitations of liability) contained within the Source Code Form of
-the Covered Software, except that You may alter any license notices to
-the extent required to remedy known factual inaccuracies.
-
-3.5. Application of Additional Terms
-
-You may choose to offer, and to charge a fee for, warranty, support,
-indemnity or liability obligations to one or more recipients of Covered
-Software. However, You may do so only on Your own behalf, and not on
-behalf of any Contributor. You must make it absolutely clear that any
-such warranty, support, indemnity, or liability obligation is offered by
-You alone, and You hereby agree to indemnify every Contributor for any
-liability incurred by such Contributor as a result of warranty, support,
-indemnity or liability terms You offer. You may include additional
-disclaimers of warranty and limitations of liability specific to any
-jurisdiction.
-
-4. Inability to Comply Due to Statute or Regulation
----------------------------------------------------
-
-If it is impossible for You to comply with any of the terms of this
-License with respect to some or all of the Covered Software due to
-statute, judicial order, or regulation then You must: (a) comply with
-the terms of this License to the maximum extent possible; and (b)
-describe the limitations and the code they affect. Such description must
-be placed in a text file included with all distributions of the Covered
-Software under this License. Except to the extent prohibited by statute
-or regulation, such description must be sufficiently detailed for a
-recipient of ordinary skill to be able to understand it.
-
-5. Termination
---------------
-
-5.1. The rights granted under this License will terminate automatically
-if You fail to comply with any of its terms. However, if You become
-compliant, then the rights granted under this License from a particular
-Contributor are reinstated (a) provisionally, unless and until such
-Contributor explicitly and finally terminates Your grants, and (b) on an
-ongoing basis, if such Contributor fails to notify You of the
-non-compliance by some reasonable means prior to 60 days after You have
-come back into compliance. Moreover, Your grants from a particular
-Contributor are reinstated on an ongoing basis if such Contributor
-notifies You of the non-compliance by some reasonable means, this is the
-first time You have received notice of non-compliance with this License
-from such Contributor, and You become compliant prior to 30 days after
-Your receipt of the notice.
-
-5.2. If You initiate litigation against any entity by asserting a patent
-infringement claim (excluding declaratory judgment actions,
-counter-claims, and cross-claims) alleging that a Contributor Version
-directly or indirectly infringes any patent, then the rights granted to
-You by any and all Contributors for the Covered Software under Section
-2.1 of this License shall terminate.
-
-5.3. In the event of termination under Sections 5.1 or 5.2 above, all
-end user license agreements (excluding distributors and resellers) which
-have been validly granted by You or Your distributors under this License
-prior to termination shall survive termination.
-
-************************************************************************
-*                                                                      *
-*  6. Disclaimer of Warranty                                           *
-*  -------------------------                                           *
-*                                                                      *
-*  Covered Software is provided under this License on an "as is"       *
-*  basis, without warranty of any kind, either expressed, implied, or  *
-*  statutory, including, without limitation, warranties that the       *
-*  Covered Software is free of defects, merchantable, fit for a        *
-*  particular purpose or non-infringing. The entire risk as to the     *
-*  quality and performance of the Covered Software is with You.        *
-*  Should any Covered Software prove defective in any respect, You     *
-*  (not any Contributor) assume the cost of any necessary servicing,   *
-*  repair, or correction. This disclaimer of warranty constitutes an   *
-*  essential part of this License. No use of any Covered Software is   *
-*  authorized under this License except under this disclaimer.         *
-*                                                                      *
-************************************************************************
-
-************************************************************************
-*                                                                      *
-*  7. Limitation of Liability                                          *
-*  --------------------------                                          *
-*                                                                      *
-*  Under no circumstances and under no legal theory, whether tort      *
-*  (including negligence), contract, or otherwise, shall any           *
-*  Contributor, or anyone who distributes Covered Software as          *
-*  permitted above, be liable to You for any direct, indirect,         *
-*  special, incidental, or consequential damages of any character      *
-*  including, without limitation, damages for lost profits, loss of    *
-*  goodwill, work stoppage, computer failure or malfunction, or any    *
-*  and all other commercial damages or losses, even if such party      *
-*  shall have been informed of the possibility of such damages. This   *
-*  limitation of liability shall not apply to liability for death or   *
-*  personal injury resulting from such party's negligence to the       *
-*  extent applicable law prohibits such limitation. Some               *
-*  jurisdictions do not allow the exclusion or limitation of           *
-*  incidental or consequential damages, so this exclusion and          *
-*  limitation may not apply to You.                                    *
-*                                                                      *
-************************************************************************
-
-8. Litigation
--------------
-
-Any litigation relating to this License may be brought only in the
-courts of a jurisdiction where the defendant maintains its principal
-place of business and such litigation shall be governed by laws of that
-jurisdiction, without reference to its conflict-of-law provisions.
-Nothing in this Section shall prevent a party's ability to bring
-cross-claims or counter-claims.
-
-9. Miscellaneous
-----------------
-
-This License represents the complete agreement concerning the subject
-matter hereof. If any provision of this License is held to be
-unenforceable, such provision shall be reformed only to the extent
-necessary to make it enforceable. Any law or regulation which provides
-that the language of a contract shall be construed against the drafter
-shall not be used to construe this License against a Contributor.
-
-10. Versions of the License
----------------------------
-
-10.1. New Versions
-
-Mozilla Foundation is the license steward. Except as provided in Section
-10.3, no one other than the license steward has the right to modify or
-publish new versions of this License. Each version will be given a
-distinguishing version number.
-
-10.2. Effect of New Versions
-
-You may distribute the Covered Software under the terms of the version
-of the License under which You originally received the Covered Software,
-or under the terms of any subsequent version published by the license
-steward.
-
-10.3. Modified Versions
-
-If you create software not governed by this License, and you want to
-create a new license for such software, you may create and use a
-modified version of this License if you rename the license and remove
-any references to the name of the license steward (except to note that
-such modified license differs from this License).
-
-10.4. Distributing Source Code Form that is Incompatible With Secondary
-Licenses
-
-If You choose to distribute Source Code Form that is Incompatible With
-Secondary Licenses under the terms of this version of the License, the
-notice described in Exhibit B of this License must be attached.
-
-Exhibit A - Source Code Form License Notice
--------------------------------------------
-
-  This Source Code Form is subject to the terms of the Mozilla Public
-  License, v. 2.0. If a copy of the MPL was not distributed with this
-  file, You can obtain one at http://mozilla.org/MPL/2.0/.
-
-If it is not possible or desirable to put the notice in a particular
-file, then You may include the notice in a location (such as a LICENSE
-file in a relevant directory) where a recipient would be likely to look
-for such a notice.
-
-You may add additional accurate notices of copyright ownership.
-
-Exhibit B - "Incompatible With Secondary Licenses" Notice
----------------------------------------------------------
-
-  This Source Code Form is "Incompatible With Secondary Licenses", as
-  defined by the Mozilla Public License, v. 2.0.
diff --git a/oas-validator/distribution/src/release/licenses/LICENSE-qos b/oas-validator/distribution/src/release/licenses/LICENSE-qos
deleted file mode 100755
index 0c40879..0000000
--- a/oas-validator/distribution/src/release/licenses/LICENSE-qos
+++ /dev/null
@@ -1,21 +0,0 @@
-Copyright (c) 2009 QOS.ch
-All rights reserved.
-
-Permission is hereby granted, free  of charge, to any person obtaining
-a  copy  of this  software  and  associated  documentation files  (the
-"Software"), to  deal in  the Software without  restriction, including
-without limitation  the rights to  use, copy, modify,  merge, publish,
-distribute,  sublicense, and/or sell  copies of  the Software,  and to
-permit persons to whom the Software  is furnished to do so, subject to
-the following conditions:
-
-The  above  copyright  notice  and  this permission  notice  shall  be
-included in all copies or substantial portions of the Software.
-
-THE  SOFTWARE IS  PROVIDED  "AS  IS", WITHOUT  WARRANTY  OF ANY  KIND,
-EXPRESS OR  IMPLIED, INCLUDING  BUT NOT LIMITED  TO THE  WARRANTIES OF
-MERCHANTABILITY,    FITNESS    FOR    A   PARTICULAR    PURPOSE    AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE,  ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/oas-validator/distribution/src/release/licenses/LICENSE-slf4j b/oas-validator/distribution/src/release/licenses/LICENSE-slf4j
deleted file mode 100755
index 744377c..0000000
--- a/oas-validator/distribution/src/release/licenses/LICENSE-slf4j
+++ /dev/null
@@ -1,21 +0,0 @@
-Copyright (c) 2004-2017 QOS.ch
-All rights reserved.
-
-Permission is hereby granted, free  of charge, to any person obtaining
-a  copy  of this  software  and  associated  documentation files  (the
-"Software"), to  deal in  the Software without  restriction, including
-without limitation  the rights to  use, copy, modify,  merge, publish,
-distribute,  sublicense, and/or sell  copies of  the Software,  and to
-permit persons to whom the Software  is furnished to do so, subject to
-the following conditions:
-
-The  above  copyright  notice  and  this permission  notice  shall  be
-included in all copies or substantial portions of the Software.
-
-THE  SOFTWARE IS  PROVIDED  "AS  IS", WITHOUT  WARRANTY  OF ANY  KIND,
-EXPRESS OR  IMPLIED, INCLUDING  BUT NOT LIMITED  TO THE  WARRANTIES OF
-MERCHANTABILITY,    FITNESS    FOR    A   PARTICULAR    PURPOSE    AND
-NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
-LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
-OF CONTRACT, TORT OR OTHERWISE,  ARISING FROM, OUT OF OR IN CONNECTION
-WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/oas-validator/distribution/src/release/licenses/LICENSE-webjars b/oas-validator/distribution/src/release/licenses/LICENSE-webjars
deleted file mode 100755
index 29bdee3..0000000
--- a/oas-validator/distribution/src/release/licenses/LICENSE-webjars
+++ /dev/null
@@ -1,21 +0,0 @@
-MIT License
-
-Copyright (c) 2017 James Ward
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.


[servicecomb-toolkit] 12/26: Change chmod 755 to 644 on plain test files

Posted by ni...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ningjiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/servicecomb-toolkit.git

commit 412deab6b6b74ff503843da09616faad8ad805ff
Author: Daniel Qian <ch...@gmail.com>
AuthorDate: Fri Nov 1 16:37:55 2019 +0800

    Change chmod 755 to 644 on plain test files
---
 README-ZH.md                                                              | 0
 README.md                                                                 | 0
 cli/pom.xml                                                               | 0
 codegen/pom.xml                                                           | 0
 common/pom.xml                                                            | 0
 common/src/test/resources/projects/demo-with-correct-pom/pom.xml          | 0
 common/src/test/resources/projects/demo-with-invaild-pom/pom.xml          | 0
 contractgen/pom.xml                                                       | 0
 contractgen/src/test/projects/demo/pom.xml                                | 0
 core/pom.xml                                                              | 0
 docgen/pom.xml                                                            | 0
 integration-tests/coverage-aggregate/pom.xml                              | 0
 integration-tests/pom.xml                                                 | 0
 oas-validator/oas-validator-compatibility-spring/pom.xml                  | 0
 oas-validator/oas-validator-compatibility/pom.xml                         | 0
 oas-validator/oas-validator-compliance-spring/pom.xml                     | 0
 oas-validator/oas-validator-compliance/pom.xml                            | 0
 oas-validator/oas-validator-core-spring/pom.xml                           | 0
 oas-validator/oas-validator-core/pom.xml                                  | 0
 oas-validator/oas-validator-test/pom.xml                                  | 0
 oas-validator/oas-validator-web/pom.xml                                   | 0
 oas-validator/pom.xml                                                     | 0
 pom.xml                                                                   | 0
 samples/generate-from-code-sample/GoodbyeService/pom.xml                  | 0
 samples/generate-from-code-sample/HelloService/pom.xml                    | 0
 samples/generate-from-code-sample/pom.xml                                 | 0
 samples/generate-from-contract-sample/pom.xml                             | 0
 samples/pom.xml                                                           | 0
 samples/verify-with-code-sample/GreetingService/pom.xml                   | 0
 samples/verify-with-code-sample/pom.xml                                   | 0
 toolkit-distribution/pom.xml                                              | 0
 toolkit-distribution/src/release/LICENSE                                  | 0
 toolkit-distribution/src/release/NOTICE                                   | 0
 toolkit-maven-plugin/pom.xml                                              | 0
 .../src/test/projects/demo-multi-module/first-module/pom.xml              | 0
 toolkit-maven-plugin/src/test/projects/demo-multi-module/pom.xml          | 0
 toolkit-maven-plugin/src/test/projects/demo-with-contract/pom.xml         | 0
 toolkit-maven-plugin/src/test/projects/demo-without-contract/pom.xml      | 0
 38 files changed, 0 insertions(+), 0 deletions(-)

diff --git a/README-ZH.md b/README-ZH.md
old mode 100755
new mode 100644
diff --git a/README.md b/README.md
old mode 100755
new mode 100644
diff --git a/cli/pom.xml b/cli/pom.xml
old mode 100755
new mode 100644
diff --git a/codegen/pom.xml b/codegen/pom.xml
old mode 100755
new mode 100644
diff --git a/common/pom.xml b/common/pom.xml
old mode 100755
new mode 100644
diff --git a/common/src/test/resources/projects/demo-with-correct-pom/pom.xml b/common/src/test/resources/projects/demo-with-correct-pom/pom.xml
old mode 100755
new mode 100644
diff --git a/common/src/test/resources/projects/demo-with-invaild-pom/pom.xml b/common/src/test/resources/projects/demo-with-invaild-pom/pom.xml
old mode 100755
new mode 100644
diff --git a/contractgen/pom.xml b/contractgen/pom.xml
old mode 100755
new mode 100644
diff --git a/contractgen/src/test/projects/demo/pom.xml b/contractgen/src/test/projects/demo/pom.xml
old mode 100755
new mode 100644
diff --git a/core/pom.xml b/core/pom.xml
old mode 100755
new mode 100644
diff --git a/docgen/pom.xml b/docgen/pom.xml
old mode 100755
new mode 100644
diff --git a/integration-tests/coverage-aggregate/pom.xml b/integration-tests/coverage-aggregate/pom.xml
old mode 100755
new mode 100644
diff --git a/integration-tests/pom.xml b/integration-tests/pom.xml
old mode 100755
new mode 100644
diff --git a/oas-validator/oas-validator-compatibility-spring/pom.xml b/oas-validator/oas-validator-compatibility-spring/pom.xml
old mode 100755
new mode 100644
diff --git a/oas-validator/oas-validator-compatibility/pom.xml b/oas-validator/oas-validator-compatibility/pom.xml
old mode 100755
new mode 100644
diff --git a/oas-validator/oas-validator-compliance-spring/pom.xml b/oas-validator/oas-validator-compliance-spring/pom.xml
old mode 100755
new mode 100644
diff --git a/oas-validator/oas-validator-compliance/pom.xml b/oas-validator/oas-validator-compliance/pom.xml
old mode 100755
new mode 100644
diff --git a/oas-validator/oas-validator-core-spring/pom.xml b/oas-validator/oas-validator-core-spring/pom.xml
old mode 100755
new mode 100644
diff --git a/oas-validator/oas-validator-core/pom.xml b/oas-validator/oas-validator-core/pom.xml
old mode 100755
new mode 100644
diff --git a/oas-validator/oas-validator-test/pom.xml b/oas-validator/oas-validator-test/pom.xml
old mode 100755
new mode 100644
diff --git a/oas-validator/oas-validator-web/pom.xml b/oas-validator/oas-validator-web/pom.xml
old mode 100755
new mode 100644
diff --git a/oas-validator/pom.xml b/oas-validator/pom.xml
old mode 100755
new mode 100644
diff --git a/pom.xml b/pom.xml
old mode 100755
new mode 100644
diff --git a/samples/generate-from-code-sample/GoodbyeService/pom.xml b/samples/generate-from-code-sample/GoodbyeService/pom.xml
old mode 100755
new mode 100644
diff --git a/samples/generate-from-code-sample/HelloService/pom.xml b/samples/generate-from-code-sample/HelloService/pom.xml
old mode 100755
new mode 100644
diff --git a/samples/generate-from-code-sample/pom.xml b/samples/generate-from-code-sample/pom.xml
old mode 100755
new mode 100644
diff --git a/samples/generate-from-contract-sample/pom.xml b/samples/generate-from-contract-sample/pom.xml
old mode 100755
new mode 100644
diff --git a/samples/pom.xml b/samples/pom.xml
old mode 100755
new mode 100644
diff --git a/samples/verify-with-code-sample/GreetingService/pom.xml b/samples/verify-with-code-sample/GreetingService/pom.xml
old mode 100755
new mode 100644
diff --git a/samples/verify-with-code-sample/pom.xml b/samples/verify-with-code-sample/pom.xml
old mode 100755
new mode 100644
diff --git a/toolkit-distribution/pom.xml b/toolkit-distribution/pom.xml
old mode 100755
new mode 100644
diff --git a/toolkit-distribution/src/release/LICENSE b/toolkit-distribution/src/release/LICENSE
old mode 100755
new mode 100644
diff --git a/toolkit-distribution/src/release/NOTICE b/toolkit-distribution/src/release/NOTICE
old mode 100755
new mode 100644
diff --git a/toolkit-maven-plugin/pom.xml b/toolkit-maven-plugin/pom.xml
old mode 100755
new mode 100644
diff --git a/toolkit-maven-plugin/src/test/projects/demo-multi-module/first-module/pom.xml b/toolkit-maven-plugin/src/test/projects/demo-multi-module/first-module/pom.xml
old mode 100755
new mode 100644
diff --git a/toolkit-maven-plugin/src/test/projects/demo-multi-module/pom.xml b/toolkit-maven-plugin/src/test/projects/demo-multi-module/pom.xml
old mode 100755
new mode 100644
diff --git a/toolkit-maven-plugin/src/test/projects/demo-with-contract/pom.xml b/toolkit-maven-plugin/src/test/projects/demo-with-contract/pom.xml
old mode 100755
new mode 100644
diff --git a/toolkit-maven-plugin/src/test/projects/demo-without-contract/pom.xml b/toolkit-maven-plugin/src/test/projects/demo-without-contract/pom.xml
old mode 100755
new mode 100644


[servicecomb-toolkit] 11/26: SCB-1553 Integrate oas-validator compliance check to cli Add oas-validator to coverage test

Posted by ni...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ningjiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/servicecomb-toolkit.git

commit deb82533500bae9db94653144362e819d70d64d9
Author: Daniel Qian <ch...@gmail.com>
AuthorDate: Fri Nov 1 16:34:53 2019 +0800

    SCB-1553 Integrate oas-validator compliance check to cli
    Add oas-validator to coverage test
---
 integration-tests/coverage-aggregate/pom.xml | 34 +++++++++++++++++++++++++++-
 1 file changed, 33 insertions(+), 1 deletion(-)

diff --git a/integration-tests/coverage-aggregate/pom.xml b/integration-tests/coverage-aggregate/pom.xml
index b9ade7f..f34941b 100755
--- a/integration-tests/coverage-aggregate/pom.xml
+++ b/integration-tests/coverage-aggregate/pom.xml
@@ -58,6 +58,38 @@
       <groupId>org.apache.servicecomb.toolkit</groupId>
       <artifactId>toolkit-maven-plugin</artifactId>
     </dependency>
+
+    <dependency>
+      <groupId>org.apache.servicecomb.toolkit</groupId>
+      <artifactId>oas-validator-core</artifactId>
+      <version>${project.version}</version>
+    </dependency>
+
+    <dependency>
+      <groupId>org.apache.servicecomb.toolkit</groupId>
+      <artifactId>oas-validator-core-spring</artifactId>
+    </dependency>
+
+    <dependency>
+      <groupId>org.apache.servicecomb.toolkit</groupId>
+      <artifactId>oas-validator-compliance</artifactId>
+    </dependency>
+
+    <dependency>
+      <groupId>org.apache.servicecomb.toolkit</groupId>
+      <artifactId>oas-validator-compliance-spring</artifactId>
+    </dependency>
+
+    <dependency>
+      <groupId>org.apache.servicecomb.toolkit</groupId>
+      <artifactId>oas-validator-compatibility</artifactId>
+    </dependency>
+
+    <dependency>
+      <groupId>org.apache.servicecomb.toolkit</groupId>
+      <artifactId>oas-validator-compatibility-spring</artifactId>
+    </dependency>
+
   </dependencies>
 
   <profiles>
@@ -82,4 +114,4 @@
     </profile>
   </profiles>
 
-</project>
\ No newline at end of file
+</project>


[servicecomb-toolkit] 15/26: SCB-1553 Integrate oas-validator compliance check to cli Fix too many logs cause travis ci broken issue.

Posted by ni...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ningjiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/servicecomb-toolkit.git

commit 3f107a7690c63d8e6e0dd7dde7a17edac9f26de5
Author: Daniel Qian <ch...@gmail.com>
AuthorDate: Mon Nov 4 16:22:00 2019 +0800

    SCB-1553 Integrate oas-validator compliance check to cli
    Fix too many logs cause travis ci broken issue.
---
 .../oas-validator-compatibility-spring/pom.xml     |  2 --
 oas-validator/oas-validator-compatibility/pom.xml  |  3 ---
 .../src/test/resources/logback-test.xml            | 22 ++++++++++++++++++++++
 .../oas-validator-compliance-spring/pom.xml        |  2 --
 oas-validator/oas-validator-compliance/pom.xml     |  9 +--------
 .../src/test/resources/logback-test.xml            | 22 ++++++++++++++++++++++
 oas-validator/oas-validator-core-spring/pom.xml    |  1 -
 oas-validator/oas-validator-test/pom.xml           |  1 -
 oas-validator/oas-validator-web/pom.xml            |  5 -----
 9 files changed, 45 insertions(+), 22 deletions(-)

diff --git a/oas-validator/oas-validator-compatibility-spring/pom.xml b/oas-validator/oas-validator-compatibility-spring/pom.xml
index 8a262a4..7a4c85b 100644
--- a/oas-validator/oas-validator-compatibility-spring/pom.xml
+++ b/oas-validator/oas-validator-compatibility-spring/pom.xml
@@ -35,13 +35,11 @@
     <dependency>
       <groupId>org.apache.servicecomb.toolkit</groupId>
       <artifactId>oas-validator-compatibility</artifactId>
-      <version>${project.version}</version>
     </dependency>
 
     <dependency>
       <groupId>org.apache.servicecomb.toolkit</groupId>
       <artifactId>oas-validator-core-spring</artifactId>
-      <version>${project.version}</version>
     </dependency>
     
     <dependency>
diff --git a/oas-validator/oas-validator-compatibility/pom.xml b/oas-validator/oas-validator-compatibility/pom.xml
index 926f9c0..2e95188 100644
--- a/oas-validator/oas-validator-compatibility/pom.xml
+++ b/oas-validator/oas-validator-compatibility/pom.xml
@@ -35,21 +35,18 @@
     <dependency>
       <groupId>org.apache.servicecomb.toolkit</groupId>
       <artifactId>oas-validator-core</artifactId>
-      <version>${project.version}</version>
     </dependency>
 
     <!-- test deps -->
     <dependency>
       <groupId>org.apache.servicecomb.toolkit</groupId>
       <artifactId>oas-validator-test</artifactId>
-      <version>${project.version}</version>
       <scope>test</scope>
     </dependency>
 
     <dependency>
       <groupId>org.apache.servicecomb.toolkit</groupId>
       <artifactId>oas-validator-core-spring</artifactId>
-      <version>${project.version}</version>
       <scope>test</scope>
     </dependency>
 
diff --git a/oas-validator/oas-validator-compatibility/src/test/resources/logback-test.xml b/oas-validator/oas-validator-compatibility/src/test/resources/logback-test.xml
new file mode 100644
index 0000000..a1ba69a
--- /dev/null
+++ b/oas-validator/oas-validator-compatibility/src/test/resources/logback-test.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one or more
+  ~ contributor license agreements.  See the NOTICE file distributed with
+  ~ this work for additional information regarding copyright ownership.
+  ~ The ASF licenses this file to You under the Apache License, Version 2.0
+  ~ (the "License"); you may not use this file except in compliance with
+  ~ the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing, software
+  ~ distributed under the License is distributed on an "AS IS" BASIS,
+  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  ~ See the License for the specific language governing permissions and
+  ~ limitations under the License.
+  -->
+
+<configuration>
+  <include resource="org/springframework/boot/logging/logback/base.xml" />
+  <logger name="org.springframework" level="OFF"/>
+</configuration>
diff --git a/oas-validator/oas-validator-compliance-spring/pom.xml b/oas-validator/oas-validator-compliance-spring/pom.xml
index 91ffb81..5e4b0f9 100644
--- a/oas-validator/oas-validator-compliance-spring/pom.xml
+++ b/oas-validator/oas-validator-compliance-spring/pom.xml
@@ -35,13 +35,11 @@
     <dependency>
       <groupId>org.apache.servicecomb.toolkit</groupId>
       <artifactId>oas-validator-compliance</artifactId>
-      <version>${project.version}</version>
     </dependency>
 
     <dependency>
       <groupId>org.apache.servicecomb.toolkit</groupId>
       <artifactId>oas-validator-core-spring</artifactId>
-      <version>${project.version}</version>
     </dependency>
 
     <dependency>
diff --git a/oas-validator/oas-validator-compliance/pom.xml b/oas-validator/oas-validator-compliance/pom.xml
index 0e40c26..33b4f42 100644
--- a/oas-validator/oas-validator-compliance/pom.xml
+++ b/oas-validator/oas-validator-compliance/pom.xml
@@ -39,7 +39,6 @@
     <dependency>
       <groupId>org.apache.servicecomb.toolkit</groupId>
       <artifactId>oas-validator-core</artifactId>
-      <version>${project.version}</version>
     </dependency>
 
     <dependency>
@@ -52,13 +51,7 @@
       <artifactId>slf4j-api</artifactId>
       <scope>provided</scope>
     </dependency>
-
-    <dependency>
-      <groupId>org.slf4j</groupId>
-      <artifactId>jul-to-slf4j</artifactId>
-      <scope>provided</scope>
-    </dependency>
-
+    
     <!-- test deps -->
     <dependency>
       <groupId>org.apache.servicecomb.toolkit</groupId>
diff --git a/oas-validator/oas-validator-compliance/src/test/resources/logback-test.xml b/oas-validator/oas-validator-compliance/src/test/resources/logback-test.xml
new file mode 100644
index 0000000..a1ba69a
--- /dev/null
+++ b/oas-validator/oas-validator-compliance/src/test/resources/logback-test.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one or more
+  ~ contributor license agreements.  See the NOTICE file distributed with
+  ~ this work for additional information regarding copyright ownership.
+  ~ The ASF licenses this file to You under the Apache License, Version 2.0
+  ~ (the "License"); you may not use this file except in compliance with
+  ~ the License.  You may obtain a copy of the License at
+  ~
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing, software
+  ~ distributed under the License is distributed on an "AS IS" BASIS,
+  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  ~ See the License for the specific language governing permissions and
+  ~ limitations under the License.
+  -->
+
+<configuration>
+  <include resource="org/springframework/boot/logging/logback/base.xml" />
+  <logger name="org.springframework" level="OFF"/>
+</configuration>
diff --git a/oas-validator/oas-validator-core-spring/pom.xml b/oas-validator/oas-validator-core-spring/pom.xml
index 166649c..a03cfca 100644
--- a/oas-validator/oas-validator-core-spring/pom.xml
+++ b/oas-validator/oas-validator-core-spring/pom.xml
@@ -35,7 +35,6 @@
     <dependency>
       <groupId>org.apache.servicecomb.toolkit</groupId>
       <artifactId>oas-validator-core</artifactId>
-      <version>${project.version}</version>
     </dependency>
 
     <dependency>
diff --git a/oas-validator/oas-validator-test/pom.xml b/oas-validator/oas-validator-test/pom.xml
index e5b9c90..0260b32 100644
--- a/oas-validator/oas-validator-test/pom.xml
+++ b/oas-validator/oas-validator-test/pom.xml
@@ -35,7 +35,6 @@
     <dependency>
       <groupId>org.apache.servicecomb.toolkit</groupId>
       <artifactId>oas-validator-core</artifactId>
-      <version>${project.version}</version>
     </dependency>
 
     <dependency>
diff --git a/oas-validator/oas-validator-web/pom.xml b/oas-validator/oas-validator-web/pom.xml
index 5deaf60..f65b1c6 100644
--- a/oas-validator/oas-validator-web/pom.xml
+++ b/oas-validator/oas-validator-web/pom.xml
@@ -47,23 +47,18 @@
     <dependency>
       <groupId>org.apache.servicecomb.toolkit</groupId>
       <artifactId>oas-validator-core-spring</artifactId>
-      <version>${project.version}</version>
     </dependency>
     
     <dependency>
       <groupId>org.apache.servicecomb.toolkit</groupId>
       <artifactId>oas-validator-compatibility-spring</artifactId>
-      <version>${project.version}</version>
     </dependency>
 
     <dependency>
       <groupId>org.apache.servicecomb.toolkit</groupId>
       <artifactId>oas-validator-compliance-spring</artifactId>
-      <version>${project.version}</version>
     </dependency>
 
-
-
     <dependency>
       <groupId>org.springframework.boot</groupId>
       <artifactId>spring-boot-starter</artifactId>