cozystack/pkg/cmd/server
Andrei Kvapil ee83aaa82e
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>
2026-03-12 23:58:55 +01:00
..
openapi.go fix(api): skip OpenAPI post-processor for non-apps group versions 2026-03-12 23:58:55 +01: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