schemars
schemars copied to clipboard
Impl JsonSchema for for rocket_validation::Validated
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