Skip to content

feat(openapi-typescript): add --no-lint flag to skip Redocly linting#2845

Open
dheerajp45 wants to merge 2 commits into
openapi-ts:mainfrom
dheerajp45:feat/no-lint-flag
Open

feat(openapi-typescript): add --no-lint flag to skip Redocly linting#2845
dheerajp45 wants to merge 2 commits into
openapi-ts:mainfrom
dheerajp45:feat/no-lint-flag

Conversation

@dheerajp45

Copy link
Copy Markdown

Changes

Adds a --no-lint CLI flag (and lint: false Node API option) to skip Redocly styleguide linting during type generation.

Redocly is still used for parsing, bundling, and $ref resolution — only the styleguide lint step is skipped.

Closes #2840

How to Review

  1. Run the CLI on packages/openapi-typescript/test/fixtures/redocly-lint-error/ without --no-lint — should fail with lint errors (e.g. "Servers must be present")
  2. Run with --no-lint — should succeed and write output/openapi.ts
  3. Check test/cli.test.ts — new test --no-lint skips styleguide errors

Checklist

  • Unit tests updated
  • docs/ updated (if necessary)
  • pnpm run update:examples run (only applicable for openapi-typescript)

@dheerajp45
dheerajp45 requested a review from a team as a code owner July 20, 2026 12:08
@dheerajp45
dheerajp45 requested a review from gzm0 July 20, 2026 12:09
@netlify

netlify Bot commented Jul 20, 2026

Copy link
Copy Markdown

👷 Deploy request for openapi-ts pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 32b9b73

@changeset-bot

changeset-bot Bot commented Jul 20, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 32b9b73

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
openapi-typescript Minor

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

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.

Add ability to disable linting

1 participant