This repository was archived by the owner on Feb 16, 2022. It is now read-only.
This repository was archived by the owner on Feb 16, 2022. It is now read-only.
Empty lists arnt being serialized in the JSON sent to auth0 #74
Closed
Description
All of the structs in this codebase uses pointers instead of primitives. I assume this was because the JSON option omitempty
would omit empty values (false, 0, empty string) from being serialized, preventing the library from being able to sending empty values to Auth0.
The one exception to the all pointer convention is lists. Lists in the structs are actual lists, []interface{}
, instead of pointer to lists, *[]interface{}
. This makes it impossible to send an empty list to auth0.
I dont know the full impact on changing all lists to be pointer to lists, or updating all lists to remove the omitempty
tag, but something has got to give as currently its impossible to send an empty list.
Metadata
Metadata
Assignees
Labels
No labels