Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Commit

Permalink
Samples updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Chrusty authored and Chrusty committed Mar 21, 2021
1 parent 5de1927 commit b4c1908
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 48 deletions.
6 changes: 0 additions & 6 deletions jsonschemas/ArrayOfPrimitives.jsonschema
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@
"luckyBigNumbers": {
"items": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string"
},
Expand Down Expand Up @@ -76,9 +73,6 @@
},
"big_number": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string"
},
Expand Down
13 changes: 11 additions & 2 deletions jsonschemas/Enumception.jsonschema
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@
},
"payload": {
"$ref": "samples.PayloadMessage",
"additionalProperties": true,
"type": "object"
"additionalProperties": true
},
"payloads": {
"items": {
Expand All @@ -45,6 +44,16 @@
"type": "array"
},
"importedEnum": {
"enum": [
"VALUE_0",
0,
"VALUE_1",
1,
"VALUE_2",
2,
"VALUE_3",
3
],
"oneOf": [
{
"type": "string"
Expand Down
9 changes: 1 addition & 8 deletions jsonschemas/JSONFields.jsonschema
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,7 @@
"type": "boolean"
},
"snakeNumb": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string"
}
]
"type": "string"
}
},
"additionalProperties": true,
Expand Down
9 changes: 1 addition & 8 deletions jsonschemas/MessageKind12.jsonschema
Original file line number Diff line number Diff line change
Expand Up @@ -179,14 +179,7 @@
"type": "boolean"
},
"baz": {
"oneOf": [
{
"type": "integer"
},
{
"type": "string"
}
]
"type": "string"
}
},
"additionalProperties": true,
Expand Down
29 changes: 5 additions & 24 deletions jsonschemas/WellKnown.jsonschema
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,13 @@
"$schema": "http://json-schema.org/draft-04/schema#",
"properties": {
"string_value": {
"oneOf": [
{
"type": "null"
},
{
"type": "string"
}
]
"additionalProperties": true,
"type": "string"
},
"map_of_integers": {
"additionalProperties": {
"oneOf": [
{
"type": "null"
},
{
"type": "integer"
}
]
"additionalProperties": true,
"type": "integer"
},
"type": "object"
},
Expand All @@ -32,14 +20,7 @@
},
"list_of_integers": {
"items": {
"oneOf": [
{
"type": "null"
},
{
"type": "integer"
}
]
"type": "integer"
},
"type": "array"
}
Expand Down

0 comments on commit b4c1908

Please sign in to comment.