Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type checker doesn't detect usage of optional properties #11

Open
2 tasks
dselman opened this issue Jul 20, 2023 · 1 comment
Open
2 tasks

Type checker doesn't detect usage of optional properties #11

dselman opened this issue Jul 20, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@dselman
Copy link
Contributor

dselman commented Jul 20, 2023

Hello {{name}}! 

Today is **{{% return now.toISOString() %}}**.

{{last}}
namespace [email protected]

@template
concept HelloWorld {
    o String name
    o String last optional
}

Context

This is detected if last is used in a TS expression, but not as a simple variable.

Expected Behavior

Should raise an error that {{last}} is being used and is an optional.

Actual Behavior

Runtime failure:

Error: No values found for path '$['last']' in data [object Object].

Possible Fix

Steps to Reproduce

Existing issues

Context

Your Environment

  • Version used:
  • Environment name and version (e.g. Chrome 39, node.js 5.4):
  • Operating System and version (desktop or mobile):
  • Link to your project:
@dselman dselman added the bug Something isn't working label Jul 20, 2023
@Vinyl-Davyl
Copy link
Collaborator

Hello @dselman permit me to work on this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants