Skip to content

Conversation

@mois-ilya
Copy link
Collaborator

@mois-ilya mois-ilya commented Jul 24, 2025

In some endpoints, the address field was returned as an empty string, while the AccountAddress schema defined it as a required field with the address format.
This led to issues with the @ton-api/client generator, which attempted to parse the value as a valid TON address and failed at runtime.

To resolve this, a new format maybe-address was introduced along with a separate schema MaybeAccountAddress, where the address field has different format for client generator.
This allows clients to distinguish between valid addresses and missingvalues without breaking existing behavior for fully populated addresses

@mois-ilya mois-ilya marked this pull request as draft July 24, 2025 13:08
Ari4ka

This comment was marked as spam.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants