-
Hello,
Now, I tried to create a
I noticed, that as soon as I specify a concrete type like |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
This is a limitation of One approach that works provided that you do not need to override
|
Beta Was this translation helpful? Give feedback.
-
Oof, wished defaults worked here. Amend following doesn't work for my use case, and I can't come up with a better way to do value injection for the children. |
Beta Was this translation helpful? Give feedback.
This is a limitation of
Listing
/Mapping
defaults and is (as of recently) covered in the language reference here: https://pkl-lang.org/main/current/language-reference/index.htmlOne approach that works provided that you do not need to override
commonProperty
in specificListing
elements is to amend in that property afterwards using a member predicate: