schemars icon indicating copy to clipboard operation
schemars copied to clipboard

Generate JSON Schema documents from Rust code

Results 203 schemars issues
Sort by recently updated
recently updated
newest added

Hello, thanks for great works! This PR adds a `Send` trait condition for `GenVisitor` trait. It enables for the async contexts to go out of the current thread.

I came across this fantastic crate. However, some of my crates are no_std. It would be great if schemars could support no_std compatibility. Otherwise, we'll have to use `#[cfg_attr(feature =...

Resolves #122. When using `#[serde(flatten)]` in combination with the `preserve_order` feature, Schemars did not actually preserve the order; flattened properites would always be inserted last. This change modifies the derive...

For the following Rust enum: ```rust #[derive(JsonSchema, Debug, Serialize, Deserialize)] #[serde(rename_all = "camelCase", tag = "function")] pub enum Test { RandomVariantA(String), RandomVariantB(i32), RecursiveTests(Vec), } ``` the following JSON schema is...

This implements a feature for the serde_bytes crate. I left commented out code in there about the `Bytes` struct of serde_bytes. This is limited to the `ByteBuf` one, because I...

Hi, First of all - thanks for a very usefull library. I'm using it for synchronizing types from rust for a large project. However, one issue I have is that...

This PR fixes https://github.com/GREsau/okapi/issues/128. When generating a schema for a `Map` with a key that is an `enum`, the generated schema only allows keys based off of the `enum` options....

I'm struggling to implement [rocket_validation::Validated](https://docs.rs/rocket-validation/0.1.3/rocket_validation/struct.Validated.html). Could sb. please guide me to the right direction? By reading #187 I've come this far: `Cargo.toml`: ```toml [dependencies.rocket-validation] version = "0.1.3" optional = true...

currently, generic type names are generated using `_for_` and `_and_`, it would be nice to have this configurable. ref: https://github.com/GREsau/schemars/blob/5268080b014152912a910e3fe8524c4c876407de/schemars_derive/src/lib.rs#LL112C45-L112C45 e.g: I would prefer to have `CommaSeparatedSimpleIdentifier` instead of `CommaSeparated_for_SimpleIdentifier`...

Proper integer validation support