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

validate response #17

Closed
djlauk opened this issue Jan 28, 2021 · 2 comments
Closed

validate response #17

djlauk opened this issue Jan 28, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@djlauk
Copy link
Contributor

djlauk commented Jan 28, 2021

Parse and validate the server response before using it.

Known issues that disguised server problems in the past:

  • string "NaN" in value parts (e.g. in aggregations)
  • field "globalMillis" missing
@djlauk
Copy link
Contributor Author

djlauk commented May 7, 2021

Maybe aegis could be helpful here: It generates decoders from the TypeScript interfaces.

@djlauk
Copy link
Contributor Author

djlauk commented Aug 3, 2021

I couldn't get aegis to run following their instructions in the README. But then again, writing the decoders manually doesn't seem too much work.

@djlauk djlauk closed this as completed in 98bcbd7 Aug 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant