Ensure the JSON-Schema covers the legacy v2 API

Similar to change Ie165b2a79efd56a299d2d4ebe40a6904a340414f,
these were some other APIs missing 2.0 for the query schema
lower-bound which means v2.0 requests weren't getting validated
by the schema.

Change-Id: I1b0fc5dfd424b42e381e5c3b703cf7473b9fcbcb
Related-Bug: #1701451
This commit is contained in:
Matt Riedemann 2018-02-01 16:56:07 -05:00
parent d189e68227
commit 7db2019120
2 changed files with 2 additions and 2 deletions

View File

@ -116,7 +116,7 @@ class MigrationsController(wsgi.Controller):
@wsgi.Controller.api_version("2.1", "2.22") # noqa
@wsgi.expected_errors(())
@validation.query_schema(schema_migrations.list_query_schema_v20,
"2.1", "2.22")
"2.0", "2.22")
def index(self, req):
"""Return all migrations using the query parameters as filters."""
return self._index(req)

View File

@ -64,7 +64,7 @@ class ServerExternalEventsController(wsgi.Controller):
@wsgi.expected_errors((403, 404))
@wsgi.response(200)
@validation.schema(server_external_events.create, '2.1', '2.50')
@validation.schema(server_external_events.create, '2.0', '2.50')
@validation.schema(server_external_events.create_v251, '2.51')
def create(self, req, body):
"""Creates a new instance event."""