Skip to content

feat(router): add api_models and openapi changes for modular auth eligibility apis#10059

Merged
likhinbopanna merged 3 commits intomainfrom
add-openapi-api-models-changes-eligibility-api-modular-auth
Nov 3, 2025
Merged

feat(router): add api_models and openapi changes for modular auth eligibility apis#10059
likhinbopanna merged 3 commits intomainfrom
add-openapi-api-models-changes-eligibility-api-modular-auth

Conversation

@sai-harsha-vardhan
Copy link
Contributor

@sai-harsha-vardhan sai-harsha-vardhan commented Oct 30, 2025

Type of Change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring
  • Dependency updates
  • Documentation
  • CI/CD

Description

add api_models and openapi changes for modular auth eligibility apis

Additional Changes

  • This PR modifies the API contract
  • This PR modifies the database schema
  • This PR modifies application configuration/environment variables

Motivation and Context

How did you test it?

No testing required, api model changes only

Checklist

  • I formatted the code cargo +nightly fmt --all
  • I addressed lints thrown by cargo clippy
  • I reviewed the submitted code
  • I added unit tests for my changes where possible

@sai-harsha-vardhan sai-harsha-vardhan added this to the July 2025 Release milestone Oct 30, 2025
@sai-harsha-vardhan sai-harsha-vardhan self-assigned this Oct 30, 2025
@sai-harsha-vardhan sai-harsha-vardhan requested review from a team as code owners October 30, 2025 08:17
@sai-harsha-vardhan sai-harsha-vardhan added A-framework Area: Framework M-api-contract-changes Metadata: This PR involves API contract changes labels Oct 30, 2025
@semanticdiff-com
Copy link

semanticdiff-com bot commented Oct 30, 2025

@codecov
Copy link

codecov bot commented Oct 30, 2025

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (main@072633e). Learn more about missing BASE report.

Files with missing lines Patch % Lines
crates/router/src/routes/lock_utils.rs 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main   #10059   +/-   ##
=======================================
  Coverage        ?    3.91%           
=======================================
  Files           ?     1223           
  Lines           ?   301236           
  Branches        ?        0           
=======================================
  Hits            ?    11804           
  Misses          ?   289432           
  Partials        ?        0           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

/// Optional secret value used to identify and authorize the client making the request.
/// This can help ensure that the payment session is secure and valid.
#[schema(value_type = Option<String>)]
pub client_secret: Option<masking::Secret<String>>,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can be taken in header

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Required for ClientSecretFetch impl on the request payload

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be removed for now. We can introduce this later as well. Since optional field

/// The unique identifier for this authentication.
/// Added in the request for api event metrics, populated from path parameter
#[serde(skip)]
pub authentication_id: id_type::AuthenticationId,
Copy link
Contributor

@hrithikesh026 hrithikesh026 Oct 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this is available in path, it should not be present here.

#[cfg(feature = "v1")]
#[derive(Debug, Serialize, Deserialize, ToSchema)]
#[serde(rename_all = "snake_case")]
pub enum AuthenticationEligibilityCheckData {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be a tagged enum?

hrithikesh026
hrithikesh026 previously approved these changes Oct 30, 2025
tsdk02
tsdk02 previously approved these changes Oct 30, 2025
@likhinbopanna likhinbopanna added this pull request to the merge queue Nov 3, 2025
Merged via the queue into main with commit 415af87 Nov 3, 2025
29 of 31 checks passed
@likhinbopanna likhinbopanna deleted the add-openapi-api-models-changes-eligibility-api-modular-auth branch November 3, 2025 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-framework Area: Framework M-api-contract-changes Metadata: This PR involves API contract changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants