Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Conversation

jlalmes
Copy link
Contributor

@jlalmes jlalmes commented Aug 22, 2022

Unlink procedure methods

Any procedure type can map to any HTTP method.

Previously query was restricted to GET/DELETE and mutation was restricted to POST/PATCH/PUT. This meant that trpc-openapi was forcing user to make their DELETE procedures query instead of mutation.

Additional change

Prevents operationId collisions with procedure type prefix. Occurred when a query and mutation had the same procedure name.

This could be considered a breaking change, but because it is currently undocumented I'm happy to merge & release this under the current v0 major version.

- "operationId": "getUserById",
+ "operationId": "query.getUserById",

@jlalmes jlalmes merged commit ba90508 into master Aug 22, 2022
This was referenced Aug 22, 2022
@jlalmes jlalmes deleted the feat/unlink-proc-methods branch August 25, 2022 10:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant