Support Bytes (#68)
This commit is contained in:
parent
9c68e080d6
commit
0e3938798f
7 changed files with 33 additions and 0 deletions
8
schemars/tests/bytes.rs
Normal file
8
schemars/tests/bytes.rs
Normal file
|
@ -0,0 +1,8 @@
|
|||
mod util;
|
||||
use bytes::Bytes;
|
||||
use util::*;
|
||||
|
||||
#[test]
|
||||
fn bytes() -> TestResult {
|
||||
test_default_generated_schema::<Bytes>("bytes")
|
||||
}
|
10
schemars/tests/expected/bytes.json
Normal file
10
schemars/tests/expected/bytes.json
Normal 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
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue