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

[Enhancement] Emplement checking whether the required attribute is set in the schema config during compilation #1727

Open
Peefy opened this issue Oct 31, 2024 · 0 comments
Assignees
Labels
resolver semantic Issues or PRs related to kcl semantic and checker

Comments

@Peefy
Copy link
Contributor

Peefy commented Oct 31, 2024

For the following code

schema Name:
    name: str

n2 = Name {
    # Expect a compile error instead of a runtime error
}

config = {
    name: "Alice"
}

n2 = Name {
    **config # Note it's ok here
}

@Peefy Peefy added semantic Issues or PRs related to kcl semantic and checker resolver labels Oct 31, 2024
@Peefy Peefy added this to the v0.11.0 Release milestone Oct 31, 2024
@He1pa He1pa changed the title [Enhancement] mplement checking whether the required attribute is set in the schema config during compilation [Enhancement] Emplement checking whether the required attribute is set in the schema config during compilation Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
resolver semantic Issues or PRs related to kcl semantic and checker
Projects
None yet
Development

No branches or pull requests

2 participants