Fix release workflow: skip strict spec validation during client generation#13
Merged
Merged
Conversation
…ation 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 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013HCJxtT5kx2D9ouiDLFdbs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The nightly Release on new actinia-core version workflow (
release-on-actinia.yml) has failed on every scheduled run since it was introduced, always at the Regenerate the Python client step. OpenAPI Generator 7.2.0 aborts withSpecValidationException(29 errors) because the swagger spec dumped from a running actinia-core contains upstream validity issues — path parameters like{project_name}/{mapset_name}declared in URLs but not defined as parameters, unexpected attributes on models, etc. These defects originate in actinia-core's served spec and cannot be fixed in this repository.Fix
Pass
--skip-validate-specto theopenapi-generator-cli generateinvocation, as the generator's own error message recommends. The workflow's existing sanity check on the dumped spec (valid JSON with a non-emptypathsobject) still runs beforehand, so a genuinely broken download continues to fail fast.🤖 Generated with Claude Code
https://claude.ai/code/session_013HCJxtT5kx2D9ouiDLFdbs
Generated by Claude Code