Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #7 add support for v3 #11

Merged
merged 5 commits into from
Jul 12, 2019
Merged

Fix #7 add support for v3 #11

merged 5 commits into from
Jul 12, 2019

Conversation

JFCote
Copy link
Member

@JFCote JFCote commented Jul 11, 2019

Added support for v2 and v3 using EMPOA as suggested by @jmini

# Conflicts:
#	modules/cli/src/main/java/org/openapitools/openapistylevalidator/Main.java
#	modules/lib/src/main/java/org/openapitools/openapistylevalidator/ErrorAggregator.java
#	modules/lib/src/main/java/org/openapitools/openapistylevalidator/OpenApiSpecStyleValidator.java
@JFCote JFCote requested a review from jmini July 11, 2019 15:00
@JFCote
Copy link
Member Author

JFCote commented Jul 11, 2019

This is not the final commit. Blocked by this: swagger-api/swagger-parser#1149

Copy link
Member

@jmini jmini left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@jmini
Copy link
Member

jmini commented Jul 12, 2019

I was wondering but you do not have any test for OpenApiSpecStyleValidator in the core module.

I think it would be interesting to have 1 or 2 simple cases tested.

In order to do so, you can:

  • Work with: spec files + swagger-parser + empoa-swagger-core (as you do in the cli)
  • Work with an other implementation of the Eclipse-MP-OpenAPI. I have written one that is implementing the interfaces as simple POJO. If you decided to go for this you will need to create the OpenAPI instance with code (which is possible).

If you are interested by the second approach, I can give you more pointers.

@JFCote JFCote merged commit 107a834 into master Jul 12, 2019
@JFCote JFCote deleted the fix-7-add-support-for-v3 branch July 12, 2019 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants