Check for #[deprecated] attributes
This commit is contained in:
parent
bb8c93ddc1
commit
509a1c3b7b
7 changed files with 124 additions and 7 deletions
20
schemars/tests/expected/deprecated-struct.json
Normal file
20
schemars/tests/expected/deprecated-struct.json
Normal file
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"title": "DeprecatedStruct",
|
||||
"deprecated": true,
|
||||
"type": "object",
|
||||
"required": [
|
||||
"deprecated_field",
|
||||
"foo"
|
||||
],
|
||||
"properties": {
|
||||
"deprecated_field": {
|
||||
"deprecated": true,
|
||||
"type": "boolean"
|
||||
},
|
||||
"foo": {
|
||||
"type": "integer",
|
||||
"format": "int32"
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue