Skip to content

Rename all methods to UPPERCASE #1243

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
Jul 25, 2023
Merged

Rename all methods to UPPERCASE #1243

merged 1 commit into from
Jul 25, 2023

Conversation

drwpow
Copy link
Contributor

@drwpow drwpow commented Jul 25, 2023

Changes

Renames all methods to uppercase to match the exact HTTP method naming, following discussion of #1218 (getGET, delDELETE, etc.).

The reasoning for this came mostly from SvelteKit’s prior art (discussion). It’s an exact overlap of concerns, and having read through this discussion and reasoning convinced me this was the right change. And as an added bonus, aligning with SvelteKit is never a bad thing 🙂.

How to Review

Tests should pass.

Checklist

  • Unit tests updated
  • README updated
  • examples/ directory updated (only applicable for openapi-typescript)

@changeset-bot
Copy link

changeset-bot bot commented Jul 25, 2023

🦋 Changeset detected

Latest commit: b0374b3

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

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Jul 25, 2023

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: b0374b3
Status: ✅  Deploy successful!
Preview URL: https://ad3c1dcf.openapi-ts.pages.dev
Branch Preview URL: https://method-names.openapi-ts.pages.dev

View logs

@drwpow drwpow merged commit 541abf4 into main Jul 25, 2023
@drwpow drwpow deleted the method-names branch July 25, 2023 04:45
@github-actions github-actions bot mentioned this pull request Jul 25, 2023
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