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
8 changes: 4 additions & 4 deletions mintlify/openapi.yaml

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

8 changes: 4 additions & 4 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 @@ -18,7 +18,9 @@ properties:
type: string
description: >-
The blockchain network for the withdrawal. Example values: SOLANA_MAINNET,
SOLANA_DEVNET, ETHEREUM_MAINNET, POLYGON_MAINNET, TRON_MAINNET.
SOLANA_DEVNET, ETHEREUM_MAINNET, ETHEREUM_TESTNET, BASE_MAINNET,
BASE_TESTNET, SPARK_MAINNET, SPARK_TESTNET, LIGHTNING_MAINNET,
LIGHTNING_REGTEST.
example: SOLANA_MAINNET
amount:
type: integer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,9 @@ allOf:
type: string
description: >-
The blockchain network for this external account, if applicable. Present when the account
is a cryptocurrency wallet. Example values: SOLANA_MAINNET, ETHEREUM_MAINNET,
POLYGON_MAINNET, TRON_MAINNET.
is a cryptocurrency wallet. Example values: SOLANA_MAINNET, SOLANA_DEVNET,
ETHEREUM_MAINNET, ETHEREUM_TESTNET, BASE_MAINNET, BASE_TESTNET,
SPARK_MAINNET, SPARK_TESTNET, LIGHTNING_MAINNET, LIGHTNING_REGTEST.
example: SOLANA_MAINNET
accountInfo:
Comment on lines +47 to 51
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.

P2 Missing POLYGON_MAINNET / TRON_MAINNET examples despite active wallet types

PolygonWallet and TronWallet are still live account types in ExternalAccountInfoOneOf.yaml and ExternalAccountType.yaml, yet their corresponding cryptoNetwork values (POLYGON_MAINNET, TRON_MAINNET) are removed from every example list in this PR. A developer creating one of those wallets will have no documented example value for cryptoNetwork to reference. If these networks are truly deprecated, the wallet types should be removed too; if they're still supported, the examples should be retained.

Prompt To Fix With AI
This is a comment left during a code review.
Path: openapi/components/schemas/external_accounts/ExternalAccount.yaml
Line: 47-51

Comment:
**Missing `POLYGON_MAINNET` / `TRON_MAINNET` examples despite active wallet types**

`PolygonWallet` and `TronWallet` are still live account types in `ExternalAccountInfoOneOf.yaml` and `ExternalAccountType.yaml`, yet their corresponding `cryptoNetwork` values (`POLYGON_MAINNET`, `TRON_MAINNET`) are removed from every example list in this PR. A developer creating one of those wallets will have no documented example value for `cryptoNetwork` to reference. If these networks are truly deprecated, the wallet types should be removed too; if they're still supported, the examples should be retained.

How can I resolve this? If you propose a fix, please make it concise.

Fix in Claude Code

$ref: ./ExternalAccountInfoOneOf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,10 @@ allOf:
type: string
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.

enum?

description: >-
The blockchain network for this external account. Required when the account is a
cryptocurrency wallet (e.g. SolanaWallet, PolygonWallet, TronWallet). Specifies which
network the wallet is on. Example values: SOLANA_MAINNET, SOLANA_DEVNET,
ETHEREUM_MAINNET, POLYGON_MAINNET, TRON_MAINNET.
cryptocurrency wallet. Specifies which network the wallet is on. Example values:
SOLANA_MAINNET, SOLANA_DEVNET, ETHEREUM_MAINNET, ETHEREUM_TESTNET,
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.

I sent a quote with SOLANA and received a 500 response. Not directly related to this PR but there might be some error handling fixes.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I'll check that out!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

BASE_MAINNET, BASE_TESTNET, SPARK_MAINNET, SPARK_TESTNET, LIGHTNING_MAINNET,
LIGHTNING_REGTEST.
example: SOLANA_MAINNET
accountInfo:
$ref: ./ExternalAccountInfoOneOf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ allOf:
The crypto network to use for the funding source. Required when `currency` is a
stablecoin (e.g. USDC, USDT). Specifies which network the customer will deposit
on, so the correct deposit address can be generated. Example values:
`SOLANA_MAINNET`, `SOLANA_DEVNET`, `ETHEREUM_MAINNET`.
`SOLANA_MAINNET`, `SOLANA_DEVNET`, `ETHEREUM_MAINNET`, `ETHEREUM_TESTNET`,
`BASE_MAINNET`, `BASE_TESTNET`, `SPARK_MAINNET`, `SPARK_TESTNET`,
`LIGHTNING_MAINNET`, `LIGHTNING_REGTEST`.
example: SOLANA_MAINNET
description: >-
Fund the quote using a real-time funding source (RTP, SEPA Instant, Spark, Stables, etc.).
Expand Down
Loading