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

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>
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.

1 participant