Regenerate example schemas
This commit is contained in:
parent
f8b56cb455
commit
fb6e1a5c61
18 changed files with 40 additions and 40 deletions
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||||
"title": "MyStruct",
|
"title": "MyStruct",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||||
"title": "My Amazing Struct",
|
"title": "My Amazing Struct",
|
||||||
"description": "This struct shows off generating a schema with a custom title and description.",
|
"description": "This struct shows off generating a schema with a custom title and description.",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
|
@ -18,7 +18,7 @@
|
||||||
"description": "This enum might be set, or it might not.",
|
"description": "This enum might be set, or it might not.",
|
||||||
"anyOf": [
|
"anyOf": [
|
||||||
{
|
{
|
||||||
"$ref": "#/definitions/MyEnum"
|
"$ref": "#/$defs/MyEnum"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "null"
|
"type": "null"
|
||||||
|
@ -30,7 +30,7 @@
|
||||||
"my_int",
|
"my_int",
|
||||||
"my_bool"
|
"my_bool"
|
||||||
],
|
],
|
||||||
"definitions": {
|
"$defs": {
|
||||||
"MyEnum": {
|
"MyEnum": {
|
||||||
"title": "My Amazing Enum",
|
"title": "My Amazing Enum",
|
||||||
"oneOf": [
|
"oneOf": [
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||||
"title": "SmallPrime",
|
"title": "SmallPrime",
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"enum": [
|
"enum": [
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||||
"title": "MyStruct",
|
"title": "MyStruct",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||||
"title": "MyStruct",
|
"title": "MyStruct",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
@ -13,7 +13,7 @@
|
||||||
"my_nullable_enum": {
|
"my_nullable_enum": {
|
||||||
"anyOf": [
|
"anyOf": [
|
||||||
{
|
{
|
||||||
"$ref": "#/definitions/MyEnum"
|
"$ref": "#/$defs/MyEnum"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "null"
|
"type": "null"
|
||||||
|
@ -25,7 +25,7 @@
|
||||||
"my_int",
|
"my_int",
|
||||||
"my_bool"
|
"my_bool"
|
||||||
],
|
],
|
||||||
"definitions": {
|
"$defs": {
|
||||||
"MyEnum": {
|
"MyEnum": {
|
||||||
"oneOf": [
|
"oneOf": [
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||||
"title": "Process",
|
"title": "Process",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
@ -9,11 +9,11 @@
|
||||||
"durations": {
|
"durations": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
"$ref": "#/definitions/Duration"
|
"$ref": "#/$defs/Duration"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"wall_time": {
|
"wall_time": {
|
||||||
"$ref": "#/definitions/Duration"
|
"$ref": "#/$defs/Duration"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": [
|
"required": [
|
||||||
|
@ -21,7 +21,7 @@
|
||||||
"wall_time",
|
"wall_time",
|
||||||
"durations"
|
"durations"
|
||||||
],
|
],
|
||||||
"definitions": {
|
"$defs": {
|
||||||
"Duration": {
|
"Duration": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||||
"title": "MyStruct",
|
"title": "MyStruct",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
@ -9,7 +9,7 @@
|
||||||
"myNullableEnum": {
|
"myNullableEnum": {
|
||||||
"anyOf": [
|
"anyOf": [
|
||||||
{
|
{
|
||||||
"$ref": "#/definitions/MyEnum"
|
"$ref": "#/$defs/MyEnum"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "null"
|
"type": "null"
|
||||||
|
@ -37,7 +37,7 @@
|
||||||
"myBool",
|
"myBool",
|
||||||
"myVecStr"
|
"myVecStr"
|
||||||
],
|
],
|
||||||
"definitions": {
|
"$defs": {
|
||||||
"MyEnum": {
|
"MyEnum": {
|
||||||
"anyOf": [
|
"anyOf": [
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||||
"title": "MyStruct",
|
"title": "MyStruct",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
@ -9,7 +9,7 @@
|
||||||
"myNullableEnum": {
|
"myNullableEnum": {
|
||||||
"anyOf": [
|
"anyOf": [
|
||||||
{
|
{
|
||||||
"$ref": "#/definitions/MyEnum"
|
"$ref": "#/$defs/MyEnum"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "null"
|
"type": "null"
|
||||||
|
@ -27,7 +27,7 @@
|
||||||
"myNumber",
|
"myNumber",
|
||||||
"myBool"
|
"myBool"
|
||||||
],
|
],
|
||||||
"definitions": {
|
"$defs": {
|
||||||
"MyEnum": {
|
"MyEnum": {
|
||||||
"anyOf": [
|
"anyOf": [
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||||
"title": "MyStruct",
|
"title": "MyStruct",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||||
"title": "MyStruct",
|
"title": "MyStruct",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||||
"title": "My Amazing Struct",
|
"title": "My Amazing Struct",
|
||||||
"description": "This struct shows off generating a schema with a custom title and description.",
|
"description": "This struct shows off generating a schema with a custom title and description.",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
|
@ -18,7 +18,7 @@
|
||||||
"description": "This enum might be set, or it might not.",
|
"description": "This enum might be set, or it might not.",
|
||||||
"anyOf": [
|
"anyOf": [
|
||||||
{
|
{
|
||||||
"$ref": "#/definitions/MyEnum"
|
"$ref": "#/$defs/MyEnum"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "null"
|
"type": "null"
|
||||||
|
@ -30,7 +30,7 @@
|
||||||
"my_int",
|
"my_int",
|
||||||
"my_bool"
|
"my_bool"
|
||||||
],
|
],
|
||||||
"definitions": {
|
"$defs": {
|
||||||
"MyEnum": {
|
"MyEnum": {
|
||||||
"title": "My Amazing Enum",
|
"title": "My Amazing Enum",
|
||||||
"oneOf": [
|
"oneOf": [
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||||
"title": "SmallPrime",
|
"title": "SmallPrime",
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"enum": [
|
"enum": [
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||||
"title": "MyStruct",
|
"title": "MyStruct",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||||
"title": "MyStruct",
|
"title": "MyStruct",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
@ -13,7 +13,7 @@
|
||||||
"my_nullable_enum": {
|
"my_nullable_enum": {
|
||||||
"anyOf": [
|
"anyOf": [
|
||||||
{
|
{
|
||||||
"$ref": "#/definitions/MyEnum"
|
"$ref": "#/$defs/MyEnum"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "null"
|
"type": "null"
|
||||||
|
@ -25,7 +25,7 @@
|
||||||
"my_int",
|
"my_int",
|
||||||
"my_bool"
|
"my_bool"
|
||||||
],
|
],
|
||||||
"definitions": {
|
"$defs": {
|
||||||
"MyEnum": {
|
"MyEnum": {
|
||||||
"oneOf": [
|
"oneOf": [
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||||
"title": "Process",
|
"title": "Process",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
@ -9,11 +9,11 @@
|
||||||
"durations": {
|
"durations": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
"$ref": "#/definitions/Duration"
|
"$ref": "#/$defs/Duration"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"wall_time": {
|
"wall_time": {
|
||||||
"$ref": "#/definitions/Duration"
|
"$ref": "#/$defs/Duration"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": [
|
"required": [
|
||||||
|
@ -21,7 +21,7 @@
|
||||||
"wall_time",
|
"wall_time",
|
||||||
"durations"
|
"durations"
|
||||||
],
|
],
|
||||||
"definitions": {
|
"$defs": {
|
||||||
"Duration": {
|
"Duration": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||||
"title": "MyStruct",
|
"title": "MyStruct",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
@ -9,7 +9,7 @@
|
||||||
"myNullableEnum": {
|
"myNullableEnum": {
|
||||||
"anyOf": [
|
"anyOf": [
|
||||||
{
|
{
|
||||||
"$ref": "#/definitions/MyEnum"
|
"$ref": "#/$defs/MyEnum"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "null"
|
"type": "null"
|
||||||
|
@ -37,7 +37,7 @@
|
||||||
"myBool",
|
"myBool",
|
||||||
"myVecStr"
|
"myVecStr"
|
||||||
],
|
],
|
||||||
"definitions": {
|
"$defs": {
|
||||||
"MyEnum": {
|
"MyEnum": {
|
||||||
"anyOf": [
|
"anyOf": [
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||||
"title": "MyStruct",
|
"title": "MyStruct",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
@ -9,7 +9,7 @@
|
||||||
"myNullableEnum": {
|
"myNullableEnum": {
|
||||||
"anyOf": [
|
"anyOf": [
|
||||||
{
|
{
|
||||||
"$ref": "#/definitions/MyEnum"
|
"$ref": "#/$defs/MyEnum"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "null"
|
"type": "null"
|
||||||
|
@ -27,7 +27,7 @@
|
||||||
"myNumber",
|
"myNumber",
|
||||||
"myBool"
|
"myBool"
|
||||||
],
|
],
|
||||||
"definitions": {
|
"$defs": {
|
||||||
"MyEnum": {
|
"MyEnum": {
|
||||||
"anyOf": [
|
"anyOf": [
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||||
"title": "MyStruct",
|
"title": "MyStruct",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue