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 anEnforcerResult
object. TheEnforcerResult.value
property will contain an object with thebody
,header
, andschema
properties.There are a few ways to get the
value
out of theEnforcerResult
object. The example given for the Operation.response() uses index desctructuring to get out the value out of theEnforcerResult
object.Let me know if I've answered the question for you or not.
Thanks.