yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #72441
[Bug 1763824] Re: JSON schema validator.nullable doesn't work with ENUMs
This also impacts ocata.
** Also affects: keystone/ocata
Importance: Undecided
Status: New
** Changed in: keystone/ocata
Status: New => Won't Fix
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Identity (keystone).
https://bugs.launchpad.net/bugs/1763824
Title:
JSON schema validator.nullable doesn't work with ENUMs
Status in OpenStack Identity (keystone):
Fix Released
Status in OpenStack Identity (keystone) ocata series:
Won't Fix
Status in OpenStack Identity (keystone) pike series:
In Progress
Status in OpenStack Identity (keystone) queens series:
In Progress
Status in OpenStack Identity (keystone) rocky series:
Fix Released
Bug description:
JSON Schema validator.nullable only sets null in the types list. This
works except when an enum is set (such as the case with boolean) [0].
The fix is to make validator.nullable() smart enough to add to the
ENUM if ENUM is set as well as type.
[0]
https://github.com/openstack/keystone/blob/56237b709ef901fabfd9e8ba744bbcc4cebf8b9b/keystone/common/validation/__init__.py#L33-L43
To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/1763824/+subscriptions
References