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

Path params should be omitted from request body params #8

Closed
dodas opened this issue Jun 7, 2022 · 1 comment · Fixed by #10
Closed

Path params should be omitted from request body params #8

dodas opened this issue Jun 7, 2022 · 1 comment · Fixed by #10

Comments

@dodas
Copy link
Collaborator

dodas commented Jun 7, 2022

Currently, using path params in a mutation results in a openAPI schema where the given param is expected in both requestBody and parameters. Instead, I would expect the given param to be omitted from the request body schema, since it's passed via path.

For example, in the method below I would expect blueprintId to be passed via path and Request body only containing credentialId.
Screenshot 2022-06-08 at 00 11 18

@jlalmes
Copy link
Owner

jlalmes commented Jun 8, 2022

Resolved in trpc-openapi@0.1.0-alpha.22.

@jlalmes jlalmes closed this as completed Jun 8, 2022
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 a pull request may close this issue.

2 participants