Add Visitor trait, update changelog

This commit is contained in:
Graham Esau 2020-06-04 19:23:36 +01:00
parent 4b37f96c99
commit a829267111
11 changed files with 244 additions and 206 deletions

View file

@ -58,7 +58,7 @@ fn doc_comments_struct() -> TestResult {
#[test]
fn doc_comments_struct_ref_siblings() -> TestResult {
let settings = SchemaSettings::draft07().with(|s| s.allow_ref_siblings = true);
let settings = SchemaSettings::draft2019_09();
test_generated_schema::<MyStruct>("doc_comments_struct_ref_siblings", settings)
}

View file

@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$schema": "https://json-schema.org/draft/2019-09/schema",
"title": "This is the struct's title",
"description": "This is the struct's description.",
"type": "object",