Skip to content

Commit 61d9e24

Browse files
authored
[Rules] Custom Errors: Asset description is a required field (cloudflare#21142)
1 parent d88cc55 commit 61d9e24

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/content/docs/rules/custom-errors/create-api.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ curl --request PUT \
104104
--header "Authorization: Bearer <API_TOKEN>" \
105105
--header "Content-Type: application/json" \
106106
--data '{
107+
"description": "Standard 5xx error template page",
107108
"url": "https://example.com/errors/500_new_template.html"
108109
}'
109110
```

src/content/docs/rules/custom-errors/parameters.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Custom error assets have the following parameters:
5858
- Numbers (`0-9`)
5959
- The underscore (`_`) character
6060
- The maximum length is 200 characters.
61-
- **`description`** <Type text="String"/> <MetaInfo text="Optional"/>
61+
- **`description`** <Type text="String"/> <MetaInfo text="Required"/>
6262
- A string describing the custom error asset.
6363
- Example value: `"Standard 5xx error template page"`.
6464
- **`url`** <Type text="String"/> <MetaInfo text="Required"/>

0 commit comments

Comments
 (0)