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
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
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
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
shreyvishal
7a0a78d43d
Added: Bug Fixes
2025-06-25 16:30:47 +05:30
shreyvishal
c59db0c9d6
Revert "bug fixes"
2025-06-25 15:39:06 +05:30
shreyvishal
789fda2666
bug fixes
2025-06-23 06:55:54 +00:00
MohitKatare-protean
9040124d91
added tag omitZero to the subscriber and subscription struct
2025-05-30 15:29:56 +05:30
MohitKatare-protean
cfdf589f43
Resolved linitng issue
2025-04-09 08:25:05 +05:30
MohitKatare-protean
da93ca2326
Merge branch 'beckn-onix-v1.0-develop' of https://github.com/beckn/beckn-onix into feature/contex_id
2025-04-09 08:22:56 +05:30
MohitKatare-protean
c70ff10843
update on the review comments
...
1. change ContextKeyModelId to ContextKeyModuleId
2. added ContextKeyTxnId to the constants.
2025-04-08 15:05:07 +05:30
MohitKatare-protean
ec62a3242b
resolved reqpreprocessing review comments
...
1. added logs for contextKey parsing and unmarshaling yml file.
2. resolved router test case issue.
2. resolved logger test case issues.
2025-04-06 17:09:59 +05:30
MohitKatare-protean
fc296b8ef3
code fix as per the review comments
2025-04-04 15:45:15 +05:30
mayur.popli
2329efd562
fix: module id and linting issues
2025-04-04 15:39:05 +05:30
MohitKatare-protean
01588fc866
Added test case for the contextKeys
2025-04-03 15:17:02 +05:30
MohitKatare-protean
0ee2010338
change for the context keys
2025-04-03 12:35:13 +05:30
MohitKatare-protean
bbb1dbc843
Update on the review comments
2025-03-31 22:40:59 +05:30
MohitKatare-protean
f0e39e34e7
updated as per the review comments
2025-03-30 19:13:02 +05:30
MohitKatare-protean
9bfb65079e
Update on review comments
...
1. changed implementations from camelcase to lowercase
2. added removed initSteps.
3. updated rout struct for model.go
2025-03-29 16:08:28 +05:30
MohitKatare-protean
7055c1c0d8
updated code.
...
1. Resolved merge conflicts.
2. Resolved go linting issues.
2025-03-28 22:45:58 +05:30
MohitKatare-protean
87bc86e1d6
Merge branch 'beckn-onix-v1.0-develop' of https://github.com/beckn/beckn-onix into feature/core
2025-03-28 22:18:39 +05:30
mayur.popli
c23223eda4
fix: added comments
2025-03-28 17:51:26 +05:30
mayur.popli
84e36a7dae
fix: test coverage
2025-03-28 17:26:29 +05:30
mayur.popli
889619fba5
fix: resolved comments
2025-03-28 17:17:55 +05:30
mayur.popli
afb1ad9d6c
fix: resolved comments
2025-03-28 13:48:34 +05:30
mayur.popli
f13157b6b9
fix: resolved comments
2025-03-26 09:39:37 +05:30
MohitKatare-protean
ec558558c5
added updated code for core wiring
...
1. Removed tracing
2. Skipped Registration
2025-03-25 21:06:34 +05:30
mayur.popli
ce70a467b9
fix: error coverage
2025-03-25 02:52:44 +05:30
mayur.popli
5a3501b99d
feat: test file for response and error module
2025-03-25 02:29:33 +05:30