Skip to content

Conversation

@rockaxorb13
Copy link

@rockaxorb13 rockaxorb13 commented Dec 22, 2025

Fixes #49

Description

This PR adds a regression test case using & improving the reproduction files provided in Issue #49.

Changes

  • Added test/templates/good/optional-nested containing the reproduction model, data, and template.
  • Added a custom "Negative Test" case to template.md to verify top-level optionals alongside nested ones.
  • Updated snapshots to reflect the correct resolution of nested optional variables (e.g., {{uri}} resolving to the URL instead of being empty).

Verification

The test already passes on the current main branch, confirming that the logic for switching scope in OptionalBlock is working correctly.

Signed-off-by: Aadityavardhan Singh <singhrashmi018@gmail.com>
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.

nested optional resolving issues

1 participant