Merge "Use hard coded values in schema than reference"
This commit is contained in:
commit
fd6ba0f5c5
@ -15,7 +15,6 @@
|
||||
import copy
|
||||
|
||||
from nova.api.validation import parameter_types
|
||||
from nova.db import api as db
|
||||
|
||||
create = {
|
||||
'type': 'object',
|
||||
@ -42,7 +41,9 @@ create = {
|
||||
'type': ['number', 'string'],
|
||||
'pattern': '^[0-9]+(\.[0-9]+)?$',
|
||||
'minimum': 0, 'exclusiveMinimum': True,
|
||||
'maximum': db.SQL_SP_FLOAT_MAX
|
||||
# maximum's value is limited to db constant's
|
||||
# SQL_SP_FLOAT_MAX (in nova/db/constants.py)
|
||||
'maximum': 3.40282e+38
|
||||
},
|
||||
'os-flavor-access:is_public': parameter_types.boolean,
|
||||
},
|
||||
|
@ -15,14 +15,15 @@
|
||||
import copy
|
||||
|
||||
from nova.api.validation import parameter_types
|
||||
from nova.db import api as db
|
||||
|
||||
common_quota = {
|
||||
'type': ['integer', 'string'],
|
||||
'pattern': '^-?[0-9]+$',
|
||||
# -1 is a flag value for unlimited
|
||||
'minimum': -1,
|
||||
'maximum': db.MAX_INT
|
||||
# maximum's value is limited to db constant's MAX_INT
|
||||
# (in nova/db/constants.py)
|
||||
'maximum': 0x7FFFFFFF
|
||||
}
|
||||
|
||||
quota_resources = {
|
||||
|
@ -21,7 +21,6 @@ import unicodedata
|
||||
|
||||
import six
|
||||
|
||||
from nova.db import api as db
|
||||
from nova.i18n import _
|
||||
from nova.objects import tag
|
||||
|
||||
@ -427,7 +426,9 @@ volume_size = {
|
||||
'type': ['integer', 'string'],
|
||||
'pattern': '^[0-9]+$',
|
||||
'minimum': 1,
|
||||
'maximum': db.MAX_INT
|
||||
# maximum's value is limited to db constant's MAX_INT
|
||||
# (in nova/db/constants.py)
|
||||
'maximum': 0x7FFFFFFF
|
||||
}
|
||||
|
||||
disk_config = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user