Skip to content

Commit

Permalink
adding AddHeader v2 policy with regex fix
Browse files Browse the repository at this point in the history
  • Loading branch information
CrowleyRajapakse committed Dec 20, 2023
1 parent c8fbffe commit 8f15a31
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
{
"category": "Mediation",
"name": "addHeader",
"version": "v1",
"version": "v2",
"displayName": "Add Header",
"description": "This policy allows you to add a new header to the request",
"policyAttributes": [
{
"name": "headerName",
"displayName": "Header Name",
"description": "Name of the header to be added",
"validationRegex": "^([a-zA-Z_][a-zA-Z\\d_\\-\\ ]*)$",
"validationRegex": "^.+$",
"type": "String",
"required": true
},
{
"name": "headerValue",
"displayName": "Header Value",
"description": "Value of the header",
"validationRegex": "^([a-zA-Z\\d_][a-zA-Z\\d_\\-\\ ]*)$",
"validationRegex": "^.+$",
"type": "String",
"required": true
}
Expand Down

0 comments on commit 8f15a31

Please sign in to comment.