• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

accordproject / template-engine / 37496869051
73%

Build:
DEFAULT BRANCH: main
Ran 06 Oct 2026 04:37PM UTC
Jobs 0
Files 0
Run time –
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
  cancel
37496869051

push

github

web-flow
fix: resolve variables inside scalar optional blocks from the parent context (#196)

Builds on accordproject/template-engine#91 (by Yash Goel) and addresses
its outstanding review comments.

When an optional block guards a scalar value, getJsonPath navigated into
the property scope, so {{age}} inside {{#optional age}} resolved as
$['age']['age']. Scalar optionals are now not treated as navigation
scopes: named variables resolve from the parent data context, and the
pre-processing pass leaves scalar values to the normal traverse.

Review fixes on top of #91:
- {{this}} directly inside a scalar optional still refers to the
  optional value (resolves to $['age']), so existing templates using
  {{this}} keep working.
- Optionals guarding enum properties are treated as scalars too, using
  the model manager to detect enum types.
- whenSome is emptied once a scalar optional is processed, matching
  object optionals, so the generated AgreementMark is unchanged for
  existing templates.

Adds an optional-scalar template test and unit tests that build the
TemplateMark directly, since the released markdown-template parser does
not yet accept named variables (or enum {{this}}) inside scalar
optionals.



Claude-Session: https://claude.ai/code/session_01CeonXYtkqKk5ceRB2Ns7pw

Signed-off-by: Claude <noreply@anthropic.com>
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Yash Goel <162511050+yashhzd@users.noreply.github.com>
Source Files on build 37496869051
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #37496869051
  • 79785028 on github
  • Prev Build on main (#37496189193)
  • Next Build on main (#37497374185)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc