FusionAuth / fusionauth-netcore-client

The .NET Core client for FusionAuth
https://fusionauth.io
Apache License 2.0
28 stars 11 forks source link

Make enum fields nullable #32

Closed EPRenaud closed 3 years ago

EPRenaud commented 3 years ago

In C#, enums are just glorified int and are therefore not nullable. When building a Key without providing a type or an algorithm, they will have a default value instead of being null.

You might want to go through all the domain to make optional enums nullable.

Associated PR in the builder: https://github.com/FusionAuth/fusionauth-client-builder/pull/24

Fix #31

EPRenaud commented 3 years ago

@robotdan, do you want to close this PR since the code has already been generated from the builder?

robotdan commented 3 years ago

Yes, sounds good. I'll open a separate issue to track the nullable thing and see if we can solve it more generically.