From 7130caf9984902f665c25828c6ec85c871160e6e Mon Sep 17 00:00:00 2001 From: Lari Taskula Date: Tue, 2 Aug 2016 19:13:23 +0300 Subject: [PATCH] Bug 16825: [QA Follow-up] Add 'new_status' to Swagger definition Adds missing "new_status" to item's Swagger definition. To test: 1. Run t/db_dependent/api/v1/swagger/definitions.t 2. Observe that test fails because of missing new_status. 3. Apply patch and test again 4. Observe that test no longer complains about new_status. (minify swagger) perl misc/devel/minifySwagger.pl -s api/v1/swagger/swagger.json -d api/v1/swagger Signed-off-by: Jiri Kozlovsky --- api/v1/swagger/definitions/item.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api/v1/swagger/definitions/item.json b/api/v1/swagger/definitions/item.json index 9c43f85..2422786 100644 --- a/api/v1/swagger/definitions/item.json +++ b/api/v1/swagger/definitions/item.json @@ -172,6 +172,10 @@ "stocknumber": { "type": ["string", "null"], "description": "inventory number" + }, + "new_status": { + "type": ["string", "null"], + "description": "'new' value, whatever free-text information." } } } -- 1.9.1