Skip to content

fix: remove UsageSummaryDate models excluded by the new Ruby generator#3555

Closed
nogates wants to merge 2 commits into
masterfrom
nogates/remove-keep-typed-additional-properties-models
Closed

fix: remove UsageSummaryDate models excluded by the new Ruby generator#3555
nogates wants to merge 2 commits into
masterfrom
nogates/remove-keep-typed-additional-properties-models

Conversation

@nogates

@nogates nogates commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

What does this PR do?

Removes three model files and their Zeitwerk inflector entries that the new openapi-transformer Ruby generator deliberately excludes:

  • UsageSummaryDate
  • UsageSummaryDateOrg
  • UsageSummaryResponse

These schemas declare x-keep-typed-in-additional-properties: true, which means their typed properties are also surfaced through additionalProperties for forward-compatibility. The new generator cannot reproduce the typed-field mirroring logic in initialize that this pattern requires (see DataDog/openapi-transformer#280), so it excludes these schemas rather than generating structurally incorrect models.

Removing the files and inflector entries from the committed library state allows the compatibility test to pass: our generator's output now matches the committed state.

Review checklist

  • This PR includes all newly recorded cassettes for any modified tests.

  • This PR does not rely on API client schema changes.

    • The CI should be fully passing.

These three schemas use the x-keep-typed-in-additional-properties pattern,
which surfaces typed fields through additionalProperties for forward-
compatibility. The new openapi-transformer Ruby generator cannot reproduce
the typed-field mirroring logic in the initialize method that this pattern
requires, so it deliberately excludes these schemas rather than generating
an incomplete model.

Remove the model files and their Zeitwerk inflector entries so that the
compatibility test can pass: our generator's output will now match the
committed state of the library.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@nogates nogates requested review from a team as code owners July 8, 2026 07:53
@datadog-datadog-prod-us1

datadog-datadog-prod-us1 Bot commented Jul 8, 2026

Copy link
Copy Markdown

Pipelines  Tests

Fix all issues with BitsAI

⚠️ Warnings

🚦 1 Pipeline job failed

Ensure labels | changelog   View in Datadog   GitHub Actions

ℹ️ Info

No other issues found (see more)

🧪 All tests passed
❄️ No new flaky tests detected

Useful? React with 👍 / 👎

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: a4457d0 | Docs | Datadog PR Page | Give us feedback!

@nogates nogates closed this Jul 8, 2026
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