The JSON Schema validation implementation of nullable(), which makes
values possible to be null was not adding None to the enum if it exists.
This causes validation to fail on ``None`` especially in the case of
keystone's boolean parameter_type implementation. ``nullable()`` now
adds ``None`` to the enum if the enum exists.
Reviewed: https:/ /review. openstack. org/561348 /git.openstack. org/cgit/ openstack/ keystone/ commit/ ?id=78adf4b40fb 88e371101ed065a c1d15063d8d86e
Committed: https:/
Submitter: Zuul
Branch: master
commit 78adf4b40fb88e3 71101ed065ac1d1 5063d8d86e
Author: Morgan Fainberg <email address hidden>
Date: Fri Apr 13 13:34:31 2018 -0700
Fix json schema nullable to add None to ENUM
The JSON Schema validation implementation of nullable(), which makes
values possible to be null was not adding None to the enum if it exists.
This causes validation to fail on ``None`` especially in the case of
keystone's boolean parameter_type implementation. ``nullable()`` now
adds ``None`` to the enum if the enum exists.
Closes-Bug: #1763824 661413c445554db a9b7d87272a
Change-Id: I176fa90df63049