-
Notifications
You must be signed in to change notification settings - Fork 167
Closed
Labels
questionFurther information is requestedFurther information is requested
Description
Bug Report
1. Minimal reproduce step (Required)
Tried to run the example from the docs.
schema Person:
gender: "Male" | "Female"
name: Name
schema Name:
first: str
middle?: str # Optional, but must be non-empty when specified
last: str
check:
first != ""
last != ""
middle != "" if middle
alice = Person {
gender: "Female"
name.first: "Alice"
name.last: "White"
name.middle: ""
}Ran with kcl person.k.
2. What did you expect to see? (Required)
Error, since middle name is empty.
3. What did you see instead (Required)
alice:
gender: Female
name:
first: Alice
last: White
middle: '' <-- Expected an error on this line.4. What is your KusionStack components version? (Required)
I don't have the folder required for this step on my machine (Kusion/kclvm-go/KCLVM), since built the binaries from source (commit 82c2be0 from March 8th).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested