Skip to content

SCB-1580 Configurable oas style check rules#52

Merged
WillemJiang merged 10 commits intoapache:masterfrom
chanjarster:scb-1580-config-oas-style-check-rules
Nov 21, 2019
Merged

SCB-1580 Configurable oas style check rules#52
WillemJiang merged 10 commits intoapache:masterfrom
chanjarster:scb-1580-config-oas-style-check-rules

Conversation

@chanjarster
Copy link
Member

@chanjarster chanjarster commented Nov 20, 2019

  1. Make *ValidatorFactory create *Validators by FactoryOptions
  2. Remove @configuration and use *ValidatorFactory instead
  3. Update cli and oas-validator-web to adapt to the change mentioned above
  4. Some unit test codes

Make ValidatorFactory create validators by options
Remove oas-validator-compliance-spring because we use ValidatorFactory to
create validators.
Provide unit test for ValidatorFactory
Remove useless spring configurations
Modify test script, make it usable in local environment
@chanjarster chanjarster added the enhancement New feature or request label Nov 20, 2019
Copy link
Member

@WillemJiang WillemJiang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

too many line to review.
Can you summarize what did you do?

* oas-validator-core-spring,骨架的Spring Boot Starter
* oas-validator-test,核心API的测试帮助类
* oas-validator-compliance,合规性校验实现
* oas-validator-compliance-spring,合规性校验的Spring Boot Starter
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why did you remove this line.

Copy link
Member Author

@chanjarster chanjarster Nov 21, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oas-validator-compliance-spring directly @configuration *Validator beans, which are not configurable. While we use *ValidatorFactory now, so we can abandon it.

Related commit:

@chanjarster
Copy link
Member Author

@WillemJiang what this PR does are:

  1. Make *ValidatorFactory create *Validators by FactoryOptions
  2. Remove @configuration and use *ValidatorFactory instead
  3. Update cli and oas-validator-web to adapt to the change mentioned above
  4. Some unit test codes

@WillemJiang WillemJiang merged commit 6929772 into apache:master Nov 21, 2019
@chanjarster chanjarster deleted the scb-1580-config-oas-style-check-rules branch November 21, 2019 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants