From 93130f886497b8fa617a3abc9bcb1ecaa8b26ab4 Mon Sep 17 00:00:00 2001 From: Mark Dennis Date: Thu, 5 Nov 2026 10:48:30 +0000 Subject: [PATCH] Preview: error codes are always strings Co-Authored-By: Claude Opus 5.5 --- descriptions/0/api.intercom.io.yaml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/descriptions/0/api.intercom.io.yaml b/descriptions/0/api.intercom.io.yaml index ddc15c79..5102e747 100644 --- a/descriptions/0/api.intercom.io.yaml +++ b/descriptions/0/api.intercom.io.yaml @@ -9011,7 +9011,7 @@ paths: type: error.list request_id: errors: - - code: 422 + - code: "422" message: invalid company data structure schema: "$ref": "#/components/schemas/error" @@ -51794,13 +51794,9 @@ components: items: properties: code: - anyOf: - - type: string - - type: integer + type: string description: A string indicating the kind of error, used to further - qualify the HTTP response code. A few request validation errors - send an HTTP status code as an integer here instead, for example - `422`. + qualify the HTTP response code. example: unauthorized message: type: string