feat: generate-spec command article#337
Open
sobanieca-redocly wants to merge 1 commit into
Open
Conversation
sobanieca-redocly
marked this pull request as ready for review
July 15, 2026 14:13
Contributor
There was a problem hiding this comment.
marketing-site AI Review: 🟢 Completed
Reunite Agent has reviewed your changes and found 2 potential issue(s).
Note
Low Risk
This PR only adds a new documentation article and introduces no code or behavioral changes, resulting in zero operational risk.
Overview
Adds a new blog post introducing the experimental generate-spec command in the Redocly CLI. The article covers:
- How the command deterministically infers OpenAPI 3.1 descriptions from recorded HTTP traffic (such as HAR or Kong logs).
- A practical demonstration using the Redocly Cafe API as an example.
- Details on the optional
--with-aiflag, which refines baseline descriptions using AI providers like Claude, Codex, or Cursor. - Necessary warnings regarding data privacy and the command's experimental status.
|
|
||
| ```bash | ||
| redocly proxy --target https://api.cafe.redocly.com --har ./cafe.har | ||
| ``` |
Contributor
| {% admonition type="warning" name="Traffic leaves your machine" %} | ||
| `--with-ai` sends samples of the recorded traffic - URLs, query strings, request and response bodies - to the selected AI provider. | ||
| Capture in a sandboxed environment with synthetic data, and make sure the traffic contains no secrets or personal data you are not allowed to share. | ||
| {% /admonition %} |
Contributor
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?
A new article for
generate-speccommand in Redocly CLI. To be published oncedriftarticle lands (#332) and whengenerate-speccommand is released (Redocly/redocly-cli#2937)Reference
Testing
Screenshots (optional)
Check yourself
Security