diff --git a/config/local-beckn-one-bap.yaml b/config/local-beckn-one-bap.yaml index f9fcf43..e8d1e39 100644 --- a/config/local-beckn-one-bap.yaml +++ b/config/local-beckn-one-bap.yaml @@ -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 \ No newline at end of file diff --git a/config/local-beckn-one-bpp.yaml b/config/local-beckn-one-bpp.yaml index af527f3..a5c23de 100644 --- a/config/local-beckn-one-bpp.yaml +++ b/config/local-beckn-one-bpp.yaml @@ -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