Skip to content

Commit d19eb83

Browse files
committed
feat: Allow state store schema's to be included when schemas are marshalled into JSON output
1 parent 2bc6df8 commit d19eb83

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

internal/command/jsonprovider/provider.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ type Provider struct {
3131
Functions map[string]*jsonfunction.FunctionSignature `json:"functions,omitempty"`
3232
ResourceIdentitySchemas map[string]*IdentitySchema `json:"resource_identity_schemas,omitempty"`
3333
ActionSchemas map[string]*ActionSchema `json:"action_schemas,omitempty"`
34+
StateStoreSchemas map[string]*Schema `json:"state_store_schemas,omitempty"`
3435
}
3536

3637
func newProviders() *Providers {
@@ -69,6 +70,7 @@ func marshalProvider(tps providers.ProviderSchema) *Provider {
6970
Functions: jsonfunction.MarshalProviderFunctions(tps.Functions),
7071
ResourceIdentitySchemas: marshalIdentitySchemas(tps.ResourceTypes),
7172
ActionSchemas: marshalActionSchemas(tps.Actions),
73+
StateStoreSchemas: marshalSchemas(tps.StateStores),
7274
}
7375

7476
// List resource schemas are nested under a "config" block, so we need to

0 commit comments

Comments
 (0)