feat: add --with-ai options for generate-arazzo command - #3052
Merged
Conversation
🦋 Changeset detectedLatest commit: 6505e10 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
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
DmitryAnansky
force-pushed
the
feat/generate-arazzo-with-ai
branch
from
August 31, 2026 08:39
bce13b9 to
d4eb89e
Compare
JLekawa
reviewed
Aug 31, 2026
JLekawa
approved these changes
Aug 31, 2026
vadyvas
reviewed
Aug 31, 2026
sobanieca-redocly
approved these changes
Sep 1, 2026
sobanieca-redocly
left a comment
Contributor
There was a problem hiding this comment.
Cyberpunks ownership looks good. Left one comment about merging and sharing AI utilities between generate-spec and generate-arazzo
DmitryAnansky
force-pushed
the
feat/generate-arazzo-with-ai
branch
2 times, most recently
from
September 1, 2026 14:58
aaa1b5e to
336c8a3
Compare
vadyvas
reviewed
Sep 1, 2026
vadyvas
reviewed
Sep 1, 2026
…r `generate-arazzo` command
Co-authored-by: Vadym Vasylyshyn <51933329+vadyvas@users.noreply.github.com>
DmitryAnansky
force-pushed
the
feat/generate-arazzo-with-ai
branch
from
September 2, 2026 06:47
a3784e9 to
6c97708
Compare
vadyvas
approved these changes
Sep 2, 2026
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
Changes touch authentication handling in generated Arazzo and Respect execution, and
--with-aisends resolved OpenAPI to a local AI CLI—review credential input naming and data-sharing before use.Overview
generate-arazzois refactored into a dedicated module and extended with--with-ai(plus--ai-provider,--ai-model,--ai-concurrency,--max-workflows). After the usual mechanical baseline, an optional pass calls a local AI CLI (claude,codex, orcursor) to merge operations into multi-step workflows; answers are gated (operation references, workflow caps, spec lint) and failures fall back to the baseline with a warning. Large OpenAPI documents use a two-phase flow (scenario selection from an operation index, then per-scenario design with parallel workers).On success, the written file is prefixed with an AI-inferred comment. The command also prints a
respecthint with--inputplaceholders for every workflow input (including resolved component refs).Arazzo auto-generation now targets Arazzo 1.1.0, emits
x-securityon steps (replacing workflow-level Authorization parameters), adds OAuth2/OpenID inputs, and uses scheme-scoped basic/digest username/password fields.respect-coregenerate()returns a structuredTestDescriptioninstead of a string.Shared CLI AI plumbing (
providers, lint/fence helpers,runWorkerPool) is centralized underutils/aiand reused bygenerate-spec.Case-insensitive HTTP auth schemes (
Basic,Bearer,Digest, etc.) are honored inrespectexecution, thex-security-scheme-required-valuesrule, and related digest handling (RFC 7235).Reviewed by Cursor Bugbot for commit 6505e10. Bugbot is set up for automated code reviews on this repo. Configure here.