From 19e058bf4233dd6da88db1416bcecc194cb32058 Mon Sep 17 00:00:00 2001 From: baarkerlounger Date: Tue, 19 Oct 2021 15:56:51 +0100 Subject: [PATCH] Add some 422 examples --- docs/api/DLUHC-CORE-Data.v1.json | 47 ++++++++++++++++++++++++++++---- 1 file changed, 41 insertions(+), 6 deletions(-) diff --git a/docs/api/DLUHC-CORE-Data.v1.json b/docs/api/DLUHC-CORE-Data.v1.json index 571fef176..bba441697 100644 --- a/docs/api/DLUHC-CORE-Data.v1.json +++ b/docs/api/DLUHC-CORE-Data.v1.json @@ -24,7 +24,8 @@ "application/json": { "schema": { "$ref": "#/components/schemas/Case-Log" - } + }, + "examples": {} } } }, @@ -81,6 +82,26 @@ "examples": {} } } + }, + "422": { + "description": "Unprocessable Entity ", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {} + }, + "examples": { + "Invalid Age": { + "value": { + "errors": [ + "Tenant age must be between 0 and 120" + ] + } + } + } + } + } } }, "description": "Update the information of an existing case log", @@ -147,11 +168,25 @@ } } }, - "400": { - "description": "Missing Required Information" - }, - "409": { - "description": "Email Already Taken" + "422": { + "description": "Unprocessable Entity ", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": {} + }, + "examples": { + "Invalid Age": { + "value": { + "errors": [ + "Tenant age must be between 0 and 120" + ] + } + } + } + } + } } }, "requestBody": {