Branch: refs/heads/master
Home:
https://github.com/tribe29/checkmk
Commit: 319e26fc4699dc9e3962e46f38a9f2f67bd29649
https://github.com/tribe29/checkmk/commit/319e26fc4699dc9e3962e46f38a9f2f67…
Author: Christoph Rauch <christoph.rauch(a)tribe29.com>
Date: 2022-01-24 (Mon, 24 Jan 2022)
Changed paths:
M cmk/gui/fields/__init__.py
M cmk/gui/fields/attributes.py
M cmk/gui/fields/base.py
M cmk/gui/fields/definitions.py
A cmk/gui/fields/primitives.py
M cmk/gui/fields/utils.py
M cmk/gui/plugins/openapi/endpoints/folder_config.py
M cmk/gui/plugins/openapi/endpoints/host.py
M cmk/gui/plugins/openapi/endpoints/ruleset/fields.py
M cmk/gui/plugins/openapi/endpoints/service.py
M cmk/gui/plugins/openapi/endpoints/service_discovery.py
M cmk/gui/plugins/openapi/restful_objects/parameters.py
M cmk/gui/plugins/openapi/restful_objects/request_schemas.py
M cmk/gui/plugins/openapi/restful_objects/response_schemas.py
M tests/unit/cmk/gui/plugins/openapi/test_apispec_plugins.py
Log Message:
-----------
REST API: respect marshmallow's metadata handling
* introduce a new mixin to move the attributes to "metadata"
* change all String to inherit from this mixin
* the previous syntax stays the same, but only for keys which
have a defined meaning (e.g. a meaning in OpenAPI context)
* if marshmallow fields are imported directly and used like
now the warnings will come back.
Change-Id: I9ac78a51d2b8aa97943135a12ca84e362e268a4c