schemars icon indicating copy to clipboard operation
schemars copied to clipboard

Impl JsonSchema for for rocket_validation::Validated

Open auipga opened this issue 2 years ago • 0 comments

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

auipga avatar Sep 07 '23 20:09 auipga