From c4d77844e39e1e0bc448201974414f679c8b4a3a Mon Sep 17 00:00:00 2001 From: Jonas Hungershausen Date: Tue, 19 Nov 2024 09:59:03 +0100 Subject: [PATCH] chore: update interrupting webhooks examples payload (#1950) --- .../integrate-with-ory-cloud-through-webhooks.mdx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/docs/guides/integrate-with-ory-cloud-through-webhooks.mdx b/docs/guides/integrate-with-ory-cloud-through-webhooks.mdx index 02a41c6b2..14108d9ed 100644 --- a/docs/guides/integrate-with-ory-cloud-through-webhooks.mdx +++ b/docs/guides/integrate-with-ory-cloud-through-webhooks.mdx @@ -567,14 +567,17 @@ Example payload: { "messages": [ { - "instance_ptr": "#/traits/foo/bar", # Points to the field that failed validation. + "instance_ptr": "#/traits/foo/bar", // Points to the field that failed validation. "messages": [ { - "id": 123, # Unique numeric ID of the error that helps the frontend to interpret this message. + "id": 123, // Unique numeric ID of the error that helps the frontend to interpret this message, doesn't have to be unique. "text": "field must be longer than 12 characters", - "type": "validation", + "type": "error", // One of "error", "info", "success". "context": { - "value": "short value" + // Contextual information about the error. Is schemaless, and can be used to provide additional information to the frontend. + // Typically used to provide fields that are used in internationalization messages. + "value": "short value", + "any": "additional information" } } ]