Update examples (changed due to 6a3bba1e)

This commit is contained in:
Graham Esau 2021-03-21 21:25:13 +00:00
parent 77c7aa9beb
commit 803c47bab3
8 changed files with 32 additions and 16 deletions

View file

@ -74,7 +74,8 @@ println!("{}", serde_json::to_string_pretty(&schema).unwrap());
"StringNewType": { "StringNewType": {
"type": "string" "type": "string"
} }
} },
"additionalProperties": false
}, },
{ {
"type": "object", "type": "object",
@ -97,7 +98,8 @@ println!("{}", serde_json::to_string_pretty(&schema).unwrap());
} }
} }
} }
} },
"additionalProperties": false
} }
] ]
} }

View file

@ -35,7 +35,8 @@
"StringNewType": { "StringNewType": {
"type": "string" "type": "string"
} }
} },
"additionalProperties": false
}, },
{ {
"type": "object", "type": "object",
@ -58,7 +59,8 @@
} }
} }
} }
} },
"additionalProperties": false
} }
] ]
} }

View file

@ -44,7 +44,8 @@
"StringNewType": { "StringNewType": {
"type": "string" "type": "string"
} }
} },
"additionalProperties": false
}, },
{ {
"description": "A struct-like enum variant which contains some floats", "description": "A struct-like enum variant which contains some floats",
@ -69,7 +70,8 @@
} }
} }
} }
} },
"additionalProperties": false
} }
] ]
} }

View file

@ -37,7 +37,8 @@
"StringNewType": { "StringNewType": {
"type": "string" "type": "string"
} }
} },
"additionalProperties": false
}, },
{ {
"type": "object", "type": "object",
@ -60,7 +61,8 @@
} }
} }
} }
} },
"additionalProperties": false
} }
] ]
} }

View file

@ -35,7 +35,8 @@
"StringNewType": { "StringNewType": {
"type": "string" "type": "string"
} }
} },
"additionalProperties": false
}, },
{ {
"type": "object", "type": "object",
@ -58,7 +59,8 @@
} }
} }
} }
} },
"additionalProperties": false
} }
] ]
} }

View file

@ -44,7 +44,8 @@
"StringNewType": { "StringNewType": {
"type": "string" "type": "string"
} }
} },
"additionalProperties": false
}, },
{ {
"description": "A struct-like enum variant which contains some floats", "description": "A struct-like enum variant which contains some floats",
@ -69,7 +70,8 @@
} }
} }
} }
} },
"additionalProperties": false
} }
] ]
} }

View file

@ -37,7 +37,8 @@
"StringNewType": { "StringNewType": {
"type": "string" "type": "string"
} }
} },
"additionalProperties": false
}, },
{ {
"type": "object", "type": "object",
@ -60,7 +61,8 @@
} }
} }
} }
} },
"additionalProperties": false
} }
] ]
} }

View file

@ -69,7 +69,8 @@ println!("{}", serde_json::to_string_pretty(&schema).unwrap());
"StringNewType": { "StringNewType": {
"type": "string" "type": "string"
} }
} },
"additionalProperties": false
}, },
{ {
"type": "object", "type": "object",
@ -92,7 +93,8 @@ println!("{}", serde_json::to_string_pretty(&schema).unwrap());
} }
} }
} }
} },
"additionalProperties": false
} }
] ]
} }