feat: add --with-ai options for generate-arazzo command - #3052
Open
DmitryAnansky wants to merge 11 commits into
Open
feat: add --with-ai options for generate-arazzo command#3052DmitryAnansky wants to merge 11 commits into
--with-ai options for generate-arazzo command#3052DmitryAnansky wants to merge 11 commits into
Conversation
🦋 Changeset detectedLatest commit: bce13b9 The changes in this PR will be included in the next version bump. This PR includes changesets to release 4 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Contributor
Performance Benchmark (Lower is Faster)
|
Contributor
--with-ai and --ai-provider options for generate-arazzo command [POC]--with-ai options for generate-arazzo command [POC]
--with-ai options for generate-arazzo command [POC]--with-ai options for generate-arazzo command (POC)
DmitryAnansky
commented
Aug 26, 2026
--with-ai options for generate-arazzo command (POC)--with-ai options for generate-arazzo command
DmitryAnansky
force-pushed
the
feat/generate-arazzo-with-ai
branch
3 times, most recently
from
August 26, 2026 14:05
c3b2dec to
37a0234
Compare
DmitryAnansky
marked this pull request as ready for review
August 27, 2026 10:01
--with-ai options for generate-arazzo command--with-ai options for generate-arazzo command
DmitryAnansky
force-pushed
the
feat/generate-arazzo-with-ai
branch
from
August 27, 2026 14:30
2709a88 to
c39b251
Compare
…r `generate-arazzo` command
DmitryAnansky
force-pushed
the
feat/generate-arazzo-with-ai
branch
from
August 27, 2026 15:38
50c3833 to
24e1f7a
Compare
JLekawa
reviewed
Aug 27, 2026
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 2 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit a1289ec. Configure here.
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.

What/Why/How?
--with-aiand--ai-provideroptions forgenerate-arazzocommand .respectand thex-security-scheme-required-valuesrule rejectingx-securityHTTP schemes written with non-lowercase casing (such asBasic,Bearer, orDigest) — RFC 7235 scheme names are case-insensitive.Notes:
x-securitywhen possible.Reference
https://github.com/Redocly/redocly/issues/25890
Testing
Screenshots (optional)
Check yourself
Security
Note
Medium Risk
Optional
--with-aisends resolved OpenAPI to a local AI CLI (data-exposure risk if specs contain secrets), and changes to generated security/x-securitywiring can alter how new Arazzo files run underrespect.Overview
generate-arazzogains optional--with-ai(plus--ai-provider,--ai-model,--max-workflows) to turn the mechanical one-operation-per-workflow skeleton into multi-step scenarios via locally installedclaude,codex, orcursorCLIs. AI output is constrained (baseline header preserved, operation refs checked, spec lint) and the command falls back to the baseline on failure; large OpenAPI docs use a two-pass flow (scenario selection, then per-scenario design). Successful AI runs prepend a verification comment to the YAML.After any generation, the CLI now prints a copy-paste
respectcommand with--inputplaceholders for each workflow input (including resolved component$refs).Respect / linting now treat HTTP auth scheme names as case-insensitive (
Basic,Bearer, etc.) inx-security-scheme-required-valuesand runtime validation.The Arazzo auto-generator bumps to
arazzo: 1.1.0, returns a structuredTestDescriptionfromrespect-coregenerate(), and reworks security: step-levelx-securitywith proper Basic (username/password) inputs, OAuth2/OIDC tokens, and fewer unsupported schemes; workflow-level Authorization hacks are removed. Shared AI helpers (stripCodeFences,lintDocumentSource, providers) move underutils/aifor reuse withgenerate-spec.Reviewed by Cursor Bugbot for commit bce13b9. Bugbot is set up for automated code reviews on this repo. Configure here.