sdk-generator
sdk-generator copied to clipboard
OpenFGA Client SDK Generator
Progress: - [ ] JS SDK - [ ] Go SDK - [ ] .NET SDK - [ ] Python SDK - [ ] Java SDK
There are some artifacts from OpenAPI generator like HTML escapes (especially `<` and `>` for generic tags) that seem unnecessary. Comes from https://github.com/openfga/java-sdk/pull/7/files#r1303460515 and https://github.com/openfga/sdk-generator/pull/189#discussion_r1303461467 Also there are some descriptions...
For each request, allow a `BaseConfiguration` to be added as a parameter. When added, they should be used instead of values from Configuration it was initialized with Reminder: Call `assertValid()`
Consider adding PMD and/or SpotBugs checks to the generated SDK
Something about generating the Java SDK requires building twice. See: https://github.com/openfga/sdk-generator/pull/160#discussion_r1281896547 Here's a gist with a failure: https://gist.github.com/booniepepper/0e197ea5b3c2a297338115f7eee4bb27 Subsequent builds work just fine
Open question, what should the default be?
These proto files will be used to generate the models for: - Configuration - Client - ClientConfiguration
The process for contributing a new SDK or improving an existing one is still a bit vague, we should add documentation, and possibly a quick tutorial of what that entails.