cozystack/pkg/cmd/server
Andrei Kvapil c10fdc36b8 fix(api): skip OpenAPI post-processor for non-apps group versions
The OpenAPI PostProcessSpec callback is invoked for every group-version
(apps, core, version, etc.), but the Application schema cloning logic
only applies to apps.cozystack.io. When called for other GVs the base
Application schemas are absent, causing a spurious error log on every
API server start.

Return early instead of erroring when the base schemas are not found.

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
(cherry picked from commit ee83aaa82e)
2026-03-13 15:23:34 +00:00
..
openapi.go fix(api): skip OpenAPI post-processor for non-apps group versions 2026-03-13 15:23:34 +00:00
start.go refactor(api): remove rootHost-based name length validation 2026-02-12 13:52:37 +03:00
start_test.go refactor(api): remove rootHost-based name length validation 2026-02-12 13:52:37 +03:00