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

operationId is not a valid identifier #286

Closed
transitive-bullshit opened this issue Apr 11, 2023 · 2 comments · Fixed by #307
Closed

operationId is not a valid identifier #286

transitive-bullshit opened this issue Apr 11, 2023 · 2 comments · Fixed by #307
Assignees
Labels
bug Something isn't working

Comments

@transitive-bullshit
Copy link

According to the spec, operationId should be a valid identifier. The current version uses periods in-between operation parts, whereas it should slugify things together preferably using camelCase as that's what all the example OpenAPI specs seem to use.

@transitive-bullshit
Copy link
Author

This is currently preventing trpc-openapi generated OpenAPI specs from being consumed by ChatGPT Plugins for https://github.com/transitive-bullshit/chatgpt-plugin-ts

@tianwg
Copy link

tianwg commented May 5, 2023

I'm facing the same issue, as a workaround I made a slight change in my fork and published it here https://www.npmjs.com/package/@tianwg/trpc-openapi

@jlalmes jlalmes added the bug Something isn't working label May 24, 2023
@jlalmes jlalmes self-assigned this May 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants