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
|
|
@ -118,7 +118,7 @@ func (r *volumeDataSource) Schema(_ context.Context, _ datasource.SchemaRequest,
|
|||
Computed: true,
|
||||
Attributes: map[string]schema.Attribute{
|
||||
"type": schema.StringAttribute{
|
||||
Description: "The type of the source. " + utils.SupportedValuesDocumentation(SupportedSourceTypes),
|
||||
Description: "The type of the source. " + utils.FormatPossibleValues(SupportedSourceTypes...),
|
||||
Computed: true,
|
||||
},
|
||||
"id": schema.StringAttribute{
|
||||
|
|
|
|||
|
|
@ -225,7 +225,7 @@ func (r *volumeResource) Schema(_ context.Context, _ resource.SchemaRequest, res
|
|||
},
|
||||
Attributes: map[string]schema.Attribute{
|
||||
"type": schema.StringAttribute{
|
||||
Description: "The type of the source. " + utils.SupportedValuesDocumentation(SupportedSourceTypes),
|
||||
Description: "The type of the source. " + utils.FormatPossibleValues(SupportedSourceTypes...),
|
||||
Required: true,
|
||||
PlanModifiers: []planmodifier.String{
|
||||
stringplanmodifier.RequiresReplace(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue