Skip to content

Commit 7170cd5

Browse files
committed
Put parameters on the payload rather than under a parameters object
The other three SDKs expose a payload's parameters as fields alongside the common ones, and so do this SDK's own generated single-entry methods (`PostUserFundsAccount({ ik, ledgerIk, amount })`). Nesting them made one entry type read two different ways depending on which method you reached for. Nesting had avoided the collision a flat namespace allows, so handle it the way §2.5 describes instead: the first occupant of a name keeps it, a later parameter is suffixed, and it still posts under the name the Schema knows it by. Unlike Python's, TypeScript's failure mode here is loud -- a duplicate property in a generated type is a compile error -- so the escape only has to be correct, not defensive.
1 parent 7e09683 commit 7170cd5

17 files changed

Lines changed: 862 additions & 444 deletions

‎dist/cjs/src/typedBatchEntries.js‎

Lines changed: 55 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎dist/cjs/types/src/typedBatchEntries.d.ts‎

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎dist/cjs/types/src/typedBatchEntries.d.ts.map‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎dist/esm/src/typedBatchEntries.js‎

Lines changed: 55 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎dist/esm/types/src/typedBatchEntries.d.ts‎

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)