Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

collegiate: unable to marshall #1

Open
kendfss opened this issue Jun 23, 2022 · 1 comment
Open

collegiate: unable to marshall #1

kendfss opened this issue Jun 23, 2022 · 1 comment

Comments

@kendfss
Copy link

kendfss commented Jun 23, 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 to any and use type assertions in the dicterm api.
It's kinda ugly, but so is the merriam webster api, lol.

@murat
Copy link
Owner

murat commented Jun 24, 2022

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants