Commit c8385e3
Set x-keep-typed-in-additional-properties on UsageSummary schemas (#3493)
* 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>1 parent f672b6d commit c8385e3
5 files changed
Lines changed: 928 additions & 0 deletions
File tree
- .generator
- schemas/v1
- src/generator/templates
- lib/datadog_api_client/v1/models
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24110 | 24110 | | |
24111 | 24111 | | |
24112 | 24112 | | |
| 24113 | + | |
24113 | 24114 | | |
24114 | 24115 | | |
24115 | 24116 | | |
| |||
25429 | 25430 | | |
25430 | 25431 | | |
25431 | 25432 | | |
| 25433 | + | |
25432 | 25434 | | |
25433 | 25435 | | |
25434 | 25436 | | |
| |||
26776 | 26778 | | |
26777 | 26779 | | |
26778 | 26780 | | |
| 26781 | + | |
26779 | 26782 | | |
26780 | 26783 | | |
26781 | 26784 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
104 | 109 | | |
105 | 110 | | |
106 | 111 | | |
| |||
0 commit comments