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

Split openapi definition into components + requests for easier type generation to python #274

Closed
aaronvg opened this issue Mar 20, 2023 · 2 comments
Labels
duplicate This issue or pull request already exists

Comments

@aaronvg
Copy link

aaronvg commented Mar 20, 2023

I'm trying to use https://github.com/koxudaxi/datamodel-code-generator to generate python types but the openapi.json file generated by this library doesn't output OpenAPI models that are used in each request (every request just has the inline schema defined) which is required by this other lib.

Would be awesome to split things out into proper models so we can have a TRPC <> openAPI <> python types/ client bridge :).

Thanks for making this library!

@stale
Copy link

stale bot commented May 19, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label May 19, 2023
@jlalmes jlalmes removed the stale label May 24, 2023
@jlalmes
Copy link
Contributor

jlalmes commented May 24, 2023

Hi @aaronvg, thanks for opening this issue! It is already being tracked here 👉 #157 (comment)

@jlalmes jlalmes closed this as completed May 24, 2023
@jlalmes jlalmes added the duplicate This issue or pull request already exists label May 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants