Skip to content

Improve error handling for API specifications - #64

Merged
isabelle-galleberg merged 1 commit into
mainfrom
api-references-response
Aug 27, 2026
Merged

isabelle-galleberg merged 1 commit into
mainfrom
api-references-response

Conversation

@isabelle-galleberg

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI lite review requested due to automatic review settings August 26, 2026 11:07

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the reusable workflow that uploads and persists an OpenAPI spec to improve diagnostics when the persist API call fails, by capturing the HTTP response body alongside the status code.

Changes:

  • Capture curl response body + status code from the persist endpoint and print the body on failure.
  • Adjust status-code handling to be derived from the combined response output.

Changed files:

  • .github/workflows/helpers.upload-open-api-spec.yml

Validation result: ❌ Error
Issues found:

  • .github/workflows/helpers.upload-open-api-spec.yml:100-103 — Response parsing uses echo and a numeric -ne comparison that can fail (e.g., status line containing \r), causing the step to error with “integer expression expected” instead of cleanly reporting the failure.
  • .github/workflows/helpers.upload-open-api-spec.yml:91curl --silent suppresses useful diagnostics; --show-error should be enabled to improve troubleshooting.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread .github/workflows/helpers.upload-open-api-spec.yml Outdated
Comment thread .github/workflows/helpers.upload-open-api-spec.yml
Copilot AI review requested due to automatic review settings August 26, 2026 11:19

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

@isabelle-galleberg
isabelle-galleberg merged commit 3412cc7 into main Aug 27, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants