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

Client API - ApiV2MessagesGet - Fails to unmarshal the response 'messages' field (Message field in Messages struct) #458

Open
kfircohen123 opened this issue Jan 16, 2024 · 0 comments

Comments

@kfircohen123
Copy link

release: mailhog/mailhog:v1.0.0

Problem:
The response count is positive, but messages array is empty.

Problem analysis:
The reason is that the response contains, for some reason the, "items" field instead of "messages".

Workaround
A workaround was to rename the field in the openapi file, which I used to generate the client.
The screenshots below show the messages field renamed to "items".

image image
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

1 participant