Merge pull request #591 from Beckn-One/config-update

Issue 587 - add: include schema-validator2 config for local network s…
This commit is contained in:
Mayuresh A Nirhali
2026-01-10 10:43:11 +05:30
committed by GitHub
2 changed files with 44 additions and 4 deletions

View File

@@ -51,9 +51,16 @@ modules:
config:
addr: redis:6379
schemaValidator:
id: schemavalidator
id: schemav2validator
config:
schemaDir: ./schemas
type: url
location: https://raw.githubusercontent.com/beckn/protocol-specifications-new/refs/heads/main/api/beckn.yaml
cacheTTL: "3600"
extendedSchema_enabled: "true"
extendedSchema_cacheTTL: "86400"
extendedSchema_maxCacheSize: "100"
extendedSchema_downloadTimeout: "30"
extendedSchema_allowedDomains: "beckn.org,example.com,raw.githubusercontent.com"
signValidator:
id: signvalidator
router:
@@ -68,6 +75,7 @@ modules:
steps:
- validateSign
- addRoute
- validateSchema
- name: bapTxnCaller
path: /bap/caller/
@@ -102,6 +110,17 @@ modules:
id: cache
config:
addr: redis:6379
schemaValidator:
id: schemav2validator
config:
type: url
location: https://raw.githubusercontent.com/beckn/protocol-specifications-new/refs/heads/main/api/beckn.yaml
cacheTTL: "3600"
extendedSchema_enabled: "true"
extendedSchema_cacheTTL: "86400"
extendedSchema_maxCacheSize: "100"
extendedSchema_downloadTimeout: "30"
extendedSchema_allowedDomains: "beckn.org,example.com,raw.githubusercontent.com"
router:
id: router
config:
@@ -116,4 +135,5 @@ modules:
steps:
- addRoute
- sign
- validateSchema

View File

@@ -51,9 +51,16 @@ modules:
config:
addr: redis:6379
schemaValidator:
id: schemavalidator
id: schemav2validator
config:
schemaDir: ./schemas
type: url
location: https://raw.githubusercontent.com/beckn/protocol-specifications-new/refs/heads/main/api/beckn.yaml
cacheTTL: "3600"
extendedSchema_enabled: "true"
extendedSchema_cacheTTL: "86400"
extendedSchema_maxCacheSize: "100"
extendedSchema_downloadTimeout: "30"
extendedSchema_allowedDomains: "beckn.org,example.com, raw.githubusercontent.com"
signValidator:
id: signvalidator
router:
@@ -63,6 +70,7 @@ modules:
steps:
- validateSign
- addRoute
- validateSchema
- name: bppTxnCaller
path: /bpp/caller/
@@ -97,6 +105,17 @@ modules:
id: cache
config:
addr: redis:6379
schemaValidator:
id: schemav2validator
config:
type: url
location: https://raw.githubusercontent.com/beckn/protocol-specifications-new/refs/heads/main/api/beckn.yaml
cacheTTL: "3600"
extendedSchema_enabled: "true"
extendedSchema_cacheTTL: "86400"
extendedSchema_maxCacheSize: "100"
extendedSchema_downloadTimeout: "30"
extendedSchema_allowedDomains: "beckn.org,example.com,raw.githubusercontent.com"
router:
id: router
config:
@@ -111,3 +130,4 @@ modules:
steps:
- addRoute
- sign
- validateSchema