Skip to content

add openapi helper script - #187

Merged
resmo merged 4 commits into
masterfrom
scripts/openapi
Aug 23, 2026
Merged

add openapi helper script#187
resmo merged 4 commits into
masterfrom
scripts/openapi

Conversation

@resmo

@resmo resmo commented Aug 23, 2026

Copy link
Copy Markdown
Member

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Adds a controller-side helper script for generating an OpenAPI 3.2.0 specification from CloudStack listApis, along with accompanying documentation and packaging/ignore updates.

Changes:

  • Add scripts/cs_openapi.py to generate an OpenAPI document (optionally probing response payload keys).
  • Add scripts/README.md describing mapping rules and how to view output in Swagger UI.
  • Update top-level docs and project metadata (README.md, CLAUDE.md, galaxy.yml, .gitignore) to reference the new tooling and adjust build/ignore behavior.

Reviewed changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
scripts/README.md Documents how to use/browse the generated OpenAPI spec and mapping rules.
scripts/cs_openapi.py New generator script that translates listApis to OpenAPI 3.2.0 with schema deduplication and optional probing.
README.md Adds a short “OpenAPI specification” section referencing the helper script.
galaxy.yml Excludes scripts/ (and a few other paths) from the built collection via build_ignore.
CLAUDE.md Adds contributor guidance for generating the OpenAPI document and clarifies scripts directory expectations.
.gitignore Expands ignore rules for common Python/IDE artifacts and build/test outputs.

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

Comment thread scripts/README.md Outdated
Comment thread scripts/cs_openapi.py Outdated
Comment thread scripts/cs_openapi.py
Comment on lines +736 to +738
source = parser.add_mutually_exclusive_group()
source.add_argument("--from-api", action="store_true", help="query a live endpoint (default)")
source.add_argument("--from-json", metavar="FILE", help="read a saved listApis response instead of querying")
Comment thread README.md Outdated
resmo and others added 3 commits August 23, 2026 23:30
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@resmo
resmo merged commit 390cc5c into master Aug 23, 2026
2 of 5 checks passed
@resmo
resmo deleted the scripts/openapi branch August 23, 2026 21:32
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.

2 participants