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

Support format validation when producing #118

Open
jorgebay opened this issue Nov 23, 2022 · 1 comment
Open

Support format validation when producing #118

jorgebay opened this issue Nov 23, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@jorgebay
Copy link
Contributor

jorgebay commented Nov 23, 2022

We should support json validation (and whatever other content type we support).

Format validation can be an opt-in feature as it has a direct impact on performance and data integrity can be provided by service meshes.

It should be done without too many allocations and taking into account that a request body might be read into more than 1 pooled buffer. For the pooled buffers, we depend on #63.

@jorgebay jorgebay added the enhancement New feature or request label Nov 23, 2022
@jorgebay
Copy link
Contributor Author

We could adapt fastjson's Scanner or stdlib's checkValid() to support multiple []byte.

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