Commit Graph

696 Commits

Author SHA1 Message Date
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 Nirhali
6d4f45a632 #621 Fixed docker image for onix and tested obs setup 2026-03-12 06:35:14 +00:00
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
Mayuresh A Nirhali
01f959a25b Update affiliations from FIDE to Beckn Labs and adding NPCI contributors
Update affiliations from FIDE to Beckn Labs and adding NPCI contributors
2026-02-27 21:59:21 +05:30
Mayuresh A Nirhali
434e0e99d7 Merge pull request #605 from Beckn-One/feat/issues_585
Feat: Network Observability - OTelSetup plugin, Instrumentation in Core.
2026-02-27 21:15:30 +05:30
Manendra Pal Singh
59aa058920 Feat: update the pr as per comment 2026-02-27 19:05:09 +05:30
Manendra Pal Singh
1293c241f7 Fix : update the config 2026-02-26 15:00:28 +05:30
Manendra Pal Singh
80f1cc0f10 Fix : update the config 2026-02-26 14:57:38 +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
18303eb1b5 Fix : update the matric arrtibute 2026-02-24 13:35:44 +05:30
Manendra Pal Singh
c2f3dbce2c fix: sender and recipient.id 2026-02-23 23:16:49 +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
Mayuresh A Nirhali
9d6004502e Update SETUP.md
#542 - Change the AWS specific link to point to new repo where aws specific tools are maintained.
2026-01-30 20:00:26 +05:30
Mayuresh A Nirhali
b8023e1f6e Merge pull request #606 from nirmalnr/beckn-io-url-update
Update registry URLs in example configuration files to use beckn.io domain
2026-01-30 11:42:52 +05:30
Nirmal N R
0a0e5377ef Update registry URLs in local configuration files to use beckn.io domain 2026-01-30 10:45:25 +05:30
Manendra Pal Singh
2745047b27 Fix : update the name RoleCDS to RoleDiscovery 2026-01-29 23:15:41 +05:30
Manendra Pal Singh
8948479dea Feat: Update the logger config to show the parent_id 2026-01-28 21:29:37 +05:30
Mayuresh A Nirhali
a42159ddb4 Merge pull request #602 from Beckn-One/config-update
Issue 599 - fix reqpreprocessor config: use contextKeys instead of uuidKeys
2026-01-23 13:56:17 +05:30
ameersohel45
9e2a151606 Issue 599 - fix config files 2026-01-23 12:44:53 +05:30
Mayuresh A Nirhali
1db4f60468 Update README.md
add missing 'otelsetup' to list of plugin types
2026-01-21 16:32:06 +05:30
Mayuresh Nirhali
7944a5d147 #598 - Fix service observability doc 2 2026-01-21 16:27:19 +05:30
Mayuresh A Nirhali
445802f4a4 Merge pull request #595 from nirmalnr/feature/allowed_namespaces
feat: add allowed parent namespaces for signature validation
2026-01-21 16:17:33 +05:30
Nirmal N R
c512633cbe chore: updated error message for allowedParentnamespaces validation 2026-01-21 14:57:21 +05:30
Mayuresh Nirhali
0f95a8bb97 #598 - Fix service observability doc 2026-01-21 14:09:06 +05:30
Mayuresh A Nirhali
208102c2d6 Merge pull request #597 from Beckn-One/feat/issues_596
Feat : add automaxprocs to set GOMAXPROCS from cgroup limits
2026-01-21 13:54:11 +05:30
Manendra Pal Singh
d1ca6f260f Feat : add automaxprocs to set GOMAXPROCS from cgroup limits 2026-01-21 13:45:41 +05:30
Nirmal N R
95e5c991a5 feat: add allowed parent namespaces for signature validation 2026-01-20 19:52:45 +05:30
Mayuresh A Nirhali
ce9583279a Merge pull request #590 from Beckn-One/fix/add_tls_support_589
fix : add the tls support for the redis cache
2026-01-13 08:55:38 +05:30
Manendra Pal Singh
f860ff820c add the valdation 2026-01-12 16:44:29 +05:30
Mayuresh A Nirhali
364494a96a Merge pull request #591 from Beckn-One/config-update
Issue 587 - add: include schema-validator2 config for local network s…
2026-01-10 10:43:11 +05:30
ameersohel45
61f1be6e47 Issue 587 - add: include schema-validator2 config for local network setup 2026-01-09 19:10:19 +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
Mayuresh A Nirhali
93cb1647bf Merge pull request #583 from Beckn-One/580-schema2validator
Issue 551 - fix: ensure script exits on plugin build failure
2025-12-15 21:38:58 +05:30
ameersohel45
8ef2b162d9 Issue 551 - fix: ensure script exits on plugin build failure 2025-12-15 17:02:08 +05:30
Mayuresh A Nirhali
b6d92468e5 Merge pull request #582 from Beckn-One/580-schema2validator
Issue 580 - Add extended schema validation capability to schemav2validator plugin
2025-12-15 15:55:33 +05:30
Manendra Pal Singh
17d9ca865d update the as per the comment 2025-12-15 12:12:33 +05:30
Manendra Pal Singh
c367a970d1 remove the binary from PR 2025-12-15 10:25:26 +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