-
Notifications
You must be signed in to change notification settings - Fork 15
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
Cleanup OpenFgaApi
code base
#127
Comments
Hi @rhamzeh, I've looked into the cleanup task for api.ts and found that this file is auto-generated by OpenAPI Generator from our API specification. So, not sure how we can clean up that directly as it will be regenerated again. I am not sure, where to find our OpenAPI Generator. |
👋🏻 Our generation pieces (SDK templates, scripts etc.) live in the openfga/sdk-generator repo. The code being referred to is specifically in the js template in the I'm not sure if @rhamzeh is thinking the same as myself, but I think we can potentially do away with everything in there except the |
To elaborate on what @ewanharris said: Some concerns of mine:
The template for this file currently lives in https://github.com/openfga/sdk-generator/blob/main/config/clients/js/template/apiInner.mustache |
Please do not report security vulnerabilities here. See the Responsible Disclosure Program.
By submitting an issue to this repository, you agree to the terms within the OpenFGA Code of Conduct.
Describe the problem you'd like to have solved
The code base in https://github.com/openfga/js-sdk/blob/main/api.ts is too convoluted, it has many unnecessary abstractions and lots of repeated code that can be cleaned up.
The text was updated successfully, but these errors were encountered: