-
Notifications
You must be signed in to change notification settings - Fork 6
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
Automatically generate client typescript library from openapi spec #41
Comments
I'm on board, I'll take a look into those errors, it may come down to a difference on how connexion interprets the spec and how the openapi tools read the spec. |
i think this is a good idea especially because alejandro mentioned how the api is very simple. |
this seems like a good idea but unfortunately I'm running into a lot of difficulties implementing it. For starters, it seems like the generated code does not build properly. I keep getting errors:
And while not exactly the same, I think people are facing similar problems: swagger-api/swagger-codegen#9712 |
https://github.com/OpenAPITools/openapi-generator
We can generate a client library for the site from the speciifcation so we don't have to roll our own. I tested using typescript-fetch on the specification in the submodule commit and its almost there. Errors generated were:
Errors:
-attribute components.schemas.analysis.items is missing
-attribute components.schemas.study.items is missing
Can generate the library using the --skip-validate-spec. Haven't tested importing and using the generated code yet.
@jdkent @nicoalee What do y'all think?
The text was updated successfully, but these errors were encountered: