From a431cc8892344365642c019fa849d8a792efb856 Mon Sep 17 00:00:00 2001
From: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Date: Tue, 19 Apr 2022 15:46:28 +0100
Subject: [PATCH] Bug 21978: Add middle_name to api specification

This patch adds middle_name to the accaeptable fields in API requests
and responses.

Test plan
1) Search for a user using the API
2) Confirm the API responds with a 200
---
 api/v1/swagger/definitions/patron.yaml | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/api/v1/swagger/definitions/patron.yaml b/api/v1/swagger/definitions/patron.yaml
index 256430ae6c..27c1e5dd5b 100644
--- a/api/v1/swagger/definitions/patron.yaml
+++ b/api/v1/swagger/definitions/patron.yaml
@@ -19,6 +19,11 @@ properties:
       - string
       - "null"
     description: patron's first name
+  middle_name:
+    type:
+      - string
+      - "null"
+    description: patron's middle name
   title:
     type:
       - string
-- 
2.20.1