fusionauth-python-client icon indicating copy to clipboard operation
fusionauth-python-client copied to clipboard

Update doc to deal with booleans

Open mooreds opened this issue 4 years ago • 2 comments

mooreds avatar Dec 15 '20 17:12 mooreds

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?

robotdan avatar Dec 16 '20 16:12 robotdan

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.

mooreds avatar Dec 16 '20 22:12 mooreds