docs(openapi): document security schemes (#676)

Co-authored-by: Arun Raj M <jarnura47@gmail.com>
This commit is contained in:
Sanchith Hegde
2023-03-01 11:46:50 +05:30
committed by GitHub
parent 4f4b9d7f5f
commit c5fda7ac68
12 changed files with 419 additions and 86 deletions

View File

@ -707,6 +707,7 @@ pub enum BankNames {
strum::Display,
strum::EnumString,
frunk::LabelledGeneric,
ToSchema,
)]
pub enum CardNetwork {
Visa,

View File

@ -382,6 +382,7 @@ pub struct Card {
#[schema(value_type = String, example = "242")]
pub card_cvc: Secret<String>,
pub card_issuer: Option<String>,
#[schema(value_type = Option<CardNetwork>, example = "Visa")]
pub card_network: Option<api_enums::CardNetwork>,
}