[Yahoo-eng-team] [Bug 1652719] [NEW] The JSON-Schema of string integer can't handle the case of empty string

2016-12-26 Thread Alex Xu
Public bug reported: The schema of string integer didn't handle the case of empty string https://github.com/openstack/nova/blob/master/nova/api/validation/parameter_types.py#L186 positive_integer = { 'type': ['integer', 'string'], 'pattern': '^[0-9]*$', 'minimum': 1 }

[Yahoo-eng-team] [Bug 1652719] [NEW] The JSON-Schema of string integer can't handle the case of empty string

2016-12-26 Thread Launchpad Bug Tracker
You have been subscribed to a public bug: The schema of string integer didn't handle the case of empty string https://github.com/openstack/nova/blob/master/nova/api/validation/parameter_types.py#L186 positive_integer = { 'type': ['integer', 'string'], 'pattern': '^[0-9]*$', 'minimum': 1