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

Improve data validation when passing a json inventory #511

Open
demeringo opened this issue May 25, 2024 · 0 comments
Open

Improve data validation when passing a json inventory #511

demeringo opened this issue May 25, 2024 · 0 comments
Labels
draft feature draft feature

Comments

@demeringo
Copy link
Collaborator

Problem

When passing a json inventory as input for evaluation, the data validation is very basic (it loads or not according to if it can be parsed into the correct struct).

The error message may not be helpful to the user.

Solution

Investigate a more elaborate validation (likely using / producing a json schema) and validating against it.

Alternatives

Additional context or elements

https://blog.logrocket.com/json-input-validation-in-rust-web-services/

@demeringo demeringo added the draft feature draft feature label May 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
draft feature draft feature
Projects
None yet
Development

No branches or pull requests

1 participant