This is an automated email from the ASF dual-hosted git repository.

monkeydluffy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix.git


The following commit(s) were added to refs/heads/master by this push:
     new 4c1e670fd docs: add header validation example (#9973)
4c1e670fd is described below

commit 4c1e670fdcb8fe33286f1f9db3f8553b8da03209
Author: Navendu Pottekkat <[email protected]>
AuthorDate: Mon Aug 7 12:13:04 2023 +0530

    docs: add header validation example (#9973)
---
 docs/en/latest/plugins/request-validation.md | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/docs/en/latest/plugins/request-validation.md 
b/docs/en/latest/plugins/request-validation.md
index 8ff5e3a66..bd0d80b7f 100644
--- a/docs/en/latest/plugins/request-validation.md
+++ b/docs/en/latest/plugins/request-validation.md
@@ -192,6 +192,23 @@ The examples below shows how you can configure this Plugin 
for different validat
 }
 ```
 
+### Header validation
+
+```json
+{
+    "header_schema": {
+        "type": "object",
+        "required": ["Content-Type"],
+        "properties": {
+            "Content-Type": {
+                "type": "string",
+                "pattern": "^application\/json$"
+            }
+        }
+    }
+}
+```
+
 ### Combined validation
 
 ```json

Reply via email to