Skip to content

Add NamedParameter to JinjavaFunctions allowlist group#1317

Merged
jasmith-hs merged 1 commit intomasterfrom
jasmith_hubspot/named-param-allowlist
May 7, 2026
Merged

Add NamedParameter to JinjavaFunctions allowlist group#1317
jasmith-hs merged 1 commit intomasterfrom
jasmith_hubspot/named-param-allowlist

Conversation

@jasmith-hs
Copy link
Copy Markdown
Contributor

Description

Adds NamedParameter to the JinjavaFunctions allowlist group so that NamedParameter objects are accepted by both the return type and method validators when accessed through the EL resolver. Without this, a NamedParameter looked up from context would be rejected by the allowlist validators, preventing property access like .name and .value.

Authored by Claude Code

BRAVE

Backwards Compatibility

Additive-only change — adds a new class to an existing allowlist. No existing behavior is modified.

Rollout and Rollback Plan

Standard deploy. Rollback by reverting the commit.

Automated Testing

Tests added:

  • itResolvesNamedParameterNameThroughAllowlist — verifies {{ np.name }} resolves through the allowlist
  • itResolvesNamedParameterValueThroughAllowlist — verifies {{ np.value }} resolves through the allowlist

Verification

Unit tests pass locally. Both tests exercise the full rendering path with allowlist validators enabled via BaseJinjavaTest.

Expect Dependencies to Fail

No downstream breakage expected — this is purely additive.

REVIEWERS: Please review both the code changes and the answers above, and validate that they match the expectations for BRAVE

NamedParameter needs to be allowlisted so that when a NamedParameter
object is accessed through the EL resolver (e.g. from context), the
return type and method validators don't reject it.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@jasmith-hs jasmith-hs marked this pull request as ready for review May 6, 2026 19:28
@jasmith-hs jasmith-hs merged commit ffa6ca1 into master May 7, 2026
7 checks passed
@jasmith-hs jasmith-hs deleted the jasmith_hubspot/named-param-allowlist branch May 7, 2026 11:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants