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

implement JsonSchema for Rocket's TempFile re: #103 tried to set it up so that any future additions for Rocket can go under the same feature

Currently, doc comments on enum variants are ignored. ```rust /// An enum representing the kind of the thing. #[derive(schemars::JsonSchema)] struct Kind { /// The kind is one! One, /// The...

it would be very handy if schemars could support filepickers instead of strings for Path. input: ```rust #[derive(JsonSchema)] struct SapioCliConfig { sapio_cli: Path, } ``` output: ```json { "$schema": "http://json-schema.org/draft-07/schema#",...

First of thank you for this great project! I wanted to ask for a clarification on the policy of including optional external libraries in json_schema_impls. In the recent pull requests...

Add optional support for ipnetwork::{Ipv4Network,Ipv6Network}. These types are commonly used to present IP networks (combination of IP address and network mask length). Schema format is same as Display, which is...

Hey, love the project! I have read through #120 and #38 but I've still not found a solution to simply using the raw doc comments without any modification. I have...

I'm building a couple of crates that involve turning JSON Schema into Rust types via either a build.rs or a macro. I'm finding that it would be useful to be...

Related to #50, #81. I've implemented the ability to define custom tags so it is possible to define them like this: ```rust #[derive(Default, Debug, JsonSchema, Serialize)] #[schemars(extension = "struct_tag_1", extension...

docs: https://kubernetes.io/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/#specifying-a-structural-schema currently, schemars generates schemas that are rejected as non-structural for complex enumerations of the type: ```rust enum MyType { Variant1(Variant1), Variant2(Variant2), ... VariantN(VariantN), } ``` where `Variant1`, `Variant2`,...

See: https://github.com/rust-bitcoin/bitcoin_hashes/pull/135 Files: [OUT.txt](https://github.com/GREsau/schemars/files/7748087/OUT.txt) [OUT_Tests.txt](https://github.com/GREsau/schemars/files/7748090/OUT_Tests.txt) Essentially the type somehow gets confused and outputs an array when it should pass through to a string. Perhpas a discrepency in handling generic structs...