Skip to content

fix(schema-object): transform toplevel schema object #1622

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

Merged

Conversation

LucaSchwan
Copy link
Contributor

Changes

Closes #1619

How to Review

I'm not sure if this is the right place to call the transform yet. So please give me some feedback on wether it is ok there or if it should go somewhere else. I've

Checklist

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

Copy link

changeset-bot bot commented Apr 19, 2024

🦋 Changeset detected

Latest commit: 772090f

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 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

@LucaSchwan LucaSchwan force-pushed the fix/schema-object/transform-toplevel-schema branch 2 times, most recently from 11826f1 to af02ae1 Compare April 19, 2024 17:28
@drwpow
Copy link
Contributor

drwpow commented Apr 23, 2024

Thanks so much! At a glance this seems correct, but if you could rebase from the latest main (git fetch && git rebase origin/main) this may still have some errors before we can verify if this is the correct solution. But it looks like it’s on the right track either way!

@LucaSchwan LucaSchwan force-pushed the fix/schema-object/transform-toplevel-schema branch 2 times, most recently from 5b02bb8 to 2cb5ff8 Compare April 23, 2024 20:16
@LucaSchwan
Copy link
Contributor Author

LucaSchwan commented Apr 23, 2024

I rebased. There was some error in the ci before, I'll look into that when the workflow ran again on the rebased code.

@LucaSchwan LucaSchwan force-pushed the fix/schema-object/transform-toplevel-schema branch from 2cb5ff8 to 772090f Compare April 23, 2024 20:32
@LucaSchwan
Copy link
Contributor Author

I just had the API of the TransformObject wrong. But I fixed it.

Copy link
Contributor

@drwpow drwpow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great, thank you!

@drwpow drwpow merged commit 5a1f86b into openapi-ts:main Apr 23, 2024
@github-actions github-actions bot mentioned this pull request Apr 23, 2024
@drwpow drwpow mentioned this pull request Apr 23, 2024
3 tasks
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.

Transform only transforms referenced schemas
2 participants