Commit Graph

157 Commits

Author SHA1 Message Date
Mayuresh
c2e357fd1e reverting changes from schemav2validator plugin 2026-03-25 20:15:51 +05:30
Mayuresh
1be757a165 fix(reqpreprocessor): support camelCase context attributes for beckn spec migration
- Add transactionId and messageId as camelCase aliases in model.go contextKeys map,
  pointing to the same ContextKeyTxnID and ContextKeyMsgID constants. This allows
  adapter configs to reference either form without failing startup validation.

- In reqpreprocessor, add firstNonNil() helper for subscriber/caller ID lookups
  so bap_id/bapId and bpp_id/bppId are both resolved correctly regardless of
  which beckn spec version the payload uses. snake_case takes precedence when both
  are present.

- Add snakeToCamel() helper used in the context key loop so a single config entry
  (e.g. transaction_id) automatically also checks the camelCase form (transactionId)
  without requiring any config file changes.

- Add TestSnakeToCamel, TestCamelCaseSubscriberID, TestCamelCaseContextKeys to
  cover all new code paths.

Fixes #637

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-25 15:40:36 +05:30
Mayuresh A Nirhali
fe541227b9 Merge pull request #614 from ssd532/fix/test-failures
Fix test failures in reqmapper and simplekeymanager plugins
2026-03-02 17:30:53 +05:30
Manendra Pal Singh
59aa058920 Feat: update the pr as per comment 2026-02-27 19:05:09 +05:30
Manendra Pal Singh
9d57d3b8f1 Feat : Update PR as comment 2026-02-26 14:45:35 +05:30
Sachin Divekar
34954ce83a Fix test failures in reqmapper and simplekeymanager plugins
- reqmapper/cmd: Add missing mappingsFile to TestProviderNewSuccess config
- simplekeymanager/cmd: Fix wantErr for partial config (keyId-only) case
- simplekeymanager/cmd: Use valid base64 key values in TestConfigMapping
- simplekeymanager: Remove incorrect SubscriberID assertion from TestGenerateKeyset
  (GenerateKeyset generates raw keys, subscriber identity is assigned separately)
2026-02-24 20:04:10 +05:30
Manendra Pal Singh
ab89102711 Feat: configure audit fields and metrics for onix adapter and add local configuration for onix adapterZ 2026-02-23 16:08:44 +05:30
Manendra Pal Singh
8948479dea Feat: Update the logger config to show the parent_id 2026-01-28 21:29:37 +05:30
Nirmal N R
c512633cbe chore: updated error message for allowedParentnamespaces validation 2026-01-21 14:57:21 +05:30
Nirmal N R
95e5c991a5 feat: add allowed parent namespaces for signature validation 2026-01-20 19:52:45 +05:30
Manendra Pal Singh
f860ff820c add the valdation 2026-01-12 16:44:29 +05:30
Manendra Pal Singh
58457d53c2 fix : add the tls support for the redis cache 2026-01-09 12:40:10 +05:30
Mayuresh A Nirhali
bbc7ff91f9 Merge pull request #568 from Beckn-One/feat/observability
Feat/observability
2025-12-18 15:27:47 +05:30
Manendra Pal Singh
176b8f3043 update the as per the comment 2025-12-18 12:30:28 +05:30
Manendra Pal Singh
17d9ca865d update the as per the comment 2025-12-15 12:12:33 +05:30
Manendra Pal Singh
89ebaf69e4 update and merged with latest master 2025-12-15 10:09:39 +05:30
ameersohel45
706030ccec test: add tests and update docs for extended schema validation 2025-12-14 23:55:04 +05:30
ameersohel45
3b59507f15 ref: improve error handling in extended schema validation 2025-12-14 23:07:58 +05:30
ameersohel45
cd49b7dda9 ref: enhance schema validation logic and skip core schema 2025-12-14 21:49:51 +05:30
ameersohel45
f0ccef9e59 fix: remove redundant code 2025-12-12 17:21:02 +05:30
ameersohel45
f6b32ef2f2 fix: error handling in extended schema 2025-12-12 17:21:02 +05:30
ameersohel45
5843d2a760 update: logs and comments also ref refreshLoop method 2025-12-12 17:21:02 +05:30
ameersohel45
5feb84196c ref: Split Extended Schema logic and rename variables 2025-12-12 17:21:02 +05:30
ameersohel45
5739573da0 ref: remove url transform config 2025-12-12 17:21:02 +05:30
ameersohel45
94943e63e6 Issue580-feat: add support for referenced schema validation and caching 2025-12-12 17:21:02 +05:30
Mayuresh Nirhali
96fac33be1 573 - New plugin - schema mapper 2025-12-05 16:09:02 +05:30
Manendra Pal Singh
045f29da13 update as per the PR comment 2025-12-02 23:00:28 +05:30
Manendra Pal Singh
8fd7afb54a update as per the PR comment 2025-12-02 21:14:02 +05:30
Manendra Pal Singh
4f2a137482 merged with latest main 2025-11-28 11:06:14 +05:30
Manendra Pal Singh
5e3170c859 update as per the comment in pr 2025-11-27 22:43:42 +05:30
ameersohel45
1efb6f5bb9 Issue 556 - add: Add retry configuration support to dediregistry plugin 2025-11-26 11:56:17 +05:30
ameersohel45
0ebe0f0551 updated: test-data file 2025-11-24 12:59:17 +05:30
ameersohel45
6e6b066b80 feat(router): Make domain field optional for Beckn Protocol v2.x.x 2025-11-24 12:48:23 +05:30
Manendra Pal Singh
88eef682df can create matric in there respective module. 2025-11-24 10:25:26 +05:30
Manendra Pal Singh
c38e7b75ca merged with latest master 2025-11-21 16:07:19 +05:30
Manendra Pal Singh
8ef4904076 make changes as per the doc 2025-11-21 16:01:59 +05:30
ameersohel45
ab31e13e81 Issue 554 - refactor: improve error response format 2025-11-18 14:52:37 +05:30
ameersohel45
f9fac45106 Issue 552 - fix: optimized code creating in memory map for action to schema. 2025-11-18 02:25:04 +05:30
ameersohel45
75880a4458 543 - update: to use updated config structure 2025-11-14 13:06:31 +05:30
ameersohel45
9f913e6aa9 543 - add : README file 2025-11-14 11:34:47 +05:30
ameersohel45
f534e41b6c 543 - add: test cases 2025-11-14 01:04:32 +05:30
ameersohel45
2f8c888101 Issue 543 - feat: add new validator plugin 2025-11-14 00:45:29 +05:30
Manendra Pal Singh
610353aac1 add the feature for observability 2025-11-13 13:16:34 +05:30
ameersohel45
5bd485d189 Issue 540 - fix: remove hardcoded value and add test cases 2025-10-29 12:20:31 +05:30
ameersohel45
16df3245f5 Issue 540 - refactor: migrate DeDi registry plugin to new wrapper API format 2025-10-28 22:51:46 +05:30
ameersohel45
55d81fed85 Issue 527 - feat: update DeDi registry plugin to handle new response structure 2025-10-11 00:41:52 +05:30
ameersohel45
03ea297e51 Issue 527 - fix: remove static record_name from DeDI plugin config to support dynamic bap_id/bpp_id lookup 2025-10-08 12:33:46 +05:30
Mayuresh A Nirhali
ff6b907dee Merge pull request #520 from nirmalnr/feature/exclude_action
feat(router): add excludeAction option for URL routing for backward compatibility
2025-09-24 22:34:19 +05:30
Nirmal N R
e029ebe1f2 Unit tests for excludeAction
Added unit tests for the following:
- For target type URL:
    - ExcludeAction explicitly set true
    - ExcludeAction explicitly set to false
    - ExcludeAction omitted
- ExcludeAction when target type is BPP
- ExcludeAction when target type is BAP
- ExcludeAction when target type is Publisher
2025-09-24 12:16:20 +05:30
ameersohel45
e9e8e70f78 review comment 2025-09-23 17:33:50 +05:30