Add Visitor trait, update changelog
This commit is contained in:
parent
4b37f96c99
commit
a829267111
11 changed files with 244 additions and 206 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue