Issue 553 - add : Add schemav2validator plugin documentation and configuration examples

This commit is contained in:
ameersohel45
2025-11-18 14:56:56 +05:30
parent ab31e13e81
commit 4e69f5a106
3 changed files with 64 additions and 8 deletions

View File

@@ -830,6 +830,28 @@ schemaValidator:
schemaURL: https://schemas.beckn.org
```
#### Schema2Validator Plugin
**Remote URL Configuration:**
```yaml
schemaValidator:
id: schemav2validator
config:
type: url
location: https://raw.githubusercontent.com/beckn/protocol-specifications-new/refs/heads/draft/api-specs/beckn-protocol-api.yaml
cacheTTL: "3600"
```
**Local File Configuration:**
```yaml
schemaValidator:
id: schemav2validator
config:
type: file
location: ./schemas/beckn-protocol-api.yaml
cacheTTL: "3600"
```
#### Router Plugin
```yaml
router: