From 8cec0bcdf27dbdf9eb0aff0da1eec5f325a963c4 Mon Sep 17 00:00:00 2001 From: zhanggang Date: Thu, 7 Jun 2018 17:58:08 +0800 Subject: [PATCH] Add volume_type to apischema Currently, trove had support pass volume_type during creation of instance/cluster, but the schema "volume" only contains the "size", it is nesscessary add the "type" to schema "volume". Besides, there is a "required: True" under "properities", it is unnecessary. Change-Id: Id7c4317b0ba62d751956ddb1baee70fe27bc15f4 Signed-off-by: zhanggang --- trove/common/apischema.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trove/common/apischema.py b/trove/common/apischema.py index 554a25aa3e..882b2c88b0 100644 --- a/trove/common/apischema.py +++ b/trove/common/apischema.py @@ -102,7 +102,7 @@ volume = { "required": ["size"], "properties": { "size": volume_size, - "required": True + "type": non_empty_string } }