-
Notifications
You must be signed in to change notification settings - Fork 159
Closed
Description
Bug Report
Looks like it is not possible to set the attribute value if the schema has declared the default attribute value.
1. Minimal reproduce step (Required)
schema Foo:
a: {str:str} = {"name": "test"}
b: [int] = [1, 2, 3]
foo = Foo {
a: {"one": "two"}
b: [42]
}
2. What did you expect to see? (Required)
I expect to see values:
foo:
a:
one: two
b:
- 423. What did you see instead (Required)
For this scheme, the explicit value of each field in the foo structure is set, but nevertheless the values flow from the description of the structure.
foo:
a:
name: test
one: two
b:
- 42
- 2
- 34. What is your KCL components version? (Required)
kcl version
0.7.5-linux-amd64
Metadata
Metadata
Assignees
Labels
No labels