Skip to content

Bug: budget_type can be BundlePricing #322

Description

@jorgevargas-dvt

The enterprise billing budgets endpoint returns budget_type: "BundlePricing" for AI credit
budgets, but the model only allows two values, so .parsed_data raises.

budget_type: Literal["SkuPricing", "ProductPricing"]   # githubkit model
"budget_type": "BundlePricing"                          # GitHub response

Endpoint: GET /enterprises/{enterprise}/settings/billing/budgets (ghec-2026-03-10).

The request body models already accept BundlePricing; only the response model was left out.

Workaround today is reading .json() instead of .parsed_data, which loses the typing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Rest APIbugSomething isn't workingschemaschema related

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions