You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using your dicterm cli, I get the following error when running dicterm prognosis.
dicterm prognosis
# could not unmarshal response, err: could not unmarshal response: json: cannot unmarshal array into Go struct field Collegiate.ins of type string
For the moment i think it's easiest to set the type of the attribute corresponding to ins to any and use type assertions in the dicterm api.
It's kinda ugly, but so is the merriam webster api, lol.
The text was updated successfully, but these errors were encountered:
Thank you @kendfss you are right, I had seen differences in API responses for different words, and it seems ins is one of them. Please feel free to contribute.
kendfss
pushed a commit
to kendfss/mwgoapi
that referenced
this issue
Jun 25, 2022
When using your dicterm cli, I get the following error when running
dicterm prognosis
.dicterm prognosis # could not unmarshal response, err: could not unmarshal response: json: cannot unmarshal array into Go struct field Collegiate.ins of type string
For the moment i think it's easiest to set the type of the attribute corresponding to
ins
toany
and use type assertions in the dicterm api.It's kinda ugly, but so is the merriam webster api, lol.
The text was updated successfully, but these errors were encountered: