FusionAuth / fusionauth-python-client

FusionAuth Python Client
https://fusionauth.io
Apache License 2.0
24 stars 12 forks source link

Update doc to deal with booleans #11

Open mooreds opened 3 years ago

robotdan commented 3 years ago

I think we have some helper code for this already. https://github.com/FusionAuth/fusionauth-client-builder/blob/f6b91bf5e8bda7921a891a7f25ec98fd02dd0fd6/src/main/client/_macros.ftl#L200

Perhaps we just need to use this macro in more places for python code?

mooreds commented 3 years ago

I looked at that macro and couldn't figure out how to make it work because what we really want is:

(str(<value>).lower())

which converts True to "true". But I couldn't figure out how to determine, from the inputs to that macro, if a value was a boolean (and also make sure that the global -> _global rename took place as well). Since there was a valid workaround I thought that documentation would be enough.