From 058be0ff812b9819b3a44ed476e05bcb36d491e1 Mon Sep 17 00:00:00 2001 From: Andrew Ash Date: Mon, 18 Jul 2022 23:46:05 -0400 Subject: [PATCH] Add example for complex error parameters Fixes https://github.com/palantir/conjure/issues/1217 --- docs/spec/wire.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/spec/wire.md b/docs/spec/wire.md index bd4950ac2..7a2709c66 100644 --- a/docs/spec/wire.md +++ b/docs/spec/wire.md @@ -349,6 +349,7 @@ Conjure Errors are serialized as JSON objects with the following keys: code: NOT_FOUND safe-args: name: RecipeName + numbers: list ``` Example error type in JSON presentation: ```json @@ -357,7 +358,8 @@ Conjure Errors are serialized as JSON objects with the following keys: "errorName": "Recipe:RecipeNotFound", "errorInstanceId": "xxxxxxxx-xxxx-Mxxx-Nxxx-xxxxxxxxxxxx", "parameters": { - "name": "roasted broccoli with garlic" + "name": "roasted broccoli with garlic", + "numbers": [1, 2, 3] } } ```