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

Commits on Nov 16, 2024

  1. Add OpenAPI verifier to verify endpoints against OpenAPI spec

    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 committed Nov 16, 2024
    Configuration menu
    Copy the full SHA
    7f867c6 View commit details
    Browse the repository at this point in the history