limited-photographer-61008
05/10/2023, 2:49 PMchilly-king-10285
05/10/2023, 2:49 PMchilly-king-10285
05/10/2023, 2:49 PMlimited-photographer-61008
05/10/2023, 2:51 PMinstance_ptr
used by Ory?chilly-king-10285
05/10/2023, 2:51 PMchilly-king-10285
05/10/2023, 2:52 PMinstance_ptr
is used in the response payload of flow-interrupting webhooks to indicate the field where there is an error. It helps Ory understand which field in the user input has an issue and needs to be addressed. For example, in the following payload: json { "messages": [ { "instance_ptr": "#/traits/foo/bar", "messages": [ { "id": 123, "text": "field must be longer than 12 characters", "type": "validation", "context": { "value": "short value" } } ] } ] }
The instance_ptr
value #/traits/foo/bar
points to the field with an error, which helps Ory handle the error accordingly. Source: [https://www.ory.sh/docs/guides/integrate-with-ory-cloud-through-webhooks](https://www.ory.sh/docs/guides/integrate-with-ory-cloud-through-webhooks)limited-photographer-61008
05/10/2023, 3:00 PMinstance_ptr
pointer the Ory identity?chilly-king-10285
05/10/2023, 3:00 PMchilly-king-10285
05/10/2023, 3:01 PMlimited-photographer-61008
05/10/2023, 3:03 PMchilly-king-10285
05/10/2023, 3:03 PMchilly-king-10285
05/10/2023, 3:04 PMlimited-photographer-61008
05/10/2023, 3:05 PMchilly-king-10285
05/10/2023, 3:05 PMchilly-king-10285
05/10/2023, 3:05 PMmagnificent-energy-493
limited-photographer-61008
05/10/2023, 5:56 PMlimited-photographer-61008
05/10/2023, 5:58 PMlimited-photographer-61008
05/10/2023, 7:17 PMinstance_ptr
to '#/'
it results with your messages
being added to flow.ui.messages
. I think any type
other than 'error'
will be converted to 'info'
. If instance_ptr
is '#/identifier'
, it results with your messages
being added to the object in flow.ui.nodes
with attributes.name
=== 'identifier'
.