Simplify flatten
No longer use it for internally-tagged enums. Instead, use a private helper that adds the tag property.
This commit is contained in:
parent
342cd5fd09
commit
3b3870ca82
6 changed files with 61 additions and 75 deletions
|
@ -112,10 +112,7 @@
|
|||
"additionalProperties": false
|
||||
},
|
||||
{
|
||||
"type": [
|
||||
"object",
|
||||
"integer"
|
||||
],
|
||||
"type": "object",
|
||||
"format": "int32",
|
||||
"required": [
|
||||
"typeProperty"
|
||||
|
|
|
@ -28,6 +28,9 @@
|
|||
"StringMap"
|
||||
]
|
||||
}
|
||||
},
|
||||
"additionalProperties": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -105,10 +108,7 @@
|
|||
}
|
||||
},
|
||||
{
|
||||
"type": [
|
||||
"object",
|
||||
"integer"
|
||||
],
|
||||
"type": "object",
|
||||
"format": "int32",
|
||||
"required": [
|
||||
"typeProperty"
|
||||
|
|
|
@ -21,10 +21,7 @@
|
|||
}
|
||||
},
|
||||
{
|
||||
"type": [
|
||||
"object",
|
||||
"boolean"
|
||||
],
|
||||
"type": "object",
|
||||
"required": [
|
||||
"typeProperty"
|
||||
],
|
||||
|
@ -38,10 +35,7 @@
|
|||
}
|
||||
},
|
||||
{
|
||||
"type": [
|
||||
"object",
|
||||
"boolean"
|
||||
],
|
||||
"type": "object",
|
||||
"required": [
|
||||
"typeProperty"
|
||||
],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue