Skip to content

Regenerate models from updated Vantage API spec#3

Merged
orest-tokovenko-block merged 2 commits intomainfrom
oresttokovenko/art-723/update-auto-gen-models
Feb 12, 2026
Merged

Regenerate models from updated Vantage API spec#3
orest-tokovenko-block merged 2 commits intomainfrom
oresttokovenko/art-723/update-auto-gen-models

Conversation

@orest-tokovenko-block
Copy link
Copy Markdown
Collaborator

@orest-tokovenko-block orest-tokovenko-block commented Feb 12, 2026

Regenerated models from the latest Vantage OpenAPI spec after Vantage fixed several type issues we reported

Spec fixes (BudgetAlert)

These were the fields we specifically requested fixes for:

  • duration_in_days - was string, now int | None (not required)
  • user_token - now nullable
  • recipient_channels - was string, now Sequence[str] | None

Other spec fixes

  • Costs.total_cost - was Mapping[str, Any], now typed as CostPartial
  • Costs.total_usage - was Mapping[str, Any], now Sequence[UsagePartial]
  • DataExport.attributes - was str, now Mapping[str, Any]
  • DataExportManifest.files - was str, now Sequence[str]
  • DataExportManifest.completed_at/valid_until - now nullable
  • Resource.metadata - was str, now Mapping[str, Any] | None
  • ResourceCost.amount - was str, now float
  • Recommendation.resources_affected_count - was str, now int
  • CostReportSettings - all boolean fields now nullable
  • BillingRule.apply_to_all - now nullable
  • BusinessMetric.import_type - now nullable
  • AttachedCostReportForBusinessMetric.cost_report_token - now nullable
  • Me.default_workspace_token - now nullable
  • ForecastedCostProvider - added all enum value

New models

CostPartial, UsagePartial, CostReportUrl, SendInvoice

Removed redundant overrides from common.py

These overrides existed to fix types that the spec now defines correctly:

  • BudgetAlert/BudgetAlerts
  • Me
  • BusinessMetric/BusinessMetrics
  • CostReportSettings
  • Resource/Resources

Not fixed upstream

Inline settings objects (CostReport.settings, DashboardWidget.settings) are still unnamed in the spec. Vantage confirmed this is not something they can patch easily.

@orest-tokovenko-block orest-tokovenko-block changed the title update Regenerate models from updated Vantage API spec Feb 12, 2026
@orest-tokovenko-block orest-tokovenko-block merged commit ecb3fa5 into main Feb 12, 2026
4 checks passed
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.

1 participant