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

Impl JsonSchema for for rocket_validation::Validated #243

Open
auipga opened this issue Sep 7, 2023 · 0 comments
Open

Impl JsonSchema for for rocket_validation::Validated #243

auipga opened this issue Sep 7, 2023 · 0 comments

Comments

@auipga
Copy link

auipga commented Sep 7, 2023

I'm struggling to implement rocket_validation::Validated.

Could sb. please guide me to the right direction?

By reading #187 I've come this far:

Cargo.toml:

[dependencies.rocket-validation]
version = "0.1.3"
optional = true

src/json_schema_impls/mod.rs:

#[cfg(feature = "rocket-validation")]
mod rocket_validation;

src/json_schema_impls/rocket_validation.rs:

forward_impl!(rocket_validation::Validated<something> => something);

where something could be rocket::serde::json::Json<T> or just T

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

No branches or pull requests

1 participant