add optional smol_str support (#72)
Co-authored-by: Graham Esau <gesau@hotmail.co.uk>
This commit is contained in:
parent
73715c10e0
commit
587176fe9f
5 changed files with 26 additions and 0 deletions
5
schemars/tests/expected/smol_str.json
Normal file
5
schemars/tests/expected/smol_str.json
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"title": "String",
|
||||
"type": "string"
|
||||
}
|
8
schemars/tests/smol_str.rs
Normal file
8
schemars/tests/smol_str.rs
Normal file
|
@ -0,0 +1,8 @@
|
|||
mod util;
|
||||
use smol_str::SmolStr;
|
||||
use util::*;
|
||||
|
||||
#[test]
|
||||
fn smol_str() -> TestResult {
|
||||
test_default_generated_schema::<SmolStr>("smol_str")
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue