Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .stainless/stainless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ resources:
external_account: '#/components/schemas/ExternalAccount'
external_account_create: '#/components/schemas/ExternalAccountCreateRequest'
external_account_info_one_of: "#/components/schemas/ExternalAccountInfoOneOf"
wallet_custody_fields: "#/components/schemas/WalletCustodyFields"
business_beneficiary: "#/components/schemas/BusinessBeneficiary"
wallet_beneficiary_fields: "#/components/schemas/WalletBeneficiaryFields"
wallet_beneficiary_one_of: "#/components/schemas/WalletBeneficiaryOneOf"
Expand Down
14 changes: 14 additions & 0 deletions mintlify/openapi.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions openapi.yaml

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
Expand Up @@ -2,5 +2,5 @@ title: Base Wallet
allOf:
- $ref: ./BaseExternalAccountInfo.yaml
- $ref: ../common/BaseWalletInfo.yaml

- $ref: ./WalletBeneficiaryFields.yaml
- $ref: ./WalletCustodyFields.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ allOf:
- $ref: ./BaseExternalAccountInfo.yaml
- $ref: ../common/EthereumWalletInfo.yaml
- $ref: ./WalletBeneficiaryFields.yaml
- $ref: ./WalletCustodyFields.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ allOf:
- $ref: ./BaseExternalAccountInfo.yaml
- $ref: ../common/PlasmaWalletInfo.yaml
- $ref: ./WalletBeneficiaryFields.yaml
- $ref: ./WalletCustodyFields.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ title: Polygon Wallet
allOf:
- $ref: ./BaseExternalAccountInfo.yaml
- $ref: ../common/PolygonWalletInfo.yaml

- $ref: ./WalletBeneficiaryFields.yaml
- $ref: ./WalletCustodyFields.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ title: Solana Wallet
allOf:
- $ref: ./BaseExternalAccountInfo.yaml
- $ref: ../common/SolanaWalletInfo.yaml

- $ref: ./WalletBeneficiaryFields.yaml
- $ref: ./WalletCustodyFields.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ title: Spark Wallet
allOf:
- $ref: ./BaseExternalAccountInfo.yaml
- $ref: ../common/SparkWalletInfo.yaml

- $ref: ./WalletBeneficiaryFields.yaml
- $ref: ./WalletCustodyFields.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ title: Tron Wallet
allOf:
- $ref: ./BaseExternalAccountInfo.yaml
- $ref: ../common/TronWalletInfo.yaml

- $ref: ./WalletBeneficiaryFields.yaml
- $ref: ./WalletCustodyFields.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
type: object
properties:
vaspName:
type: string
Comment on lines +3 to +4

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P1 Empty VASP name breaks custody classification

When a client creates a wallet with vaspName: "", the schema accepts a present value that names no VASP, causing the account either to be misclassified as VASP-hosted or to fail undocumented server-side validation.

Suggested change
vaspName:
type: string
vaspName:
type: string
minLength: 1
Prompt To Fix With AI
This is a comment left during a code review.
Path: openapi/components/schemas/external_accounts/WalletCustodyFields.yaml
Line: 3-4

Comment:
**Empty VASP name breaks custody classification**

When a client creates a wallet with `vaspName: ""`, the schema accepts a present value that names no VASP, causing the account either to be misclassified as VASP-hosted or to fail undocumented server-side validation.

```suggestion
  vaspName:
    type: string
    minLength: 1
```

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

description: >-
Name of the VASP that custodies this account, from the VASP directory
(`GET /vasps`). Present when the wallet is held at an exchange or other
custodial platform; omit it for self-custody wallets. Ownership
verification applies only to self-custody wallets.
example: Kraken
Loading