Skip to content

Commit

Permalink
warning on deprecated policies
Browse files Browse the repository at this point in the history
  • Loading branch information
ntotten committed Dec 17, 2023
1 parent cb3b4cf commit 4e7c558
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
14 changes: 12 additions & 2 deletions scripts/update-policies.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ type PolicySchema = JSONSchema7 & {
isPaidAddOn?: boolean;
isCustom?: boolean;
isHidden?: boolean;
deprecatedMessage?: string;
};

type Heading = {
Expand Down Expand Up @@ -388,6 +389,17 @@ ${
: ""
}
${
schema.isDeprecated
? `:::danger Deprecated
This policy is deprecated. ${schema.deprecatedMessage ?? ""}
:::`
: ""
}
<!-- start: intro.md -->
${introMd ?? schema.description}
<!-- end: intro.md -->
Expand All @@ -396,8 +408,6 @@ ${introMd ?? schema.description}
schema.isPaidAddOn ?? false
}} />
${customCode}
## Configuration
Expand Down
5 changes: 0 additions & 5 deletions vercel.json
Original file line number Diff line number Diff line change
Expand Up @@ -737,11 +737,6 @@
"destination": "/docs/policies/api-key-inbound",
"permanent": true
},
{
"source": "/docs/policies/validate-json-schema-inbound{/}?",
"destination": "/docs/policies/request-validation-inbound",
"permanent": true
},
{
"source": "/docs/handlers/open-api-handler{/}?",
"destination": "/docs/handlers/openapi",
Expand Down

1 comment on commit 4e7c558

@vercel
Copy link

@vercel vercel bot commented on 4e7c558 Dec 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

docs – ./

docs.zuplopreview.net
docs.zuplo.site
docs-git-main.zuplopreview.net

Please sign in to comment.