refactor(docs): remove duplicate util func to format possible values (#1050)
This commit is contained in:
parent
64d6fa9bea
commit
52b879b436
28 changed files with 30 additions and 77 deletions
|
|
@ -131,7 +131,7 @@ func (r *distributionDataSource) Schema(_ context.Context, _ datasource.SchemaRe
|
|||
Attributes: map[string]schema.Attribute{
|
||||
"type": schema.StringAttribute{
|
||||
Computed: true,
|
||||
Description: schemaDescriptions["config_backend_type"] + utils.SupportedValuesDocumentation(backendOptions),
|
||||
Description: schemaDescriptions["config_backend_type"] + utils.FormatPossibleValues(backendOptions...),
|
||||
},
|
||||
"origin_url": schema.StringAttribute{
|
||||
Computed: true,
|
||||
|
|
|
|||
|
|
@ -250,7 +250,7 @@ func (r *distributionResource) Schema(_ context.Context, _ resource.SchemaReques
|
|||
Attributes: map[string]schema.Attribute{
|
||||
"type": schema.StringAttribute{
|
||||
Required: true,
|
||||
Description: schemaDescriptions["config_backend_type"] + utils.SupportedValuesDocumentation(backendOptions),
|
||||
Description: schemaDescriptions["config_backend_type"] + utils.FormatPossibleValues(backendOptions...),
|
||||
Validators: []validator.String{stringvalidator.OneOf(backendOptions...)},
|
||||
},
|
||||
"origin_url": schema.StringAttribute{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue