Skip to content

Commit

Permalink
Regenerate test schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
GREsau committed May 13, 2024
1 parent a2c478f commit 038e9a3
Show file tree
Hide file tree
Showing 10 changed files with 31 additions and 91 deletions.
6 changes: 2 additions & 4 deletions schemars/tests/expected/deprecated-enum.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,8 @@
},
{
"type": "string",
"deprecated": true,
"enum": [
"DeprecatedUnitVariant"
]
"const": "DeprecatedUnitVariant",
"deprecated": true
},
{
"type": "object",
Expand Down
4 changes: 1 addition & 3 deletions schemars/tests/expected/doc_comments_enum.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@
{
"description": "This comment is included in the generated schema :)",
"type": "string",
"enum": [
"DocumentedUnit"
]
"const": "DocumentedUnit"
},
{
"title": "Complex variant",
Expand Down
28 changes: 7 additions & 21 deletions schemars/tests/expected/enum-internal-duf.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@
"properties": {
"typeProperty": {
"type": "string",
"enum": [
"UnitOne"
]
"const": "UnitOne"
}
},
"additionalProperties": false,
Expand All @@ -22,9 +20,7 @@
"properties": {
"typeProperty": {
"type": "string",
"enum": [
"StringMap"
]
"const": "StringMap"
}
},
"additionalProperties": {
Expand All @@ -39,9 +35,7 @@
"properties": {
"typeProperty": {
"type": "string",
"enum": [
"UnitStructNewType"
]
"const": "UnitStructNewType"
}
},
"additionalProperties": false,
Expand All @@ -61,9 +55,7 @@
},
"typeProperty": {
"type": "string",
"enum": [
"StructNewType"
]
"const": "StructNewType"
}
},
"required": [
Expand All @@ -84,9 +76,7 @@
},
"typeProperty": {
"type": "string",
"enum": [
"Struct"
]
"const": "Struct"
}
},
"additionalProperties": false,
Expand All @@ -101,9 +91,7 @@
"properties": {
"typeProperty": {
"type": "string",
"enum": [
"UnitTwo"
]
"const": "UnitTwo"
}
},
"additionalProperties": false,
Expand All @@ -117,9 +105,7 @@
"properties": {
"typeProperty": {
"type": "string",
"enum": [
"WithInt"
]
"const": "WithInt"
}
},
"required": [
Expand Down
28 changes: 7 additions & 21 deletions schemars/tests/expected/enum-internal.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@
"properties": {
"typeProperty": {
"type": "string",
"enum": [
"UnitOne"
]
"const": "UnitOne"
}
},
"required": [
Expand All @@ -21,9 +19,7 @@
"properties": {
"typeProperty": {
"type": "string",
"enum": [
"StringMap"
]
"const": "StringMap"
}
},
"additionalProperties": {
Expand All @@ -38,9 +34,7 @@
"properties": {
"typeProperty": {
"type": "string",
"enum": [
"UnitStructNewType"
]
"const": "UnitStructNewType"
}
},
"required": [
Expand All @@ -59,9 +53,7 @@
},
"typeProperty": {
"type": "string",
"enum": [
"StructNewType"
]
"const": "StructNewType"
}
},
"required": [
Expand All @@ -82,9 +74,7 @@
},
"typeProperty": {
"type": "string",
"enum": [
"Struct"
]
"const": "Struct"
}
},
"required": [
Expand All @@ -98,9 +88,7 @@
"properties": {
"typeProperty": {
"type": "string",
"enum": [
"UnitTwo"
]
"const": "UnitTwo"
}
},
"required": [
Expand All @@ -113,9 +101,7 @@
"properties": {
"typeProperty": {
"type": "string",
"enum": [
"WithInt"
]
"const": "WithInt"
}
},
"required": [
Expand Down
12 changes: 3 additions & 9 deletions schemars/tests/expected/enum-simple-internal-duf.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@
"properties": {
"typeProperty": {
"type": "string",
"enum": [
"A"
]
"const": "A"
}
},
"additionalProperties": false,
Expand All @@ -22,9 +20,7 @@
"properties": {
"typeProperty": {
"type": "string",
"enum": [
"B"
]
"const": "B"
}
},
"additionalProperties": false,
Expand All @@ -37,9 +33,7 @@
"properties": {
"typeProperty": {
"type": "string",
"enum": [
"C"
]
"const": "C"
}
},
"additionalProperties": false,
Expand Down
12 changes: 3 additions & 9 deletions schemars/tests/expected/enum-simple-internal.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@
"properties": {
"typeProperty": {
"type": "string",
"enum": [
"A"
]
"const": "A"
}
},
"required": [
Expand All @@ -21,9 +19,7 @@
"properties": {
"typeProperty": {
"type": "string",
"enum": [
"B"
]
"const": "B"
}
},
"required": [
Expand All @@ -35,9 +31,7 @@
"properties": {
"typeProperty": {
"type": "string",
"enum": [
"C"
]
"const": "C"
}
},
"required": [
Expand Down
12 changes: 3 additions & 9 deletions schemars/tests/expected/enum-unit-doc.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,17 @@
"title": "A deer",
"description": "A female deer",
"type": "string",
"enum": [
"Do"
]
"const": "Do"
},
{
"description": "A drop of golden sun",
"type": "string",
"enum": [
"Re"
]
"const": "Re"
},
{
"description": "A name I call myself",
"type": "string",
"enum": [
"Mi"
]
"const": "Mi"
}
]
}
4 changes: 1 addition & 3 deletions schemars/tests/expected/schema_settings-2019_09.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,7 @@
{
"description": "This is a documented unit variant",
"type": "string",
"enum": [
"DocumentedUnit"
]
"const": "DocumentedUnit"
},
{
"type": "object",
Expand Down
4 changes: 1 addition & 3 deletions schemars/tests/expected/schema_settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,7 @@
{
"description": "This is a documented unit variant",
"type": "string",
"enum": [
"DocumentedUnit"
]
"const": "DocumentedUnit"
},
{
"type": "object",
Expand Down
12 changes: 3 additions & 9 deletions schemars/tests/expected/schema_with-enum-internal.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@
},
"typeProperty": {
"type": "string",
"enum": [
"Struct"
]
"const": "Struct"
}
},
"required": [
Expand All @@ -25,9 +23,7 @@
"properties": {
"typeProperty": {
"type": "string",
"enum": [
"NewType"
]
"const": "NewType"
}
},
"required": [
Expand All @@ -39,9 +35,7 @@
"properties": {
"typeProperty": {
"type": "string",
"enum": [
"Unit"
]
"const": "Unit"
}
},
"required": [
Expand Down

0 comments on commit 038e9a3

Please sign in to comment.