-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Checklist
- I agree to the terms within the OpenFGA Code of Conduct.
Describe the problem you'd like to have solved
I want to write
client.WriteAuthorizationModel(WriteAuthorizationModelRequest.FromJson(modelJson);
It's not possible because WriteAuthorizationModel receives a ClientWriteAuthorizationModelRequest.
Describe the ideal solution
Given ClientWriteAuthorizationModelRequest just inherits from WriteAuthorizationModelRequest, we could redefine the client WriteAuthorizationModel method to:
public async Task<WriteAuthorizationModelResponse> WriteAuthorizationModel(WriteAuthorizationModelRequest body, IClientRequestOptionsWithStoreId? options = null, CancellationToken cancellationToken = default(CancellationToken))
{
return await api.WriteAuthorizationModel(GetStoreId(options), body, cancellationToken);
}
Alternatives and current workarounds
No response
References
No response
Additional context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request
Type
Projects
Status
Intake