openfga / sdk-generator

OpenFGA Client SDK Generator
Apache License 2.0
16 stars 43 forks source link

Java SDK - Allow Configuration override per request #175

Open booniepepper opened 1 year ago

booniepepper commented 1 year ago

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()

booniepepper commented 1 year ago

Implemented here: https://github.com/openfga/sdk-generator/pull/189

As noted in comments, some test cases (config overridden requests) haven't been written yet. The most critical parts of the code (Configuration.override(...)) are sufficiently covered