Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
48234ba
feat(terraform): honor const values on array and map properties
AshGodfrey Oct 22, 2026
df8db20
fix: address review findings for container const support
AshGodfrey Oct 22, 2026
5bd87c0
Merge remote-tracking branch 'origin/main' into ash/const-container-p…
AshGodfrey Oct 22, 2026
554a3f1
Merge remote-tracking branch 'origin/main' into ash/const-container-p…
AshGodfrey Oct 30, 2026
957323e
fix(terraform): validate container consts strictly and prove them end…
AshGodfrey Oct 30, 2026
c9f8bfc
chore: regenerate the review mockservers' JSON utils for structural c…
AshGodfrey Oct 30, 2026
4108a85
fix(terraform): keep structural const comparison to containers and al…
AshGodfrey Oct 30, 2026
9bc6357
chore: regenerate templates/perms.go with the go.mod toolchain
AshGodfrey Oct 30, 2026
e28dbe2
fix(terraform): render container const values with sorted keys
AshGodfrey Oct 30, 2026
59635ea
chore: regenerate templates/perms.go with the go.mod toolchain
AshGodfrey Oct 30, 2026
255cbc7
fix: keep a __proto__ key when sorting const map values
AshGodfrey Oct 30, 2026
4039153
chore: merge the Terraform container const changesets
AshGodfrey Oct 30, 2026
1178630
fix(go): decide container const comparison by field kind and type-che…
AshGodfrey Nov 2, 2026
1f45e71
fix: accept an empty const on set-format and uniqueItems arrays
AshGodfrey Nov 2, 2026
96bb176
fix(terraform): handle const containers nested in list items and temp…
AshGodfrey Nov 2, 2026
8362a45
test(terraform): cover a const empty set on a delete body across API …
AshGodfrey Nov 2, 2026
90088f8
test(terraform): assert a wrong response const fails decoding and har…
AshGodfrey Nov 2, 2026
100b3a6
test(terraform): reject a delete request whose body cannot be read
AshGodfrey Nov 2, 2026
a70e3ed
fix: drop an empty container const when minItems is positive
AshGodfrey Nov 2, 2026
a2f81d9
fix: bound container consts by minItems and maxItems and accept null …
AshGodfrey Nov 2, 2026
356dfe2
fix: decide container const optionality from parsed JSON tag options
AshGodfrey Nov 2, 2026
ff9eedd
fix: unwrap OptionalNullable when classifying and null-checking conta…
AshGodfrey Nov 2, 2026
17e6159
test(terraform): cover nullable, escaped and parameter container consts
AshGodfrey Nov 2, 2026
898b1c7
fix: omit container consts on content-based parameters too
AshGodfrey Nov 2, 2026
2f90d00
Merge remote-tracking branch 'origin/main' into ash/const-container-p…
AshGodfrey Nov 4, 2026
42e967f
Merge remote-tracking branch 'origin/main' into ash/const-container-p…
AshGodfrey Nov 16, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .changesets/1792662097-11a83540.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
id: 1792662097-11a83540
features:
- constArrays
- constObjects
targets:
- terraform
type: feat
bump: minor
description: array and map properties with a const value are hidden from the resource schema and the const value is sent in request bodies
author: AshGodfrey
date: "2026-10-22"
11 changes: 11 additions & 0 deletions .changesets/1792662097-2435dcc7.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
id: 1792662097-2435dcc7
features:
- constsAndDefaults
targets:
- go
Comment thread
cubic-dev-ai[bot] marked this conversation as resolved.
Resolved
- cli
type: fix
bump: patch
description: JSON unmarshaling compares array and map const values structurally instead of by exact text and treats null as absent for a container const
author: AshGodfrey
date: "2026-10-22"
6 changes: 6 additions & 0 deletions internal/features/features.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,12 @@ const (
// FeatureDefaultObjects relates to the ability to handle default values for objects
// Tier: Experimental
FeatureDefaultObjects
// FeatureConstArrays relates to the ability to handle const values for arrays
// Tier: Experimental
FeatureConstArrays
// FeatureConstObjects relates to the ability to handle const values for objects
// Tier: Experimental
FeatureConstObjects
// FeatureAdditionalProperties relates to the ability to deserialize any unknown properties into a map available as an extra property on the generated models for both request bodies and parameters
// Tier: Gold
FeatureAdditionalProperties
Expand Down
14 changes: 14 additions & 0 deletions internal/features/features_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading