From a9143adf330688e54667344c459d2721dd6c299c Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 20 Jul 2026 11:09:50 +0000 Subject: [PATCH] Fix release workflow: skip strict spec validation during client generation The nightly 'Release on new actinia-core version' workflow has failed on every run at the 'Regenerate the Python client' step. OpenAPI Generator 7.2.0 aborts with SpecValidationException (29 errors) because the swagger spec dumped from a running actinia-core contains upstream validity issues (undeclared path parameters, unexpected attributes) that cannot be fixed in this repository. Pass --skip-validate-spec to the generator so generation proceeds, as the generator's own error message recommends. The workflow's existing JSON sanity check on the dumped spec still guards against a broken download. Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_013HCJxtT5kx2D9ouiDLFdbs --- .github/workflows/release-on-actinia.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/release-on-actinia.yml b/.github/workflows/release-on-actinia.yml index 871c544..b848dc8 100644 --- a/.github/workflows/release-on-actinia.yml +++ b/.github/workflows/release-on-actinia.yml @@ -136,10 +136,14 @@ jobs: run: | set -euo pipefail SPEC="${{ steps.ver.outputs.spec }}" + # --skip-validate-spec: the spec dumped from a live actinia-core has + # known validation issues (undeclared path params, stray attributes) + # that originate upstream; strict validation would abort generation. docker run --rm -v "${PWD}:/local" "${OPENAPI_GENERATOR_IMAGE}" generate \ -g python \ -c /local/config.yaml \ -i "/local/${SPEC}" \ + --skip-validate-spec \ -o /local # The generator may write as root; normalise ownership for later steps. sudo chown -R "$(id -u):$(id -g)" .