Discrepancy in docs? #144
-
|
Hey, I could be misunderstanding something; please let me know if so. But I'm noticing what appears to be a discrepancy around the return type of
However, the EnforcerResult page indicates that the returned object will have the properties Is this a discrepancy or am I missing some context? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Hello @dabernathy89. I think I understand what you're asking, but if not then please feel free to ask again. The There are a few ways to get the Let me know if I've answered the question for you or not. Thanks. |
Beta Was this translation helpful? Give feedback.
Hello @dabernathy89. I think I understand what you're asking, but if not then please feel free to ask again.
The
Operation.response()function does return anEnforcerResultobject. TheEnforcerResult.valueproperty will contain an object with thebody,header, andschemaproperties.There are a few ways to get the
valueout of theEnforcerResultobject. The example given for the Operation.response() uses index desctructuring to get out the value out of theEnforcerResultobject.Let me know if I've answered the question for you or not.
Thanks.