diff options
Diffstat (limited to 'keystone-moon/keystone/resource/schema.py')
-rw-r--r-- | keystone-moon/keystone/resource/schema.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/keystone-moon/keystone/resource/schema.py b/keystone-moon/keystone/resource/schema.py index e26a9c4a..7e2cd667 100644 --- a/keystone-moon/keystone/resource/schema.py +++ b/keystone-moon/keystone/resource/schema.py @@ -16,10 +16,8 @@ from keystone.common.validation import parameter_types _project_properties = { 'description': validation.nullable(parameter_types.description), - # NOTE(lbragstad): domain_id isn't nullable according to some backends. - # The identity-api should be updated to be consistent with the - # implementation. - 'domain_id': parameter_types.id_string, + # NOTE(htruta): domain_id is nullable for projects acting as a domain. + 'domain_id': validation.nullable(parameter_types.id_string), 'enabled': parameter_types.boolean, 'is_domain': parameter_types.boolean, 'parent_id': validation.nullable(parameter_types.id_string), @@ -43,7 +41,7 @@ project_create = { project_update = { 'type': 'object', 'properties': _project_properties, - # NOTE(lbragstad) Make sure at least one property is being updated + # NOTE(lbragstad): Make sure at least one property is being updated 'minProperties': 1, 'additionalProperties': True } |