From 110e2f946fb2ca85b9708e8b986f09114654faa5 Mon Sep 17 00:00:00 2001 From: Michael Rebello Date: Wed, 3 Jun 2026 07:13:59 -0700 Subject: [PATCH] [GAP-10] Specify that clients should populate error `path` from `__path__` Adds guidance that mock error objects should have their `path` field populated at runtime using the response path derived from `__path__`, ensuring errors correctly reflect their position in the response. --- gaps/GAP-10/DRAFT.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gaps/GAP-10/DRAFT.md b/gaps/GAP-10/DRAFT.md index 40600bb..974017e 100644 --- a/gaps/GAP-10/DRAFT.md +++ b/gaps/GAP-10/DRAFT.md @@ -345,7 +345,9 @@ list value directly: This is valid for both operation-level and field-level `@mock` directives. The client must append the contents of {"errors"} to the response's {"errors"} -array. +array. For each of these error objects, the client should populate the {"path"} field at +runtime using the response path derived from {"__path__"}, ensuring that error +paths correctly reflect the field's position in the response. #### extensions