Skip to content
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

Add schema to postTransform options #2049

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

Conversation

duncanbeevers
Copy link
Contributor

Closes #2013

Changes

  • Add schema to postTransform options
  • Add documentation about postTransform options
  • Add specs / example using the schema option to declare a string Set

How to Review

  • Make sure TransformNodeOptions is extension is acceptable.
  • Decide whether schema should be populated for transform options; it's redundant since the first argument to transform is already the schema node, but it introduces consistency between the transform and postTrannsform APIs that I think might be desirable.

Checklist

  • Unit tests updated
  • docs/ updated (if necessary)
  • pnpm run update:examples run (only applicable for openapi-typescript) (I tried this and got swamped with changes, please advise!)

@duncanbeevers duncanbeevers requested a review from a team as a code owner December 13, 2024 01:42
Copy link

changeset-bot bot commented Dec 13, 2024

🦋 Changeset detected

Latest commit: aba4e09

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 Patch
swr-openapi Patch

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

@duncanbeevers duncanbeevers force-pushed the posttransform-options-schema branch from 9f5c655 to be8de00 Compare December 13, 2024 02:04
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.

postTransform would be more useful with schema information
1 participant