Skip to content

Fix path method object types #1585

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
merged 1 commit into from
Mar 6, 2024
Merged

Conversation

mikestopcontinues
Copy link
Contributor

Changes

The issue is that the path-method object is a partial. This updates the types to match.

Fixes #1584

How to Review

Take a look. It's very brief. I created a new type (PathMethods) to keep the other type definitions from getting too long.

Checklist

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

Copy link

changeset-bot bot commented Mar 6, 2024

🦋 Changeset detected

Latest commit: 8c8d45b

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

This PR includes changesets to release 1 package
Name Type
openapi-fetch 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

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.

Great fix, thank you!

@drwpow
Copy link
Contributor

drwpow commented Mar 6, 2024

Looks like a tiny lint error; happy to merge when that’s fixed

@drwpow
Copy link
Contributor

drwpow commented Mar 6, 2024

Oh also can you add a patch changeset (instructions in comment)? Then we can cut a new version.

@drwpow drwpow merged commit 4e06f86 into openapi-ts:main Mar 6, 2024
@drwpow
Copy link
Contributor

drwpow commented Mar 6, 2024

Awesome, thanks for the quick fix! 🙌

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.

#1580 causes type issue in MaybeOptionalInit
2 participants