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

[Bug] Missing config to schema type enhancement for the schema attribute list default value. #1737

Open
Peefy opened this issue Nov 4, 2024 · 0 comments
Assignees
Labels
bug Something isn't working resolver

Comments

@Peefy
Copy link
Contributor

Peefy commented Nov 4, 2024

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

Write the KCL code

schema Config:
    conditions?: [Item] = [{name_typo: "kcl"}] # Missing the type error for the wrong attribute `name_typo`

schema Item:
    name: str

c = Config {}

2. What did you expect to see? (Required)

The type error at compile time

3. What did you see instead (Required)

A runtime error

4. What is your KCL components version? (Required)

v0.10.7

@Peefy Peefy added bug Something isn't working resolver labels Nov 4, 2024
@Peefy Peefy added this to the v0.11.0 Release milestone Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working resolver
Projects
None yet
Development

No branches or pull requests

2 participants