Repository navigation
How should parameterMacro and modelPropertyMacro be used?
#10576
|
Hi, I’m trying to understand the exact purpose of
Any short example of recommended usage would be very helpful. Thanks! |
Answered by
saky-semicolon
Sep 23, 2025
Replies: 1 comment
|
The
'parameterMacro': function (operation, parameter) {
if (parameter.name === 'year') {
return 2025
}
return parameter.default // fallback to original
} |
0 replies
Answer selected by
edusummit
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
parameterMacroandmodelPropertyMacrofunctions are mainly for simple default/ example overrides, not for deep context-aware logic.parameter.defaultfor parameters, or the property object for models).