Skip to content

Describe how a generation's cost is calculated - #136

Merged
dazzatronus merged 1 commit into
mainfrom
derk/eng-903-describe-quantity
Sep 1, 2026
Merged

Describe how a generation's cost is calculated#136
dazzatronus merged 1 commit into
mainfrom
derk/eng-903-describe-quantity

Conversation

@dazzatronus

@dazzatronus dazzatronus commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

tieredBy was declared as an array of strings, but the endpoint sends an object. Corrected, with
a nested required because both members are always present together.

unit, units, bounds and minUnits become one quantity object, describing how many units a
generation consumes in the measure a caller already holds. Take the value measure names, or
default if you have none, hold it within min and max, divide by per, round up when round
is up, then multiply by the rate. Absent quantity means one generation is one unit.

Verify: pnpm bundle && pnpm build && pnpm test && pnpm test:smoke, 71 pass. Four real response
shapes validated against the bundled schema.

Supersedes #135.

@dazzatronus
dazzatronus merged commit caa100a into main Sep 1, 2026
1 check passed
@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown

🎉 This PR is included in version 1.18.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

@dazzatronus
dazzatronus deleted the derk/eng-903-describe-quantity branch September 1, 2026 23:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant