Skip to content

Fix issue 11#36

Open
Marvinrose wants to merge 2 commits intoaccordproject:mainfrom
Marvinrose:fix-issue-11
Open

Fix issue 11#36
Marvinrose wants to merge 2 commits intoaccordproject:mainfrom
Marvinrose:fix-issue-11

Conversation

@Marvinrose
Copy link
Copy Markdown

This PR enhances TemplateMarkInterpreter.checkTypes to detect unguarded optional properties at compile time, addressing the root cause of Issue #11.

Changes:

  • Modified checkTypes to flag VariableDefinition nodes for optional properties.

  • Added issue-11.test.ts with a single test case using raw TemplateMark to verify the fix for an unguarded {{last}} in a template tied to a model with an optional last property.

Screenshot (575)

…roject#11

Signed-off-by: Chibuezem Marvinrose <rozzeymarvin32@gmail.com>
Signed-off-by: Chibuezem Marvinrose <rozzeymarvin32@gmail.com>
@mttrbrts
Copy link
Copy Markdown
Member

Thanks for this contribution! Before we can review, please resolve the merge conflicts with the base branch.

git fetch origin main
git rebase origin/main
# Resolve conflicts
git push --force-with-lease

Once the conflicts are resolved, we'll proceed with the review.


This comment was generated by AI on behalf of @mttrbrts.

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