-
Notifications
You must be signed in to change notification settings - Fork 1
Add new swift account type to grid #119
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,6 +7,7 @@ enum: | |
| - FBO | ||
| - UPI | ||
| - NGN_ACCOUNT | ||
| - SWIFT_ACCOUNT | ||
| - SPARK_WALLET | ||
| - LIGHTNING | ||
| - SOLANA_WALLET | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| allOf: | ||
| - $ref: ./PaymentAccountOrWalletInfo.yaml | ||
| - $ref: ./SwiftAccountInfo.yaml | ||
| required: | ||
| - reference | ||
| properties: | ||
| reference: | ||
| type: string | ||
| description: >- | ||
| Unique reference code that must be included with the payment to properly | ||
| credit it | ||
| example: UMA-Q12345-REF | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| type: object | ||
| required: | ||
| - accountType | ||
| - accountNumber | ||
| - bankName | ||
| properties: | ||
| accountType: | ||
| type: string | ||
| enum: [SWIFT_ACCOUNT] | ||
| example: SWIFT_ACCOUNT | ||
| accountNumber: | ||
| type: string | ||
| description: Bank account number | ||
| example: '1234567890' | ||
| swiftBic: | ||
| type: string | ||
| description: SWIFT/BIC code (8 or 11 characters). Recommended for international transfers. | ||
| example: DBSASG2X | ||
| minLength: 8 | ||
| maxLength: 11 | ||
| bankName: | ||
| type: string | ||
| description: Name of the bank | ||
| example: DBS Bank |
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,4 +1,4 @@ | ||||||||||
| allOf: | ||||||||||
| allOf: | ||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. syntax: incorrect indentation - this line should start at column 0, not with 2 spaces
Suggested change
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time! Prompt To Fix With AIThis is a comment left during a code review.
Path: openapi/components/schemas/external_accounts/ExternalAccountCreateRequest.yaml
Line: 1:1
Comment:
**syntax:** incorrect indentation - this line should start at column 0, not with 2 spaces
```suggestion
allOf:
```
<sub>Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!</sub>
How can I resolve this? If you propose a fix, please make it concise.There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Invalid YAML structure: root-level indentation. The Proposed fix- allOf:
+allOf:📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||
| - type: object | ||||||||||
| required: | ||||||||||
| - currency | ||||||||||
|
|
@@ -29,4 +29,4 @@ allOf: | |||||||||
| incoming UMA payments will be deposited into the primary internal account for the customer. | ||||||||||
| default: false | ||||||||||
| accountInfo: | ||||||||||
| $ref: ./ExternalAccountInfo.yaml | ||||||||||
| $ref: ./ExternalAccountInfo.yaml | ||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| allOf: | ||
| - $ref: ../common/SwiftAccountInfo.yaml | ||
| - type: object | ||
| required: | ||
| - accountType | ||
| properties: | ||
| accountType: | ||
| type: string | ||
| enum: [SWIFT_ACCOUNT] | ||
| example: SWIFT_ACCOUNT | ||
| beneficiary: | ||
| oneOf: | ||
| - $ref: ./IndividualBeneficiary.yaml | ||
| - $ref: ./BusinessBeneficiary.yaml | ||
| discriminator: | ||
| propertyName: beneficiaryType | ||
| mapping: | ||
| INDIVIDUAL: ./IndividualBeneficiary.yaml | ||
| BUSINESS: ./BusinessBeneficiary.yaml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Schema structure issue:
requiredandpropertiesshould be insideallOf.The
requiredandpropertiesblocks are siblings ofallOfrather than part of the composition. In OpenAPI 3.x, this structure may not correctly merge the additionalreferencefield with the composed schemas. To properly extend the composed schemas with additional fields, wrap them in a third object withinallOf.Proposed fix
📝 Committable suggestion
🤖 Prompt for AI Agents