Skip to content

feat(openapi-typescript): support JSDoc examples from JSON schema examples array #2374

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

cmlee-accelins
Copy link

@cmlee-accelins cmlee-accelins commented Jul 11, 2025

Changes

Implements #2371

Add JSDoc support for the recommended examples array on JSON Schema objects. Previously, only examples in the singular example property were added to the JSDoc, and now all examples in the examples array are also added as separate examples.

How to Review

The code change was very minor, but since many of the example specs used examples already, the snapshots were updated in many places.

Checklist

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

@cmlee-accelins cmlee-accelins requested a review from a team as a code owner July 11, 2025 10:56
Copy link

netlify bot commented Jul 11, 2025

👷 Deploy request for openapi-ts pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 247b337

Copy link

changeset-bot bot commented Jul 11, 2025

🦋 Changeset detected

Latest commit: 247b337

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

This PR includes changesets to release 2 packages
Name Type
openapi-typescript Minor
swr-openapi Major

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.

1 participant