add optional smol_str support (#72)

Co-authored-by: Graham Esau <gesau@hotmail.co.uk>
This commit is contained in:
Gleb Pomykalov 2023-02-26 19:42:16 +00:00 committed by GitHub
parent 73715c10e0
commit 587176fe9f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 26 additions and 0 deletions

View file

@ -0,0 +1,5 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "String",
"type": "string"
}

View 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")
}