commit f1cf54df9a80f87f4e4b497db587f24eea25523d
Author: He Jie Xu <email address hidden>
Date: Fri Jun 30 14:47:20 2017 +0800
Ensure the JSON-Schema covers the legacy v2 API
The legacy v2 API compatible mode support the protection of JSON-Schema.
The input body will be validated with JSON-Schema, and the extra invalid
parameters will be filtered out of the input body instead of return
HTTPBadRequest 400.
But some of API are missing that protection, the JSON-Schema validation
was limited to the v2.1 API. This patch ensures those schema covers the
legacy v2 API.
Change-Id: Ie165b2a79efd56a299d2d4ebe40a6904a340414f
Closes-Bug: #1701451
(cherry picked from commit aaeea4bf39377c4109f6b2857794ee0e7d51e786)
(cherry picked from commit 934bc02f9d33a343de145e68fc174932d2f75625)
Reviewed: https:/ /review. openstack. org/479201 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=f1cf54df9a8 0f87f4e4b497db5 87f24eea25523d
Committed: https:/
Submitter: Jenkins
Branch: stable/newton
commit f1cf54df9a80f87 f4e4b497db587f2 4eea25523d
Author: He Jie Xu <email address hidden>
Date: Fri Jun 30 14:47:20 2017 +0800
Ensure the JSON-Schema covers the legacy v2 API
The legacy v2 API compatible mode support the protection of JSON-Schema.
The input body will be validated with JSON-Schema, and the extra invalid
parameters will be filtered out of the input body instead of return
HTTPBadRequest 400.
But some of API are missing that protection, the JSON-Schema validation
was limited to the v2.1 API. This patch ensures those schema covers the
legacy v2 API.
Change-Id: Ie165b2a79efd56 a299d2d4ebe40a6 904a340414f 109f6b2857794ee 0e7d51e786) 3de145e68fc1749 32d2f75625)
Closes-Bug: #1701451
(cherry picked from commit aaeea4bf39377c4
(cherry picked from commit 934bc02f9d33a34