Regenerate example schemas

This commit is contained in:
Graham Esau 2024-05-13 18:33:55 +01:00
parent f5d2142714
commit 8c2c32bce0
19 changed files with 244 additions and 242 deletions

View file

@ -2,10 +2,6 @@
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "MyStruct",
"type": "object",
"required": [
"my_bool",
"my_int"
],
"properties": {
"my_bool": {
"type": "boolean"
@ -25,32 +21,30 @@
]
}
},
"required": [
"my_int",
"my_bool"
],
"definitions": {
"MyEnum": {
"oneOf": [
{
"type": "object",
"required": [
"StringNewType"
],
"properties": {
"StringNewType": {
"type": "string"
}
},
"additionalProperties": false
"additionalProperties": false,
"required": [
"StringNewType"
]
},
{
"type": "object",
"required": [
"StructVariant"
],
"properties": {
"StructVariant": {
"type": "object",
"required": [
"floats"
],
"properties": {
"floats": {
"type": "array",
@ -59,10 +53,16 @@
"format": "float"
}
}
}
},
"required": [
"floats"
]
}
},
"additionalProperties": false
"additionalProperties": false,
"required": [
"StructVariant"
]
}
]
}