Skip to content

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

@Peefy

Description

@Peefy

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
}

Metadata

Metadata

Assignees

Labels

resolversemanticIssues or PRs related to kcl semantic and checker

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions