Merge "api: Address TODO in microversion v2.99"

This commit is contained in:
Zuul
2025-03-10 13:46:44 +00:00
committed by Gerrit Code Review
3 changed files with 6 additions and 3 deletions
@@ -99,7 +99,7 @@ class ConsoleAuthTokensController(wsgi.Controller):
@wsgi.Controller.api_version("2.99") # noqa
@wsgi.expected_errors((400, 404))
@validation.query_schema(schema.show_query)
@validation.query_schema(schema.show_query_v299)
@validation.response_body_schema(schema.show_response_v299)
def show(self, req, id): # noqa
return self._show(req, id, include_tls_port=True)
@@ -1288,7 +1288,8 @@ API response.
Add the ``spice-direct`` console type to the spice console protocol. Also
add a ``tls_port`` field to the return value from
``GET /os-console-auth-tokens/{console_token}``.
``GET /os-console-auth-tokens/{console_token}`` and no longer allow random
query string parameters.
.. _microversion 2.100:
@@ -12,13 +12,15 @@
import copy
# TODO(stephenfin): Remove additionalProperties in a future API version
show_query = {
'type': 'object',
'properties': {},
'additionalProperties': True,
}
show_query_v299 = copy.deepcopy(show_query)
show_query_v299['additionalProperties'] = False
show_response = {
'type': 'object',
'properties': {