Open
Conversation
Contributor
Greptile SummaryAuto-synced account schemas for 13 new currencies (BRL, DKK, HKD, IDR, INR, MXN, MYR, PHP, SGD, THB, USD, VND) from VASP adapter field definitions. Added new Major changes:
Critical issue found:
Confidence Score: 2/5
|
| Filename | Overview |
|---|---|
| openapi/components/schemas/external_accounts/ExternalAccountInfoOneOf.yaml | Added new currency account references but created duplicate entries for CAD, CLABE, GBP, IBAN, NGN, PHP, PIX, SGD, UPI, and US accounts |
| openapi/components/schemas/common/GbpAccountInfo.yaml | Removed validation patterns, examples, and accountType field; simplified to basic fields only |
| openapi/components/schemas/common/PhpAccountInfo.yaml | Removed validation, examples, and accountType field; simplified descriptions |
| openapi/components/schemas/common/SgdAccountInfo.yaml | Removed swiftCode field, validation patterns, examples, and accountType field |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[ExternalAccountInfoOneOf] --> B[BaseExternalAccountInfo]
A --> C[Currency-Specific AccountInfo]
A --> D[Beneficiary Schema]
C --> C1[BrlAccountInfo]
C --> C2[DkkAccountInfo]
C --> C3[GbpAccountInfo]
C --> C4[HkdAccountInfo]
C --> C5[IdrAccountInfo]
C --> C6[InrAccountInfo]
C --> C7[MxnAccountInfo]
C --> C8[MyrAccountInfo]
C --> C9[PhpAccountInfo]
C --> C10[SgdAccountInfo]
C --> C11[ThbAccountInfo]
C --> C12[UsdAccountInfo]
C --> C13[VndAccountInfo]
D --> D1[Individual Beneficiary]
D --> D2[Business Beneficiary]
D1 --> D1A[Currency-Specific Beneficiary Schemas]
D1A --> D1A1[BrlBeneficiary]
D1A --> D1A2[DkkBeneficiary]
D1A --> D1A3[GbpBeneficiary]
D1A --> D1A4[And 10 more...]
style A fill:#ff6b6b
style C fill:#4ecdc4
style D fill:#45b7d1
Last reviewed commit: 30b98d2
Comment on lines
+2
to
+73
| - title: US Account | ||
| $ref: ./UsAccountExternalAccountInfo.yaml | ||
| - title: CLABE Account | ||
| $ref: ./ClabeAccountExternalAccountInfo.yaml | ||
| - title: PIX Account | ||
| $ref: ./PixAccountExternalAccountInfo.yaml | ||
| - title: IBAN Account | ||
| $ref: ./IbanAccountExternalAccountInfo.yaml | ||
| - title: UPI Account | ||
| $ref: ./UpiAccountExternalAccountInfo.yaml | ||
| - title: NGN Account | ||
| $ref: ./NgnAccountExternalAccountInfo.yaml | ||
| - title: CAD Account | ||
| $ref: ./CadAccountExternalAccountInfo.yaml | ||
| - title: GBP Account | ||
| $ref: ./GbpAccountExternalAccountInfo.yaml | ||
| - title: PHP Account | ||
| $ref: ./PhpAccountExternalAccountInfo.yaml | ||
| - title: SGD Account | ||
| $ref: ./SgdAccountExternalAccountInfo.yaml | ||
| - title: Spark Wallet | ||
| $ref: ./SparkWalletExternalAccountInfo.yaml | ||
| - title: Lightning | ||
| $ref: ./LightningExternalAccountInfo.yaml | ||
| - title: Solana Wallet | ||
| $ref: ./SolanaWalletExternalAccountInfo.yaml | ||
| - title: Tron Wallet | ||
| $ref: ./TronWalletExternalAccountInfo.yaml | ||
| - title: Polygon Wallet | ||
| $ref: ./PolygonWalletExternalAccountInfo.yaml | ||
| - title: Base Wallet | ||
| $ref: ./BaseWalletExternalAccountInfo.yaml | ||
| - title: Brl Account | ||
| $ref: ./BrlExternalAccountInfo.yaml | ||
| - title: Cad Account | ||
| $ref: ./CadExternalAccountInfo.yaml | ||
| - title: Clabe Account | ||
| $ref: ./ClabeExternalAccountInfo.yaml | ||
| - title: Dkk Account | ||
| $ref: ./DkkExternalAccountInfo.yaml | ||
| - title: Gbp Account | ||
| $ref: ./GbpExternalAccountInfo.yaml | ||
| - title: Hkd Account | ||
| $ref: ./HkdExternalAccountInfo.yaml | ||
| - title: Iban Account | ||
| $ref: ./IbanExternalAccountInfo.yaml | ||
| - title: Idr Account | ||
| $ref: ./IdrExternalAccountInfo.yaml | ||
| - title: Inr Account | ||
| $ref: ./InrExternalAccountInfo.yaml | ||
| - title: Mxn Account | ||
| $ref: ./MxnExternalAccountInfo.yaml | ||
| - title: Myr Account | ||
| $ref: ./MyrExternalAccountInfo.yaml | ||
| - title: Ngn Account | ||
| $ref: ./NgnExternalAccountInfo.yaml | ||
| - title: Php Account | ||
| $ref: ./PhpExternalAccountInfo.yaml | ||
| - title: Pix Account | ||
| $ref: ./PixExternalAccountInfo.yaml | ||
| - title: Sgd Account | ||
| $ref: ./SgdExternalAccountInfo.yaml | ||
| - title: Thb Account | ||
| $ref: ./ThbExternalAccountInfo.yaml | ||
| - title: Upi Account | ||
| $ref: ./UpiExternalAccountInfo.yaml | ||
| - title: Us Account | ||
| $ref: ./UsExternalAccountInfo.yaml | ||
| - title: Usd Account | ||
| $ref: ./UsdExternalAccountInfo.yaml | ||
| - title: Vnd Account | ||
| $ref: ./VndExternalAccountInfo.yaml |
Contributor
There was a problem hiding this comment.
Duplicate account type references in the oneOf array. The following accounts appear twice with different case conventions:
- "US Account" (line 2) and "Us Account" (line 68)
- "CLABE Account" (line 4) and "Clabe Account" (line 38)
- "PIX Account" (line 6) and "Pix Account" (line 60)
- "IBAN Account" (line 8) and "Iban Account" (line 46)
- "UPI Account" (line 10) and "Upi Account" (line 66)
- "NGN Account" (line 12) and "Ngn Account" (line 56)
- "CAD Account" (line 14) and "Cad Account" (line 36)
- "GBP Account" (line 16) and "Gbp Account" (line 42)
- "PHP Account" (line 18) and "Php Account" (line 58)
- "SGD Account" (line 20) and "Sgd Account" (line 62)
These duplicates will cause schema validation issues. Remove either the old or new entries to maintain only one reference per account type.
Prompt To Fix With AI
This is a comment left during a code review.
Path: openapi/components/schemas/external_accounts/ExternalAccountInfoOneOf.yaml
Line: 2-73
Comment:
Duplicate account type references in the oneOf array. The following accounts appear twice with different case conventions:
- "US Account" (line 2) and "Us Account" (line 68)
- "CLABE Account" (line 4) and "Clabe Account" (line 38)
- "PIX Account" (line 6) and "Pix Account" (line 60)
- "IBAN Account" (line 8) and "Iban Account" (line 46)
- "UPI Account" (line 10) and "Upi Account" (line 66)
- "NGN Account" (line 12) and "Ngn Account" (line 56)
- "CAD Account" (line 14) and "Cad Account" (line 36)
- "GBP Account" (line 16) and "Gbp Account" (line 42)
- "PHP Account" (line 18) and "Php Account" (line 58)
- "SGD Account" (line 20) and "Sgd Account" (line 62)
These duplicates will cause schema validation issues. Remove either the old or new entries to maintain only one reference per account type.
How can I resolve this? If you propose a fix, please make it concise.
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.
Auto-synced account schemas.
These schemas are generated from VASP adapter field definitions in sparkcore.
Synced directories:
common/— per-currency account info and beneficiary schemasexternal_accounts/— per-currency external account schemas (reference common/)Please review the changes before merging.