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:
Graham Esau 2024-05-13 10:52:42 +01:00
parent 342cd5fd09
commit 3b3870ca82
6 changed files with 61 additions and 75 deletions

View file

@ -112,10 +112,7 @@
"additionalProperties": false
},
{
"type": [
"object",
"integer"
],
"type": "object",
"format": "int32",
"required": [
"typeProperty"

View file

@ -28,6 +28,9 @@
"StringMap"
]
}
},
"additionalProperties": {
"type": "string"
}
},
{
@ -105,10 +108,7 @@
}
},
{
"type": [
"object",
"integer"
],
"type": "object",
"format": "int32",
"required": [
"typeProperty"

View file

@ -21,10 +21,7 @@
}
},
{
"type": [
"object",
"boolean"
],
"type": "object",
"required": [
"typeProperty"
],
@ -38,10 +35,7 @@
}
},
{
"type": [
"object",
"boolean"
],
"type": "object",
"required": [
"typeProperty"
],