Replies: 1 comment
-
|
Mapping entry access happens via subscripting, so you would need to do this: params {
["inw"] { val = this["iniw"].val + this["inqw"].val }
// ...
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am evaluating pkl for an application. I would have a schema definition that is provided by me:
and an actual config written by the user of the framework:
So essentially I have a type object called Parameter with defined properties, and I want the user to be able to define an arbitrary number of Parameters where some Parameters depend on other Parameters.
Using a Mapping to do this is not working:
What should I be doing instead?
Beta Was this translation helpful? Give feedback.
All reactions