Implement JsonSchema on Uuid

This commit is contained in:
Graham Esau 2019-12-27 22:41:28 +00:00
parent 547f81fd67
commit 008d70e52a
8 changed files with 48 additions and 2 deletions

View file

@ -0,0 +1,6 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Uuid",
"type": "string",
"format": "uuid"
}

8
schemars/tests/uuid.rs Normal file
View file

@ -0,0 +1,8 @@
mod util;
use uuid::Uuid;
use util::*;
#[test]
fn uuid() -> TestResult {
test_default_generated_schema::<Uuid>("uuid")
}