ci: add API and database Schema validation workflow#9710
Merged
likhinbopanna merged 18 commits intomainfrom Dec 15, 2025
Merged
ci: add API and database Schema validation workflow#9710likhinbopanna merged 18 commits intomainfrom
likhinbopanna merged 18 commits intomainfrom
Conversation
Changed Files
|
pixincreate
reviewed
Oct 8, 2025
| - name: Install oasdiff | ||
| run: | | ||
| go install github.com/oasdiff/oasdiff@latest | ||
| echo "$HOME/go/bin" >> $GITHUB_PATH |
Contributor
Author
There was a problem hiding this comment.
Go installs binaries into $HOME/go/bin, which is user-specific . so explicitly add it
d241764 to
c970695
Compare
pixincreate
previously approved these changes
Oct 24, 2025
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #9710 +/- ##
=======================================
Coverage ? 6.44%
=======================================
Files ? 1254
Lines ? 313676
Branches ? 0
=======================================
Hits ? 20208
Misses ? 293468
Partials ? 0 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…er , relaxed drop column for v2_migrationsm, renamed workflow and reorder block
SanchithHegde
previously approved these changes
Nov 27, 2025
SanchithHegde
previously approved these changes
Nov 27, 2025
pixincreate
previously approved these changes
Nov 27, 2025
…ttern for changes migration parsing, improved step failure detection for easier POF detection
3eaeea1
…scripts and refactor rules
hrithikesh026
approved these changes
Dec 11, 2025
hrithikesh026
previously approved these changes
Dec 11, 2025
Member
SanchithHegde
left a comment
There was a problem hiding this comment.
Other than that, looks good to me!
SanchithHegde
approved these changes
Dec 11, 2025
hrithikesh026
approved these changes
Dec 12, 2025
pixincreate
added a commit
that referenced
this pull request
Dec 17, 2025
…aysafe-flow-correction * 'main' of github.com:juspay/hyperswitch: (47 commits) fix: implement is_pre_authentication_flow_required function for nmi (#10692) chore(version): 2025.12.17.0 fix: Corrected the mapping of metadata fields in HS<>UCS tunnel (#10626) fix(users): Check if the inviter role info entity type is greater than invitee (#10667) feat(payouts): [WorldpayWPG] Implement fast access feature of worldpaywpg for payouts (#10647) fix(oidc): registration of oidc paths (#10678) feat(connector): [Peach Payments] Add Pre-Auth Flow With Full Reversal (#10590) fix(payouts): add fallback for names for payout via Psp token (#10502) feat(euclid): support for issuer_country based routing (#10638) feat: implement granular authentication flow for UCS gateway interfaces (#10622) feat(euclid): support for transaction_initiator based routing (#10658) feat(gsm): add standardised error fields to GSM models and database schema (#10600) feat(payments): change lookup for find gsm code and message (#10585) feat: Added Paypal Post Auth Flow for HS<>UCS tunnel (#10640) feat: Added PreAuthenticate Flow for Nmi HS<>UCS tunnel (#10632) chore(version): 2025.12.16.0 feat: implement generic Locker api handler (#10242) fix(user-role): add entity type validation in user role lineage queries (#10608) ci: add API and database Schema validation workflow (#9710) feat(oidc): Add OIDC infrastructure and discovery endpoints (#10145) ...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Type of Change
Description
Added automated validation workflows to detect breaking changes in API schemas and database migrations.
New Workflows:
api-compatibility.yml- Validates API schema compatibility using oasdiff and checks migrations for breaking SQL operationsConfiguration:
.github/oasdiff/(.oasdiff-err-ignore.yaml,.oasdiff-warn-ignore.yaml,.oasdiff-severity-levels.yaml)Additional Changes
Motivation and Context
As the API evolves, we need automated checks to:
The workflow validates:
How did you test it?
Created intentional breaking changes to test detection:
organization_emailto organization APIorganization_detailsfrom response schemaVerified workflow triggers on:
crates/api_models/**,crates/openapi/**,crates/router/**migrations/**,v2_migrations/**andv2_compatible_migrations/**Checklist
cargo +nightly fmt --allcargo clippy