Issue 587 - add: include schema-validator2 config for local network setup
This commit is contained in:
@@ -51,9 +51,16 @@ modules:
|
|||||||
config:
|
config:
|
||||||
addr: redis:6379
|
addr: redis:6379
|
||||||
schemaValidator:
|
schemaValidator:
|
||||||
id: schemavalidator
|
id: schemav2validator
|
||||||
config:
|
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:
|
signValidator:
|
||||||
id: signvalidator
|
id: signvalidator
|
||||||
router:
|
router:
|
||||||
@@ -68,6 +75,7 @@ modules:
|
|||||||
steps:
|
steps:
|
||||||
- validateSign
|
- validateSign
|
||||||
- addRoute
|
- addRoute
|
||||||
|
- validateSchema
|
||||||
|
|
||||||
- name: bapTxnCaller
|
- name: bapTxnCaller
|
||||||
path: /bap/caller/
|
path: /bap/caller/
|
||||||
@@ -102,6 +110,17 @@ modules:
|
|||||||
id: cache
|
id: cache
|
||||||
config:
|
config:
|
||||||
addr: redis:6379
|
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:
|
router:
|
||||||
id: router
|
id: router
|
||||||
config:
|
config:
|
||||||
@@ -116,4 +135,5 @@ modules:
|
|||||||
steps:
|
steps:
|
||||||
- addRoute
|
- addRoute
|
||||||
- sign
|
- sign
|
||||||
|
- validateSchema
|
||||||
|
|
||||||
@@ -51,9 +51,16 @@ modules:
|
|||||||
config:
|
config:
|
||||||
addr: redis:6379
|
addr: redis:6379
|
||||||
schemaValidator:
|
schemaValidator:
|
||||||
id: schemavalidator
|
id: schemav2validator
|
||||||
config:
|
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:
|
signValidator:
|
||||||
id: signvalidator
|
id: signvalidator
|
||||||
router:
|
router:
|
||||||
@@ -63,6 +70,7 @@ modules:
|
|||||||
steps:
|
steps:
|
||||||
- validateSign
|
- validateSign
|
||||||
- addRoute
|
- addRoute
|
||||||
|
- validateSchema
|
||||||
|
|
||||||
- name: bppTxnCaller
|
- name: bppTxnCaller
|
||||||
path: /bpp/caller/
|
path: /bpp/caller/
|
||||||
@@ -97,6 +105,17 @@ modules:
|
|||||||
id: cache
|
id: cache
|
||||||
config:
|
config:
|
||||||
addr: redis:6379
|
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:
|
router:
|
||||||
id: router
|
id: router
|
||||||
config:
|
config:
|
||||||
@@ -111,3 +130,4 @@ modules:
|
|||||||
steps:
|
steps:
|
||||||
- addRoute
|
- addRoute
|
||||||
- sign
|
- sign
|
||||||
|
- validateSchema
|
||||||
|
|||||||
Reference in New Issue
Block a user