and both failed with the following error:
Unknown type map[string]interface{} for field data
Here, UnMarDictionary implements the MarshalerJSONArray, MarshalerJSONObject, UnmarshalerJSONArray and UnmarshalerJSONObject. Since, UnMarClassroom has Students UnMarDictionary under the hood, when I generate the gojay code for UnMarClassroom, I was expecting that gojay would skip generating the code for UnMarDictionary.
I have been facing an issue with the gojay generator for
map[string]interface{}
field. Let me share the code first:I am trying to generate the gojay code for
PlainClassroom
andUnMarClassroom
.I tried
and both failed with the following error:
Unknown type map[string]interface{} for field data
Here,
UnMarDictionary
implements theMarshalerJSONArray
,MarshalerJSONObject
,UnmarshalerJSONArray
andUnmarshalerJSONObject
. Since,UnMarClassroom
hasStudents UnMarDictionary
under the hood, when I generate the gojay code forUnMarClassroom
, I was expecting that gojay would skip generating the code forUnMarDictionary
.Am I doing it in the wrong way? Please help.