Skip to content

Commit 8b65426

Browse files
move action schemas out of experimental flag
1 parent 865a0eb commit 8b65426

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

internal/command/jsonformat/plan_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8544,7 +8544,7 @@ func TestResourceChange_actions(t *testing.T) {
85448544
},
85458545
},
85468546
}
8547-
jsonschemas := jsonprovider.MarshalForRenderer(fullSchema, true)
8547+
jsonschemas := jsonprovider.MarshalForRenderer(fullSchema, false)
85488548
diffs := precomputeDiffs(Plan{
85498549
ResourceChanges: []jsonplan.ResourceChange{defaultResourceChange},
85508550
ActionInvocations: tc.actionInvocations,

internal/command/jsonprovider/provider.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ func marshalProvider(tps providers.ProviderSchema, includeExperimentalSchemas bo
6868
EphemeralResourceSchemas: marshalSchemas(tps.EphemeralResourceTypes),
6969
Functions: jsonfunction.MarshalProviderFunctions(tps.Functions),
7070
ResourceIdentitySchemas: marshalIdentitySchemas(tps.ResourceTypes),
71+
ActionSchemas: marshalActionSchemas(tps.Actions),
7172
}
7273

7374
if includeExperimentalSchemas {
@@ -83,8 +84,6 @@ func marshalProvider(tps providers.ProviderSchema, includeExperimentalSchemas bo
8384
}
8485
}
8586
p.ListResourceSchemas = marshalSchemas(listSchemas)
86-
87-
p.ActionSchemas = marshalActionSchemas(tps.Actions)
8887
}
8988

9089
return p

internal/command/jsonprovider/provider_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ func TestMarshalProvider(t *testing.T) {
3333
DataSourceSchemas: map[string]*Schema{},
3434
EphemeralResourceSchemas: map[string]*Schema{},
3535
ResourceIdentitySchemas: map[string]*IdentitySchema{},
36+
ActionSchemas: map[string]*ActionSchema{},
3637
},
3738
},
3839
{
@@ -212,6 +213,7 @@ func TestMarshalProvider(t *testing.T) {
212213
},
213214
},
214215
ResourceIdentitySchemas: map[string]*IdentitySchema{},
216+
ActionSchemas: map[string]*ActionSchema{},
215217
},
216218
},
217219
{

0 commit comments

Comments
 (0)