Update doc comments and make SchemaGenerator
available from crate root
This commit is contained in:
parent
fb6e1a5c61
commit
760403e2f5
13 changed files with 150 additions and 74 deletions
|
@ -2,7 +2,7 @@ mod util;
|
|||
use schemars::JsonSchema;
|
||||
use util::*;
|
||||
|
||||
fn schema_fn(gen: &mut schemars::gen::SchemaGenerator) -> schemars::Schema {
|
||||
fn schema_fn(gen: &mut schemars::SchemaGenerator) -> schemars::Schema {
|
||||
<bool>::json_schema(gen)
|
||||
}
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ mod util;
|
|||
use schemars::JsonSchema;
|
||||
use util::*;
|
||||
|
||||
fn schema_fn(gen: &mut schemars::gen::SchemaGenerator) -> schemars::Schema {
|
||||
fn schema_fn(gen: &mut schemars::SchemaGenerator) -> schemars::Schema {
|
||||
<bool>::json_schema(gen)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue