Skip to content

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

Open
@Peefy

Description

@Peefy

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingresolver

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions