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

Added Swagger (OpenAPI) integration for API contract validation #1918

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

KyrillosNageh
Copy link
Contributor

Summary:

  • Added Swagger (OpenAPI) contract validation for API testing in SHAFT.
  • Supports both Swagger 2.x and OpenAPI 3.x.
  • Automatically validates API responses against schema.
  • Integrated into perform() method for seamless testing.

📌 Related Issue: #1917

@KyrillosNageh KyrillosNageh marked this pull request as draft February 28, 2025 10:51
Copy link

codecov bot commented Feb 28, 2025

Codecov Report

Attention: Patch coverage is 26.88172% with 68 lines in your changes missing coverage. Please review.

Project coverage is 49.87%. Comparing base (f9e245d) to head (093b1ec).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...c/main/java/com/shaft/tools/io/SwaggerManager.java 24.67% 49 Missing and 9 partials ⚠️
src/main/java/com/shaft/api/RequestBuilder.java 35.71% 8 Missing and 1 partial ⚠️
...c/main/java/com/shaft/properties/internal/Api.java 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main    #1918      +/-   ##
============================================
- Coverage     52.40%   49.87%   -2.53%     
+ Complexity     1398     1337      -61     
============================================
  Files           115      117       +2     
  Lines         10574    10665      +91     
  Branches       1048     1070      +22     
============================================
- Hits           5541     5319     -222     
- Misses         4372     4687     +315     
+ Partials        661      659       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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