Skip to content

enhancement(lading_payload): Add !concat selector for templated_json#1825

Merged
bruceg merged 1 commit intomainfrom
bruceg/templated-json-concat
Mar 16, 2026
Merged

enhancement(lading_payload): Add !concat selector for templated_json#1825
bruceg merged 1 commit intomainfrom
bruceg/templated-json-concat

Conversation

@bruceg
Copy link
Copy Markdown
Contributor

@bruceg bruceg commented Mar 13, 2026

What does this PR do?

Adds a new !concat mechanism to the templated_json payload generator. Docs are in the README and code.

Motivation

I was needing to generate an object containing a set of fixed fields mixed with other fields chosen from a small set of patterns. This ended up requiring all the fixed fields duplicated for each choice.

Related issues

N/A

Additional Notes

The overwrite behavior when joining different types is an intentional simplification. I initially tried to make the resolver do a type check pass to ensure that all sub-generators would have the same type, but that became much more difficult than I had expected.

@bruceg bruceg requested a review from a team as a code owner March 13, 2026 02:55
@bruceg bruceg added enhancement New feature or request payloads To do with payload formats, their creation or repair labels Mar 13, 2026
@bruceg bruceg merged commit 021b37b into main Mar 16, 2026
34 checks passed
@bruceg bruceg deleted the bruceg/templated-json-concat branch March 16, 2026 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request payloads To do with payload formats, their creation or repair

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants