From 1328d493166f6ed2d574580c1843d79f0d670cc9 Mon Sep 17 00:00:00 2001 From: Morgan Fainberg Date: Sun, 29 Jan 2017 13:02:10 -0800 Subject: [PATCH] Add comment to clarify resource-options jsonschema Add a comment to clarify the resource-options jsonschema allowing nullable explicitly in all cases. Change-Id: I45d9d5990b68b0bb1208294285d63658b80b11c2 --- keystone/common/resource_options.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/keystone/common/resource_options.py b/keystone/common/resource_options.py index 3135fc9b8b..2dfdd51280 100644 --- a/keystone/common/resource_options.py +++ b/keystone/common/resource_options.py @@ -136,6 +136,8 @@ class ResourceOptionRegistry(object): 'additionalProperties': False} for opt in self.options: if opt.json_schema is not None: + # NOTE(notmorgan): All options are nullable. Null indicates + # the option should be reset and removed from the DB store. schema['properties'][opt.option_name] = validation.nullable( opt.json_schema) else: