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

Add OpenAPI verifier to verify endpoints against OpenAPI spec #4174

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vishwamartur
Copy link

Related to #3645

Implement OpenAPIVerifier in the openapi-docs module to verify endpoints against a given OpenAPI spec.

  • Add OpenAPIVerifier class in docs/openapi-docs/src/main/scala/sttp/tapir/docs/openapi/OpenAPIVerifier.scala
    • Implement three modes: exact, at-least, and at-most
    • Use OpenAPIComparator to compare OpenAPI instances
  • Add tests for OpenAPIVerifier in docs/openapi-docs/src/test/scalajvm/sttp/tapir/docs/openapi/OpenAPIVerifierTest.scala
    • Test all three modes: exact, at-least, and at-most
    • Use sample endpoints and OpenAPI specs for testing

Related to softwaremill#3645

Implement `OpenAPIVerifier` in the `openapi-docs` module to verify endpoints against a given OpenAPI spec.

* Add `OpenAPIVerifier` class in `docs/openapi-docs/src/main/scala/sttp/tapir/docs/openapi/OpenAPIVerifier.scala`
  - Implement three modes: exact, at-least, and at-most
  - Use `OpenAPIComparator` to compare `OpenAPI` instances
* Add tests for `OpenAPIVerifier` in `docs/openapi-docs/src/test/scalajvm/sttp/tapir/docs/openapi/OpenAPIVerifierTest.scala`
  - Test all three modes: exact, at-least, and at-most
  - Use sample endpoints and OpenAPI specs for testing
@vishwamartur
Copy link
Author

/claim #3645

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.

1 participant