Skip to content

Bound the fixed fee amount - #1056

Merged
shreyav merged 1 commit into
mainfrom
claude/awesome-davinci-zlf3oa-fixed-fee-max
Sep 23, 2026
Merged

shreyav merged 1 commit into
mainfrom
claude/awesome-davinci-zlf3oa-fixed-fee-max

Conversation

@shreyav

@shreyav shreyav commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

This adds maximum: 9007199254740991 to FixedFee.amount. The generated models then enforce the bound, and the server no longer checks it by hand in each handler.

It uses 2^53 - 1 rather than the int64 maximum, the same as the card limit fields. The bundler runs on JavaScript and rounds 2^63 - 1, so that value can't be published exactly.

make build and make lint pass with 0 errors.

🤖 Generated with Claude Code

https://claude.ai/code/session_01KYyhvyVNjMMDrKJqFriCE7


Generated by Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KYyhvyVNjMMDrKJqFriCE7
@mintlify

mintlify Bot commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
Grid 🟢 Ready View Preview Sep 23, 2026, 5:10 AM

@vercel

vercel Bot commented Sep 23, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

3 Skipped Deployments
Project Deployment Actions Updated
grid-cards-demo Ignored Ignored Sep 23, 2026 5:09am UTC
grid-flow-builder Ignored Ignored Sep 23, 2026 5:09am UTC
grid-wallet-demo Ignored Ignored Sep 23, 2026 5:09am UTC

Request Review

@github-actions

github-actions Bot commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

✱ Stainless preview builds for grid

This PR will update the grid SDKs with the following commit messages.

cli

chore(internal): regenerate SDK with no functional changes

go

chore(internal): regenerate SDK with no functional changes

kotlin

chore(internal): regenerate SDK with no functional changes

openapi

fix(types): add maximum constraint to fee amount field

php

chore(internal): regenerate SDK with no functional changes

python

chore(internal): regenerate SDK with no functional changes

ruby

chore(internal): regenerate SDK with no functional changes

typescript

chore(internal): regenerate SDK with no functional changes

Edit this comment to update them. They will appear in their respective SDK's changelogs.

✅ grid-typescript studio · code · diff

Your SDK build had at least one "error" diagnostic, but this did not represent a regression.
generate ❗ → build ⏭️ → lint ⏭️ → test ⏭️

✅ grid-openapi studio · code · diff

Your SDK build had at least one "error" diagnostic, but this did not represent a regression.
generate ❗

✅ grid-kotlin studio · code · diff

Your SDK build had at least one "error" diagnostic, but this did not represent a regression.
generate ❗ → build ⏭️ → lint ⏭️ → test ⏭️ (prev: test ❗)

✅ grid-ruby studio · code · diff

Your SDK build had at least one "error" diagnostic, but this did not represent a regression.
generate ❗ → build ⏭️ → lint ⏭️ → test ⏭️

✅ grid-go studio · code · diff

Your SDK build had at least one "error" diagnostic, but this did not represent a regression.
generate ❗ → build ⏭️ → lint ⏭️ → test ⏭️

go get github.com/stainless-sdks/grid-go@39736d24388bcc012a772f1b3d9542ea166b5d6b
✅ grid-python studio · code · diff

Your SDK build had at least one "error" diagnostic, but this did not represent a regression.
generate ❗ → build ⏭️ → lint ⏭️ → test ⏭️

✅ grid-php studio · code · diff

Your SDK build had at least one "error" diagnostic, but this did not represent a regression.
generate ❗ → lint ⏭️ → test ⏭️

✅ grid-cli studio · code · diff

Your SDK build had at least one "error" diagnostic, but this did not represent a regression.
generate ❗ → build ⏭️ → lint ⏭️ → test ⏭️


This comment is auto-generated by GitHub Actions and is automatically kept up to date as you push.
If you push custom code to the preview branch, re-run this workflow to update the comment.
Last updated: 2026-09-23 05:13:24 UTC

@greptile-apps

greptile-apps Bot commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

The PR appears safe to merge, with the new constraint consistently represented across the source schema and generated bundles.

Summary

Adds a JavaScript-safe upper bound of 9007199254740991 to FixedFee.amount.

  • Defines the constraint in the source OpenAPI component.
  • Propagates the constraint consistently to the root and Mintlify bundles.
  • Aligns fixed-fee validation with existing card-limit amount fields.

Reviews (1) · Last reviewed commit: "Bound the fixed fee amount"

@shreyav
shreyav merged commit b3af9c7 into main Sep 23, 2026
11 checks passed
@shreyav
shreyav deleted the claude/awesome-davinci-zlf3oa-fixed-fee-max branch September 23, 2026 21:12

This branch was successfully deployed

1 active deployment
staging - mintlify — d10ddc72 Deployed Sep 23, 2026 by mintlify[bot]
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