Support Bytes (#68)

This commit is contained in:
Daniel Hahne 2020-12-28 09:01:23 +01:00 committed by Graham Esau
parent 9c68e080d6
commit 0e3938798f
7 changed files with 33 additions and 0 deletions

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

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

View file

@ -0,0 +1,10 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Array_of_uint8",
"type": "array",
"items": {
"type": "integer",
"format": "uint8",
"minimum": 0.0
}
}