Regenerate example schemas

This commit is contained in:
Graham Esau 2024-05-26 21:22:48 +01:00
parent f8b56cb455
commit fb6e1a5c61
18 changed files with 40 additions and 40 deletions

View file

@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "MyStruct",
"type": "object",
"properties": {

View file

@ -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",
"description": "This struct shows off generating a schema with a custom title and description.",
"type": "object",
@ -18,7 +18,7 @@
"description": "This enum might be set, or it might not.",
"anyOf": [
{
"$ref": "#/definitions/MyEnum"
"$ref": "#/$defs/MyEnum"
},
{
"type": "null"
@ -30,7 +30,7 @@
"my_int",
"my_bool"
],
"definitions": {
"$defs": {
"MyEnum": {
"title": "My Amazing Enum",
"oneOf": [

View file

@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "SmallPrime",
"type": "integer",
"enum": [

View file

@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "MyStruct",
"type": "object",
"properties": {

View file

@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "MyStruct",
"type": "object",
"properties": {
@ -13,7 +13,7 @@
"my_nullable_enum": {
"anyOf": [
{
"$ref": "#/definitions/MyEnum"
"$ref": "#/$defs/MyEnum"
},
{
"type": "null"
@ -25,7 +25,7 @@
"my_int",
"my_bool"
],
"definitions": {
"$defs": {
"MyEnum": {
"oneOf": [
{

View file

@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Process",
"type": "object",
"properties": {
@ -9,11 +9,11 @@
"durations": {
"type": "array",
"items": {
"$ref": "#/definitions/Duration"
"$ref": "#/$defs/Duration"
}
},
"wall_time": {
"$ref": "#/definitions/Duration"
"$ref": "#/$defs/Duration"
}
},
"required": [
@ -21,7 +21,7 @@
"wall_time",
"durations"
],
"definitions": {
"$defs": {
"Duration": {
"type": "object",
"properties": {

View file

@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "MyStruct",
"type": "object",
"properties": {
@ -9,7 +9,7 @@
"myNullableEnum": {
"anyOf": [
{
"$ref": "#/definitions/MyEnum"
"$ref": "#/$defs/MyEnum"
},
{
"type": "null"
@ -37,7 +37,7 @@
"myBool",
"myVecStr"
],
"definitions": {
"$defs": {
"MyEnum": {
"anyOf": [
{

View file

@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "MyStruct",
"type": "object",
"properties": {
@ -9,7 +9,7 @@
"myNullableEnum": {
"anyOf": [
{
"$ref": "#/definitions/MyEnum"
"$ref": "#/$defs/MyEnum"
},
{
"type": "null"
@ -27,7 +27,7 @@
"myNumber",
"myBool"
],
"definitions": {
"$defs": {
"MyEnum": {
"anyOf": [
{

View file

@ -1,5 +1,5 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "MyStruct",
"type": "object",
"properties": {