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

Closed

Conversation

vishwamartur
Copy link

@vishwamartur vishwamartur commented Nov 16, 2024

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

/claim #3645

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

Copy link

algora-pbc bot commented Nov 23, 2024

💵 To receive payouts, sign up on Algora, link your Github account and connect with Stripe.

@adamw
Copy link
Member

adamw commented Nov 25, 2024

This looks like an AI-generated skeleton. Reopen once you have a tested, working solution.

@adamw adamw closed this Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants