File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
schemars/tests/integration
snapshots/schemars/tests/integration Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 11{
2- "$schema" : " https://json-schema.org/draft/2019-09 /schema" ,
2+ "$schema" : " https://json-schema.org/draft/2020-12 /schema" ,
33 "title" : " Uuid" ,
44 "type" : " string" ,
55 "format" : " uuid"
Original file line number Diff line number Diff line change 11use crate :: prelude:: * ;
2- use schemars:: generate:: SchemaSettings ;
32use uuid1:: Uuid ;
43
54#[ test]
65fn uuid ( ) {
7- // Must run with draft 2019-09 due to https://github.com/Stranger6667/jsonschema-rs/issues/456
8- test ! ( Uuid , SchemaSettings :: draft2019_09( ) )
6+ test ! ( Uuid )
97 . assert_snapshot ( )
108 . assert_allows_ser_roundtrip ( [ Uuid :: nil ( ) , Uuid :: max ( ) , Uuid :: from_u128 ( 1234567890 ) ] )
119 . assert_matches_de_roundtrip ( arbitrary_values ( ) ) ;
You can’t perform that action at this time.
0 commit comments