diff --git a/tacker/api/validation/parameter_types.py b/tacker/api/validation/parameter_types.py index 42481385b..8a28bdab2 100644 --- a/tacker/api/validation/parameter_types.py +++ b/tacker/api/validation/parameter_types.py @@ -123,7 +123,8 @@ keyvalue_pairs = { {'type': 'string', 'maxLength': 1024}, {'type': 'object'}, {'type': 'null'}, - {'type': 'boolean'} + {'type': 'boolean'}, + {'type': 'number'} ] } }, diff --git a/tacker/tests/unit/vnflcm/test_controller.py b/tacker/tests/unit/vnflcm/test_controller.py index 0d92248ac..ba3eed831 100644 --- a/tacker/tests/unit/vnflcm/test_controller.py +++ b/tacker/tests/unit/vnflcm/test_controller.py @@ -596,6 +596,7 @@ class TestController(base.TestCase): status='INACTIVE') body = {"flavourId": "simple"} + body.update({"additionalParams": {"foo_number": 12}}) req = fake_request.HTTPRequest.blank( '/vnf_instances/%s/instantiate' % uuidsentinel.vnf_instance_id) req.body = jsonutils.dump_as_bytes(body)