Skip to content

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

Merged
api-clients-generation-pipeline[bot] merged 3 commits into
masterfrom
datadog-api-spec/generated/5941
Jun 16, 2026
Merged

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

Conversation

@api-clients-generation-pipeline

Copy link
Copy Markdown
Contributor

@api-clients-generation-pipeline api-clients-generation-pipeline Bot force-pushed the datadog-api-spec/generated/5941 branch 2 times, most recently from 8adee03 to 29eb115 Compare June 16, 2026 16:45
charlie-zhang109 and others added 2 commits June 16, 2026 19:14
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>
@api-clients-generation-pipeline api-clients-generation-pipeline Bot force-pushed the datadog-api-spec/generated/5941 branch from 29eb115 to 746982a Compare June 16, 2026 17:25
@api-clients-generation-pipeline api-clients-generation-pipeline Bot force-pushed the datadog-api-spec/generated/5941 branch from 746982a to 146ba45 Compare June 16, 2026 17:54
@api-clients-generation-pipeline api-clients-generation-pipeline Bot merged commit c8385e3 into master Jun 16, 2026
15 checks passed
@api-clients-generation-pipeline api-clients-generation-pipeline Bot deleted the datadog-api-spec/generated/5941 branch June 16, 2026 18:23
github-actions Bot pushed a commit that referenced this pull request Jun 16, 2026
)

* Support x-keep-typed-in-additional-properties in Ruby model generator

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>

* fix: copy typed fields into additional_properties after coercion, not 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>

* Regenerate client from commit 3677df7 of spec repo

---------

Co-authored-by: Charlie Zhang <charlie.zhang@datadoghq.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com> c8385e3
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.

2 participants