Skip to content

Commit

Permalink
fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobbednarz committed Oct 1, 2023
1 parent 23944d5 commit 07a5b49
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/resources/ruleset.md
Original file line number Diff line number Diff line change
Expand Up @@ -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))

<a id="nestedblock--rules--action_parameters--edge_ttl--status_code_ttl"></a>
Expand Down
4 changes: 2 additions & 2 deletions internal/framework/service/rulesets/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}},
Expand Down

0 comments on commit 07a5b49

Please sign in to comment.