Skip to content

Commit

Permalink
Regenerate example schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
GREsau committed May 26, 2024
1 parent f8b56cb commit fb6e1a5
Show file tree
Hide file tree
Showing 18 changed files with 40 additions and 40 deletions.
2 changes: 1 addition & 1 deletion docs/_includes/examples/custom_serialization.schema.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
6 changes: 3 additions & 3 deletions docs/_includes/examples/doc_comments.schema.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -18,7 +18,7 @@
"description": "This enum might be set, or it might not.",
"anyOf": [
{
"$ref": "#/definitions/MyEnum"
"$ref": "#/$defs/MyEnum"
},
{
"type": "null"
Expand All @@ -30,7 +30,7 @@
"my_int",
"my_bool"
],
"definitions": {
"$defs": {
"MyEnum": {
"title": "My Amazing Enum",
"oneOf": [
Expand Down
2 changes: 1 addition & 1 deletion docs/_includes/examples/enum_repr.schema.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand Down
2 changes: 1 addition & 1 deletion docs/_includes/examples/from_value.schema.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
6 changes: 3 additions & 3 deletions docs/_includes/examples/main.schema.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand All @@ -13,7 +13,7 @@
"my_nullable_enum": {
"anyOf": [
{
"$ref": "#/definitions/MyEnum"
"$ref": "#/$defs/MyEnum"
},
{
"type": "null"
Expand All @@ -25,7 +25,7 @@
"my_int",
"my_bool"
],
"definitions": {
"$defs": {
"MyEnum": {
"oneOf": [
{
Expand Down
8 changes: 4 additions & 4 deletions docs/_includes/examples/remote_derive.schema.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand All @@ -9,19 +9,19 @@
"durations": {
"type": "array",
"items": {
"$ref": "#/definitions/Duration"
"$ref": "#/$defs/Duration"
}
},
"wall_time": {
"$ref": "#/definitions/Duration"
"$ref": "#/$defs/Duration"
}
},
"required": [
"command_line",
"wall_time",
"durations"
],
"definitions": {
"$defs": {
"Duration": {
"type": "object",
"properties": {
Expand Down
6 changes: 3 additions & 3 deletions docs/_includes/examples/schemars_attrs.schema.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand All @@ -9,7 +9,7 @@
"myNullableEnum": {
"anyOf": [
{
"$ref": "#/definitions/MyEnum"
"$ref": "#/$defs/MyEnum"
},
{
"type": "null"
Expand Down Expand Up @@ -37,7 +37,7 @@
"myBool",
"myVecStr"
],
"definitions": {
"$defs": {
"MyEnum": {
"anyOf": [
{
Expand Down
6 changes: 3 additions & 3 deletions docs/_includes/examples/serde_attrs.schema.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand All @@ -9,7 +9,7 @@
"myNullableEnum": {
"anyOf": [
{
"$ref": "#/definitions/MyEnum"
"$ref": "#/$defs/MyEnum"
},
{
"type": "null"
Expand All @@ -27,7 +27,7 @@
"myNumber",
"myBool"
],
"definitions": {
"$defs": {
"MyEnum": {
"anyOf": [
{
Expand Down
2 changes: 1 addition & 1 deletion docs/_includes/examples/validate.schema.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion schemars/examples/custom_serialization.schema.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
6 changes: 3 additions & 3 deletions schemars/examples/doc_comments.schema.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -18,7 +18,7 @@
"description": "This enum might be set, or it might not.",
"anyOf": [
{
"$ref": "#/definitions/MyEnum"
"$ref": "#/$defs/MyEnum"
},
{
"type": "null"
Expand All @@ -30,7 +30,7 @@
"my_int",
"my_bool"
],
"definitions": {
"$defs": {
"MyEnum": {
"title": "My Amazing Enum",
"oneOf": [
Expand Down
2 changes: 1 addition & 1 deletion schemars/examples/enum_repr.schema.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand Down
2 changes: 1 addition & 1 deletion schemars/examples/from_value.schema.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
6 changes: 3 additions & 3 deletions schemars/examples/main.schema.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand All @@ -13,7 +13,7 @@
"my_nullable_enum": {
"anyOf": [
{
"$ref": "#/definitions/MyEnum"
"$ref": "#/$defs/MyEnum"
},
{
"type": "null"
Expand All @@ -25,7 +25,7 @@
"my_int",
"my_bool"
],
"definitions": {
"$defs": {
"MyEnum": {
"oneOf": [
{
Expand Down
8 changes: 4 additions & 4 deletions schemars/examples/remote_derive.schema.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand All @@ -9,19 +9,19 @@
"durations": {
"type": "array",
"items": {
"$ref": "#/definitions/Duration"
"$ref": "#/$defs/Duration"
}
},
"wall_time": {
"$ref": "#/definitions/Duration"
"$ref": "#/$defs/Duration"
}
},
"required": [
"command_line",
"wall_time",
"durations"
],
"definitions": {
"$defs": {
"Duration": {
"type": "object",
"properties": {
Expand Down
6 changes: 3 additions & 3 deletions schemars/examples/schemars_attrs.schema.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand All @@ -9,7 +9,7 @@
"myNullableEnum": {
"anyOf": [
{
"$ref": "#/definitions/MyEnum"
"$ref": "#/$defs/MyEnum"
},
{
"type": "null"
Expand Down Expand Up @@ -37,7 +37,7 @@
"myBool",
"myVecStr"
],
"definitions": {
"$defs": {
"MyEnum": {
"anyOf": [
{
Expand Down
6 changes: 3 additions & 3 deletions schemars/examples/serde_attrs.schema.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand All @@ -9,7 +9,7 @@
"myNullableEnum": {
"anyOf": [
{
"$ref": "#/definitions/MyEnum"
"$ref": "#/$defs/MyEnum"
},
{
"type": "null"
Expand All @@ -27,7 +27,7 @@
"myNumber",
"myBool"
],
"definitions": {
"$defs": {
"MyEnum": {
"anyOf": [
{
Expand Down
2 changes: 1 addition & 1 deletion schemars/examples/validate.schema.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down

0 comments on commit fb6e1a5

Please sign in to comment.