Skip to content

Set x-keep-typed-in-additional-properties on UsageSummary schemas#3492

Closed
api-clients-generation-pipeline[bot] wants to merge 3 commits into
masterfrom
datadog-api-spec/generated/5941
Closed

Set x-keep-typed-in-additional-properties on UsageSummary schemas#3492
api-clients-generation-pipeline[bot] wants to merge 3 commits into
masterfrom
datadog-api-spec/generated/5941

Conversation

@api-clients-generation-pipeline

Copy link
Copy Markdown
Contributor

charlie-zhang109 and others added 2 commits June 16, 2026 07:31
When a schema sets `x-keep-typed-in-additional-properties: true`, also add
typed property keys to `additional_properties` so all fields are accessible
from a single map regardless of when they were added to the spec.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
… before

The previous approach stored the raw pre-coercion hash value. After setters run,
self.attr_name holds the coerced value. We now copy post-coercion so both access
paths return consistent types.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@datadog-official

datadog-official Bot commented Jun 16, 2026

Copy link
Copy Markdown

Tests

🎉 All green!

🧪 All tests passed
❄️ No new flaky tests detected

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant