refactor(docs): remove duplicate util func to format possible values (#1050)

This commit is contained in:
Ruben Hönle 2025-11-11 16:24:48 +01:00 committed by GitHub
parent 64d6fa9bea
commit 52b879b436
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
28 changed files with 30 additions and 77 deletions

View file

@ -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{

View file

@ -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(),