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! |
Beta Was this translation helpful? Give feedback.
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
} |
Beta Was this translation helpful? Give feedback.
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
parameterMacro
andmodelPropertyMacro
functions are mainly for simple default/ example overrides, not for deep context-aware logic.parameter.default
for parameters, or the property object for models).