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

Wrapped json support #79

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

enriquefromojaro
Copy link

This pull request adds support for the output format "wrapped_json".

This format, supported by LMD, includes information about the data length and the errors that may have been occurred. Summing up, this format returns additional information in the response.

The aiming of including this format is the interest to know what happened if a query fails for some reason in order to fix it or handle the error if there was any, because at the moment if the query fails, the reader in the socket cannot know it without looking at the broker logs.

enrique and others added 10 commits July 27, 2018 09:15
The error returning is different output formats. Concreteley, the way a
wrapped_json response is different from the others, So we tell to the error
response the output format it must use (The one in the query)

If there is no OutputFormat header in the query, we'll use the default one
(csv)
This is needed to interoperatibility
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

Successfully merging this pull request may close these issues.

1 participant