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

Use jsonschema-rs for request/response validation #81

Open
playpauseandstop opened this issue Jun 9, 2020 · 1 comment
Open

Use jsonschema-rs for request/response validation #81

playpauseandstop opened this issue Jun 9, 2020 · 1 comment
Assignees
Labels
openapi Issue or pull request related to OpenAPI code perf A code change that improves performance
Milestone

Comments

@playpauseandstop
Copy link
Owner

jsonschema-rs in theory should allow rororo dramatically improve request/response validation speed.

As of 0.1.0 version error handling is not there, but it is still good idea to prepare basis for drop-in replacement for request/response validation via faster jsonschema alternative.

@playpauseandstop playpauseandstop added openapi Issue or pull request related to OpenAPI code perf A code change that improves performance labels Jun 9, 2020
@playpauseandstop playpauseandstop added this to the 2.1 milestone Jun 9, 2020
@playpauseandstop playpauseandstop self-assigned this Jun 9, 2020
@playpauseandstop
Copy link
Owner Author

As of https://twitter.com/Stranger6667/status/1271075766835576832,

JSONSchema.validate method is implemented in 0.3.0. It raises ValidationError :) Quite similar to jsonschema lib behavior. Iterator over errors will be implemented soon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
openapi Issue or pull request related to OpenAPI code perf A code change that improves performance
Projects
None yet
Development

No branches or pull requests

1 participant