From 07a5b4947b40fccbc505ad2ef06457dfb765636c Mon Sep 17 00:00:00 2001 From: Jacob Bednarz Date: Sun, 1 Oct 2023 14:13:34 +1100 Subject: [PATCH] fix docs --- docs/resources/ruleset.md | 2 +- internal/framework/service/rulesets/schema.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/resources/ruleset.md b/docs/resources/ruleset.md index 863f6446be..a632d57040 100644 --- a/docs/resources/ruleset.md +++ b/docs/resources/ruleset.md @@ -641,7 +641,7 @@ Required: Optional: -- `default` (Number) Default edge TTL +- `default` (Number) Default edge TTL. - `status_code_ttl` (Block List) Edge TTL for the status codes. (see [below for nested schema](#nestedblock--rules--action_parameters--edge_ttl--status_code_ttl)) diff --git a/internal/framework/service/rulesets/schema.go b/internal/framework/service/rulesets/schema.go index 85cdb81c73..84d441dd7f 100644 --- a/internal/framework/service/rulesets/schema.go +++ b/internal/framework/service/rulesets/schema.go @@ -466,12 +466,12 @@ func (r *RulesetResource) Schema(ctx context.Context, req resource.SchemaRequest "mode": schema.StringAttribute{ Required: true, Validators: []validator.String{stringvalidator.OneOf("override_origin", "respect_origin", "bypass_by_default")}, - MarkdownDescription: "Mode of the edge TTL.", + MarkdownDescription: fmt.Sprintf("Mode of the edge TTL. %s", utils.RenderAvailableDocumentationValuesStringSlice([]string{"override_origin", "respect_origin", "bypass_by_default"})), }, "default": schema.Int64Attribute{ Optional: true, Validators: []validator.Int64{int64validator.AtLeast(1)}, - MarkdownDescription: "Default edge TTL", + MarkdownDescription: "Default edge TTL.", }, }, Validators: []validator.Object{EdgeTTLValidator{}},