Regenerate test schemas
This commit is contained in:
parent
4dde683358
commit
f5d2142714
62 changed files with 1135 additions and 1124 deletions
|
@ -179,8 +179,17 @@ mod ser {
|
||||||
use serde::ser::{Serialize, SerializeMap, SerializeSeq};
|
use serde::ser::{Serialize, SerializeMap, SerializeSeq};
|
||||||
use serde_json::Value;
|
use serde_json::Value;
|
||||||
|
|
||||||
const ORDERED_KEYWORDS_START: [&str; 6] =
|
// The order of properties in a JSON Schema object is insignificant, but we explicitly order
|
||||||
["$id", "$schema", "title", "description", "type", "format"];
|
// some of them here to make them easier for a human to read.
|
||||||
|
const ORDERED_KEYWORDS_START: [&str; 7] = [
|
||||||
|
"$id",
|
||||||
|
"$schema",
|
||||||
|
"title",
|
||||||
|
"description",
|
||||||
|
"type",
|
||||||
|
"format",
|
||||||
|
"properties",
|
||||||
|
];
|
||||||
const ORDERED_KEYWORDS_END: [&str; 2] = ["$defs", "definitions"];
|
const ORDERED_KEYWORDS_END: [&str; 2] = ["$defs", "definitions"];
|
||||||
|
|
||||||
pub(super) struct OrderedKeywordWrapper<'a>(pub &'a Value);
|
pub(super) struct OrderedKeywordWrapper<'a>(pub &'a Value);
|
||||||
|
|
|
@ -2,10 +2,6 @@
|
||||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||||
"title": "MyContainer",
|
"title": "MyContainer",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"associated",
|
|
||||||
"generic"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"associated": {
|
"associated": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
|
@ -13,5 +9,9 @@
|
||||||
"generic": {
|
"generic": {
|
||||||
"type": "null"
|
"type": "null"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"required": [
|
||||||
|
"associated",
|
||||||
|
"generic"
|
||||||
|
]
|
||||||
}
|
}
|
|
@ -2,26 +2,7 @@
|
||||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||||
"title": "ChronoTypes",
|
"title": "ChronoTypes",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"date_time",
|
|
||||||
"naive_date",
|
|
||||||
"naive_date_time",
|
|
||||||
"naive_time",
|
|
||||||
"weekday"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"weekday": {
|
|
||||||
"type": "string",
|
|
||||||
"enum": [
|
|
||||||
"Mon",
|
|
||||||
"Tue",
|
|
||||||
"Wed",
|
|
||||||
"Thu",
|
|
||||||
"Fri",
|
|
||||||
"Sat",
|
|
||||||
"Sun"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"date_time": {
|
"date_time": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"format": "date-time"
|
"format": "date-time"
|
||||||
|
@ -37,6 +18,25 @@
|
||||||
"naive_time": {
|
"naive_time": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"format": "partial-date-time"
|
"format": "partial-date-time"
|
||||||
|
},
|
||||||
|
"weekday": {
|
||||||
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"Mon",
|
||||||
|
"Tue",
|
||||||
|
"Wed",
|
||||||
|
"Thu",
|
||||||
|
"Fri",
|
||||||
|
"Sat",
|
||||||
|
"Sun"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"required": [
|
||||||
|
"date_time",
|
||||||
|
"naive_date",
|
||||||
|
"naive_date_time",
|
||||||
|
"naive_time",
|
||||||
|
"weekday"
|
||||||
|
]
|
||||||
}
|
}
|
|
@ -2,18 +2,18 @@
|
||||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||||
"title": "Struct",
|
"title": "Struct",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"bar",
|
|
||||||
"foo"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
|
"bar": {
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
"foo": {
|
"foo": {
|
||||||
"description": "This is a document",
|
"description": "This is a document",
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"format": "int32"
|
"format": "int32"
|
||||||
},
|
|
||||||
"bar": {
|
|
||||||
"type": "boolean"
|
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"required": [
|
||||||
|
"bar",
|
||||||
|
"foo"
|
||||||
|
]
|
||||||
}
|
}
|
|
@ -3,22 +3,22 @@
|
||||||
"title": "MyStruct",
|
"title": "MyStruct",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"my_int": {
|
|
||||||
"default": 0,
|
|
||||||
"type": "integer",
|
|
||||||
"format": "int32"
|
|
||||||
},
|
|
||||||
"my_bool": {
|
"my_bool": {
|
||||||
"default": false,
|
"type": "boolean",
|
||||||
"type": "boolean"
|
"default": false
|
||||||
|
},
|
||||||
|
"my_int": {
|
||||||
|
"type": "integer",
|
||||||
|
"format": "int32",
|
||||||
|
"default": 0
|
||||||
},
|
},
|
||||||
"my_struct2": {
|
"my_struct2": {
|
||||||
"default": "i:0 b:false",
|
|
||||||
"allOf": [
|
"allOf": [
|
||||||
{
|
{
|
||||||
"$ref": "#/definitions/MyStruct2"
|
"$ref": "#/definitions/MyStruct2"
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
|
"default": "i:0 b:false"
|
||||||
},
|
},
|
||||||
"my_struct2_default_skipped": {
|
"my_struct2_default_skipped": {
|
||||||
"$ref": "#/definitions/MyStruct2"
|
"$ref": "#/definitions/MyStruct2"
|
||||||
|
@ -31,14 +31,14 @@
|
||||||
"MyStruct2": {
|
"MyStruct2": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"my_int": {
|
|
||||||
"default": 6,
|
|
||||||
"type": "integer",
|
|
||||||
"format": "int32"
|
|
||||||
},
|
|
||||||
"my_bool": {
|
"my_bool": {
|
||||||
"default": true,
|
"type": "boolean",
|
||||||
"type": "boolean"
|
"default": true
|
||||||
|
},
|
||||||
|
"my_int": {
|
||||||
|
"type": "integer",
|
||||||
|
"format": "int32",
|
||||||
|
"default": 6
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -10,38 +10,38 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"deprecated": true,
|
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
"deprecated": true,
|
||||||
"enum": [
|
"enum": [
|
||||||
"DeprecatedUnitVariant"
|
"DeprecatedUnitVariant"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"deprecated": true,
|
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"DeprecatedStructVariant"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"DeprecatedStructVariant": {
|
"DeprecatedStructVariant": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"deprecated_field",
|
|
||||||
"foo"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"deprecated_field": {
|
"deprecated_field": {
|
||||||
"deprecated": true,
|
"type": "boolean",
|
||||||
"type": "boolean"
|
"deprecated": true
|
||||||
},
|
},
|
||||||
"foo": {
|
"foo": {
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"format": "int32"
|
"format": "int32"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"required": [
|
||||||
|
"deprecated_field",
|
||||||
|
"foo"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"additionalProperties": false
|
"additionalProperties": false,
|
||||||
|
"deprecated": true,
|
||||||
|
"required": [
|
||||||
|
"DeprecatedStructVariant"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
|
@ -1,20 +1,20 @@
|
||||||
{
|
{
|
||||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||||
"title": "DeprecatedStruct",
|
"title": "DeprecatedStruct",
|
||||||
"deprecated": true,
|
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"deprecated_field",
|
|
||||||
"foo"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
|
"deprecated_field": {
|
||||||
|
"type": "boolean",
|
||||||
|
"deprecated": true
|
||||||
|
},
|
||||||
"foo": {
|
"foo": {
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"format": "int32"
|
"format": "int32"
|
||||||
},
|
|
||||||
"deprecated_field": {
|
|
||||||
"deprecated": true,
|
|
||||||
"type": "boolean"
|
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"deprecated": true,
|
||||||
|
"required": [
|
||||||
|
"deprecated_field",
|
||||||
|
"foo"
|
||||||
|
]
|
||||||
}
|
}
|
|
@ -21,9 +21,6 @@
|
||||||
"title": "Complex variant",
|
"title": "Complex variant",
|
||||||
"description": "This is a struct-like variant.",
|
"description": "This is a struct-like variant.",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"Complex"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"Complex": {
|
"Complex": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
|
@ -39,7 +36,10 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"additionalProperties": false
|
"additionalProperties": false,
|
||||||
|
"required": [
|
||||||
|
"Complex"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
|
@ -3,10 +3,6 @@
|
||||||
"title": "OverrideDocs struct",
|
"title": "OverrideDocs struct",
|
||||||
"description": "New description",
|
"description": "New description",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"my_int",
|
|
||||||
"my_undocumented_bool"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"my_int": {
|
"my_int": {
|
||||||
"title": "My integer",
|
"title": "My integer",
|
||||||
|
@ -17,5 +13,9 @@
|
||||||
"my_undocumented_bool": {
|
"my_undocumented_bool": {
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"required": [
|
||||||
|
"my_int",
|
||||||
|
"my_undocumented_bool"
|
||||||
|
]
|
||||||
}
|
}
|
|
@ -3,11 +3,6 @@
|
||||||
"title": "This is the struct's title",
|
"title": "This is the struct's title",
|
||||||
"description": "This is the struct's description.",
|
"description": "This is the struct's description.",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"my_int",
|
|
||||||
"my_undocumented_bool",
|
|
||||||
"my_unit"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"my_int": {
|
"my_int": {
|
||||||
"title": "An integer",
|
"title": "An integer",
|
||||||
|
@ -26,6 +21,11 @@
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"required": [
|
||||||
|
"my_int",
|
||||||
|
"my_undocumented_bool",
|
||||||
|
"my_unit"
|
||||||
|
],
|
||||||
"definitions": {
|
"definitions": {
|
||||||
"MyUnitStruct": {
|
"MyUnitStruct": {
|
||||||
"title": "A Unit",
|
"title": "A Unit",
|
||||||
|
|
|
@ -3,11 +3,6 @@
|
||||||
"title": "This is the struct's title",
|
"title": "This is the struct's title",
|
||||||
"description": "This is the struct's description.",
|
"description": "This is the struct's description.",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"my_int",
|
|
||||||
"my_undocumented_bool",
|
|
||||||
"my_unit"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"my_int": {
|
"my_int": {
|
||||||
"title": "An integer",
|
"title": "An integer",
|
||||||
|
@ -22,6 +17,11 @@
|
||||||
"$ref": "#/definitions/MyUnitStruct"
|
"$ref": "#/definitions/MyUnitStruct"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"required": [
|
||||||
|
"my_int",
|
||||||
|
"my_undocumented_bool",
|
||||||
|
"my_unit"
|
||||||
|
],
|
||||||
"definitions": {
|
"definitions": {
|
||||||
"MyUnitStruct": {
|
"MyUnitStruct": {
|
||||||
"title": "A Unit",
|
"title": "A Unit",
|
||||||
|
|
|
@ -2,10 +2,6 @@
|
||||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||||
"title": "MyStruct",
|
"title": "MyStruct",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"duration",
|
|
||||||
"time"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"duration": {
|
"duration": {
|
||||||
"$ref": "#/definitions/Duration"
|
"$ref": "#/definitions/Duration"
|
||||||
|
@ -14,44 +10,48 @@
|
||||||
"$ref": "#/definitions/SystemTime"
|
"$ref": "#/definitions/SystemTime"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"required": [
|
||||||
|
"duration",
|
||||||
|
"time"
|
||||||
|
],
|
||||||
"definitions": {
|
"definitions": {
|
||||||
"Duration": {
|
"Duration": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"nanos",
|
|
||||||
"secs"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"secs": {
|
|
||||||
"type": "integer",
|
|
||||||
"format": "uint64",
|
|
||||||
"minimum": 0.0
|
|
||||||
},
|
|
||||||
"nanos": {
|
"nanos": {
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"format": "uint32",
|
"format": "uint32",
|
||||||
"minimum": 0.0
|
"minimum": 0.0
|
||||||
}
|
},
|
||||||
}
|
"secs": {
|
||||||
},
|
|
||||||
"SystemTime": {
|
|
||||||
"type": "object",
|
|
||||||
"required": [
|
|
||||||
"nanos_since_epoch",
|
|
||||||
"secs_since_epoch"
|
|
||||||
],
|
|
||||||
"properties": {
|
|
||||||
"secs_since_epoch": {
|
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"format": "uint64",
|
"format": "uint64",
|
||||||
"minimum": 0.0
|
"minimum": 0.0
|
||||||
},
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"nanos",
|
||||||
|
"secs"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"SystemTime": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
"nanos_since_epoch": {
|
"nanos_since_epoch": {
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"format": "uint32",
|
"format": "uint32",
|
||||||
"minimum": 0.0
|
"minimum": 0.0
|
||||||
|
},
|
||||||
|
"secs_since_epoch": {
|
||||||
|
"type": "integer",
|
||||||
|
"format": "uint64",
|
||||||
|
"minimum": 0.0
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"required": [
|
||||||
|
"nanos_since_epoch",
|
||||||
|
"secs_since_epoch"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -4,9 +4,6 @@
|
||||||
"oneOf": [
|
"oneOf": [
|
||||||
{
|
{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"t"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"t": {
|
"t": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
@ -15,14 +12,13 @@
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"additionalProperties": false
|
"additionalProperties": false,
|
||||||
|
"required": [
|
||||||
|
"t"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"c",
|
|
||||||
"t"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"c": {
|
"c": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
|
@ -37,14 +33,14 @@
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"additionalProperties": false
|
"additionalProperties": false,
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "object",
|
|
||||||
"required": [
|
"required": [
|
||||||
"c",
|
"c",
|
||||||
"t"
|
"t"
|
||||||
],
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"c": {
|
"c": {
|
||||||
"$ref": "#/definitions/UnitStruct"
|
"$ref": "#/definitions/UnitStruct"
|
||||||
|
@ -56,14 +52,14 @@
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"additionalProperties": false
|
"additionalProperties": false,
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "object",
|
|
||||||
"required": [
|
"required": [
|
||||||
"c",
|
"c",
|
||||||
"t"
|
"t"
|
||||||
],
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"c": {
|
"c": {
|
||||||
"$ref": "#/definitions/Struct"
|
"$ref": "#/definitions/Struct"
|
||||||
|
@ -75,21 +71,17 @@
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"additionalProperties": false
|
"additionalProperties": false,
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "object",
|
|
||||||
"required": [
|
"required": [
|
||||||
"c",
|
"c",
|
||||||
"t"
|
"t"
|
||||||
],
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"c": {
|
"c": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"bar",
|
|
||||||
"foo"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"bar": {
|
"bar": {
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
|
@ -99,7 +91,11 @@
|
||||||
"format": "int32"
|
"format": "int32"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"additionalProperties": false
|
"additionalProperties": false,
|
||||||
|
"required": [
|
||||||
|
"bar",
|
||||||
|
"foo"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"t": {
|
"t": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
@ -108,14 +104,14 @@
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"additionalProperties": false
|
"additionalProperties": false,
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "object",
|
|
||||||
"required": [
|
"required": [
|
||||||
"c",
|
"c",
|
||||||
"t"
|
"t"
|
||||||
],
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"c": {
|
"c": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
|
@ -138,13 +134,14 @@
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"additionalProperties": false
|
"additionalProperties": false,
|
||||||
|
"required": [
|
||||||
|
"c",
|
||||||
|
"t"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"t"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"t": {
|
"t": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
@ -153,14 +150,13 @@
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"additionalProperties": false
|
"additionalProperties": false,
|
||||||
|
"required": [
|
||||||
|
"t"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"c",
|
|
||||||
"t"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"c": {
|
"c": {
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
|
@ -173,16 +169,16 @@
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"additionalProperties": false
|
"additionalProperties": false,
|
||||||
|
"required": [
|
||||||
|
"c",
|
||||||
|
"t"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"definitions": {
|
"definitions": {
|
||||||
"Struct": {
|
"Struct": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"bar",
|
|
||||||
"foo"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"bar": {
|
"bar": {
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
|
@ -191,7 +187,11 @@
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"format": "int32"
|
"format": "int32"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"required": [
|
||||||
|
"bar",
|
||||||
|
"foo"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"UnitStruct": {
|
"UnitStruct": {
|
||||||
"type": "null"
|
"type": "null"
|
||||||
|
|
|
@ -4,9 +4,6 @@
|
||||||
"oneOf": [
|
"oneOf": [
|
||||||
{
|
{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"t"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"t": {
|
"t": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
@ -14,14 +11,13 @@
|
||||||
"UnitOne"
|
"UnitOne"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"required": [
|
||||||
|
"t"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"c",
|
|
||||||
"t"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"c": {
|
"c": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
|
@ -35,14 +31,14 @@
|
||||||
"StringMap"
|
"StringMap"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "object",
|
|
||||||
"required": [
|
"required": [
|
||||||
"c",
|
"c",
|
||||||
"t"
|
"t"
|
||||||
],
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"c": {
|
"c": {
|
||||||
"$ref": "#/definitions/UnitStruct"
|
"$ref": "#/definitions/UnitStruct"
|
||||||
|
@ -53,14 +49,14 @@
|
||||||
"UnitStructNewType"
|
"UnitStructNewType"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "object",
|
|
||||||
"required": [
|
"required": [
|
||||||
"c",
|
"c",
|
||||||
"t"
|
"t"
|
||||||
],
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"c": {
|
"c": {
|
||||||
"$ref": "#/definitions/Struct"
|
"$ref": "#/definitions/Struct"
|
||||||
|
@ -71,21 +67,17 @@
|
||||||
"StructNewType"
|
"StructNewType"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "object",
|
|
||||||
"required": [
|
"required": [
|
||||||
"c",
|
"c",
|
||||||
"t"
|
"t"
|
||||||
],
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"c": {
|
"c": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"bar",
|
|
||||||
"foo"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"bar": {
|
"bar": {
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
|
@ -94,7 +86,11 @@
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"format": "int32"
|
"format": "int32"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"required": [
|
||||||
|
"bar",
|
||||||
|
"foo"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"t": {
|
"t": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
@ -102,14 +98,14 @@
|
||||||
"Struct"
|
"Struct"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "object",
|
|
||||||
"required": [
|
"required": [
|
||||||
"c",
|
"c",
|
||||||
"t"
|
"t"
|
||||||
],
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"c": {
|
"c": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
|
@ -131,13 +127,14 @@
|
||||||
"Tuple"
|
"Tuple"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"required": [
|
||||||
|
"c",
|
||||||
|
"t"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"t"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"t": {
|
"t": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
@ -145,14 +142,13 @@
|
||||||
"UnitTwo"
|
"UnitTwo"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"required": [
|
||||||
|
"t"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"c",
|
|
||||||
"t"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"c": {
|
"c": {
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
|
@ -164,16 +160,16 @@
|
||||||
"WithInt"
|
"WithInt"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"required": [
|
||||||
|
"c",
|
||||||
|
"t"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"definitions": {
|
"definitions": {
|
||||||
"Struct": {
|
"Struct": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"bar",
|
|
||||||
"foo"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"bar": {
|
"bar": {
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
|
@ -182,7 +178,11 @@
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"format": "int32"
|
"format": "int32"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"required": [
|
||||||
|
"bar",
|
||||||
|
"foo"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"UnitStruct": {
|
"UnitStruct": {
|
||||||
"type": "null"
|
"type": "null"
|
||||||
|
|
|
@ -11,9 +11,6 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"stringMap"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"stringMap": {
|
"stringMap": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
|
@ -22,44 +19,40 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"additionalProperties": false
|
"additionalProperties": false,
|
||||||
|
"required": [
|
||||||
|
"stringMap"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"unitStructNewType"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"unitStructNewType": {
|
"unitStructNewType": {
|
||||||
"$ref": "#/definitions/UnitStruct"
|
"$ref": "#/definitions/UnitStruct"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"additionalProperties": false
|
"additionalProperties": false,
|
||||||
|
"required": [
|
||||||
|
"unitStructNewType"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"structNewType"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"structNewType": {
|
"structNewType": {
|
||||||
"$ref": "#/definitions/Struct"
|
"$ref": "#/definitions/Struct"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"additionalProperties": false
|
"additionalProperties": false,
|
||||||
|
"required": [
|
||||||
|
"structNewType"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"struct"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"struct": {
|
"struct": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"bar",
|
|
||||||
"foo"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"bar": {
|
"bar": {
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
|
@ -69,16 +62,20 @@
|
||||||
"format": "int32"
|
"format": "int32"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"additionalProperties": false
|
"additionalProperties": false,
|
||||||
|
"required": [
|
||||||
|
"bar",
|
||||||
|
"foo"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"additionalProperties": false
|
"additionalProperties": false,
|
||||||
|
"required": [
|
||||||
|
"struct"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"tuple"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"tuple": {
|
"tuple": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
|
@ -95,29 +92,28 @@
|
||||||
"minItems": 2
|
"minItems": 2
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"additionalProperties": false
|
"additionalProperties": false,
|
||||||
|
"required": [
|
||||||
|
"tuple"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"withInt"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"withInt": {
|
"withInt": {
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"format": "int32"
|
"format": "int32"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"additionalProperties": false
|
"additionalProperties": false,
|
||||||
|
"required": [
|
||||||
|
"withInt"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"definitions": {
|
"definitions": {
|
||||||
"Struct": {
|
"Struct": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"bar",
|
|
||||||
"foo"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"bar": {
|
"bar": {
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
|
@ -126,7 +122,11 @@
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"format": "int32"
|
"format": "int32"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"required": [
|
||||||
|
"bar",
|
||||||
|
"foo"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"UnitStruct": {
|
"UnitStruct": {
|
||||||
"type": "null"
|
"type": "null"
|
||||||
|
|
|
@ -11,9 +11,6 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"stringMap"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"stringMap": {
|
"stringMap": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
|
@ -22,44 +19,40 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"additionalProperties": false
|
"additionalProperties": false,
|
||||||
|
"required": [
|
||||||
|
"stringMap"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"unitStructNewType"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"unitStructNewType": {
|
"unitStructNewType": {
|
||||||
"$ref": "#/definitions/UnitStruct"
|
"$ref": "#/definitions/UnitStruct"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"additionalProperties": false
|
"additionalProperties": false,
|
||||||
|
"required": [
|
||||||
|
"unitStructNewType"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"structNewType"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"structNewType": {
|
"structNewType": {
|
||||||
"$ref": "#/definitions/Struct"
|
"$ref": "#/definitions/Struct"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"additionalProperties": false
|
"additionalProperties": false,
|
||||||
|
"required": [
|
||||||
|
"structNewType"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"struct"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"struct": {
|
"struct": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"bar",
|
|
||||||
"foo"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"bar": {
|
"bar": {
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
|
@ -68,16 +61,20 @@
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"format": "int32"
|
"format": "int32"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"required": [
|
||||||
|
"bar",
|
||||||
|
"foo"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"additionalProperties": false
|
"additionalProperties": false,
|
||||||
|
"required": [
|
||||||
|
"struct"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"tuple"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"tuple": {
|
"tuple": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
|
@ -94,29 +91,28 @@
|
||||||
"minItems": 2
|
"minItems": 2
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"additionalProperties": false
|
"additionalProperties": false,
|
||||||
|
"required": [
|
||||||
|
"tuple"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"withInt"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"withInt": {
|
"withInt": {
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"format": "int32"
|
"format": "int32"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"additionalProperties": false
|
"additionalProperties": false,
|
||||||
|
"required": [
|
||||||
|
"withInt"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"definitions": {
|
"definitions": {
|
||||||
"Struct": {
|
"Struct": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"bar",
|
|
||||||
"foo"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"bar": {
|
"bar": {
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
|
@ -125,7 +121,11 @@
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"format": "int32"
|
"format": "int32"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"required": [
|
||||||
|
"bar",
|
||||||
|
"foo"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"UnitStruct": {
|
"UnitStruct": {
|
||||||
"type": "null"
|
"type": "null"
|
||||||
|
|
|
@ -4,9 +4,6 @@
|
||||||
"oneOf": [
|
"oneOf": [
|
||||||
{
|
{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"typeProperty"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"typeProperty": {
|
"typeProperty": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
@ -15,13 +12,13 @@
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"additionalProperties": false
|
"additionalProperties": false,
|
||||||
|
"required": [
|
||||||
|
"typeProperty"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"typeProperty"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"typeProperty": {
|
"typeProperty": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
@ -32,13 +29,13 @@
|
||||||
},
|
},
|
||||||
"additionalProperties": {
|
"additionalProperties": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
}
|
},
|
||||||
|
"required": [
|
||||||
|
"typeProperty"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"typeProperty"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"typeProperty": {
|
"typeProperty": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
@ -47,15 +44,13 @@
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"additionalProperties": false
|
"additionalProperties": false,
|
||||||
|
"required": [
|
||||||
|
"typeProperty"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"bar",
|
|
||||||
"foo",
|
|
||||||
"typeProperty"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"bar": {
|
"bar": {
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
|
@ -70,15 +65,15 @@
|
||||||
"StructNewType"
|
"StructNewType"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "object",
|
|
||||||
"required": [
|
"required": [
|
||||||
"bar",
|
"bar",
|
||||||
"foo",
|
"foo",
|
||||||
"typeProperty"
|
"typeProperty"
|
||||||
],
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"bar": {
|
"bar": {
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
|
@ -94,13 +89,15 @@
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"additionalProperties": false
|
"additionalProperties": false,
|
||||||
|
"required": [
|
||||||
|
"bar",
|
||||||
|
"foo",
|
||||||
|
"typeProperty"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"typeProperty"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"typeProperty": {
|
"typeProperty": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
@ -109,14 +106,14 @@
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"additionalProperties": false
|
"additionalProperties": false,
|
||||||
|
"required": [
|
||||||
|
"typeProperty"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"format": "int32",
|
"format": "int32",
|
||||||
"required": [
|
|
||||||
"typeProperty"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"typeProperty": {
|
"typeProperty": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
@ -124,7 +121,10 @@
|
||||||
"WithInt"
|
"WithInt"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"required": [
|
||||||
|
"typeProperty"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
|
@ -4,9 +4,6 @@
|
||||||
"oneOf": [
|
"oneOf": [
|
||||||
{
|
{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"typeProperty"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"typeProperty": {
|
"typeProperty": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
@ -14,13 +11,13 @@
|
||||||
"UnitOne"
|
"UnitOne"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"required": [
|
||||||
|
"typeProperty"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"typeProperty"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"typeProperty": {
|
"typeProperty": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
@ -31,13 +28,13 @@
|
||||||
},
|
},
|
||||||
"additionalProperties": {
|
"additionalProperties": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
}
|
},
|
||||||
|
"required": [
|
||||||
|
"typeProperty"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"typeProperty"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"typeProperty": {
|
"typeProperty": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
@ -45,15 +42,13 @@
|
||||||
"UnitStructNewType"
|
"UnitStructNewType"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"required": [
|
||||||
|
"typeProperty"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"bar",
|
|
||||||
"foo",
|
|
||||||
"typeProperty"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"bar": {
|
"bar": {
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
|
@ -68,15 +63,15 @@
|
||||||
"StructNewType"
|
"StructNewType"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "object",
|
|
||||||
"required": [
|
"required": [
|
||||||
"bar",
|
"bar",
|
||||||
"foo",
|
"foo",
|
||||||
"typeProperty"
|
"typeProperty"
|
||||||
],
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"bar": {
|
"bar": {
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
|
@ -91,13 +86,15 @@
|
||||||
"Struct"
|
"Struct"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"required": [
|
||||||
|
"bar",
|
||||||
|
"foo",
|
||||||
|
"typeProperty"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"typeProperty"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"typeProperty": {
|
"typeProperty": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
@ -105,14 +102,14 @@
|
||||||
"UnitTwo"
|
"UnitTwo"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"required": [
|
||||||
|
"typeProperty"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"format": "int32",
|
"format": "int32",
|
||||||
"required": [
|
|
||||||
"typeProperty"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"typeProperty": {
|
"typeProperty": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
@ -120,7 +117,10 @@
|
||||||
"WithInt"
|
"WithInt"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"required": [
|
||||||
|
"typeProperty"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
|
@ -4,9 +4,6 @@
|
||||||
"oneOf": [
|
"oneOf": [
|
||||||
{
|
{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"typeProperty"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"typeProperty": {
|
"typeProperty": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
@ -15,13 +12,13 @@
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"additionalProperties": false
|
"additionalProperties": false,
|
||||||
|
"required": [
|
||||||
|
"typeProperty"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"typeProperty"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"typeProperty": {
|
"typeProperty": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
@ -30,13 +27,13 @@
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"additionalProperties": false
|
"additionalProperties": false,
|
||||||
|
"required": [
|
||||||
|
"typeProperty"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"typeProperty"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"typeProperty": {
|
"typeProperty": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
@ -45,7 +42,10 @@
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"additionalProperties": false
|
"additionalProperties": false,
|
||||||
|
"required": [
|
||||||
|
"typeProperty"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
|
@ -4,9 +4,6 @@
|
||||||
"oneOf": [
|
"oneOf": [
|
||||||
{
|
{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"typeProperty"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"typeProperty": {
|
"typeProperty": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
@ -14,13 +11,13 @@
|
||||||
"A"
|
"A"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"required": [
|
||||||
|
"typeProperty"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"typeProperty"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"typeProperty": {
|
"typeProperty": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
@ -28,13 +25,13 @@
|
||||||
"B"
|
"B"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"required": [
|
||||||
|
"typeProperty"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"typeProperty"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"typeProperty": {
|
"typeProperty": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
@ -42,7 +39,10 @@
|
||||||
"C"
|
"C"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"required": [
|
||||||
|
"typeProperty"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
|
@ -19,20 +19,20 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"bar",
|
|
||||||
"foo"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
|
"bar": {
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
"foo": {
|
"foo": {
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"format": "int32"
|
"format": "int32"
|
||||||
},
|
|
||||||
"bar": {
|
|
||||||
"type": "boolean"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"additionalProperties": false
|
"additionalProperties": false,
|
||||||
|
"required": [
|
||||||
|
"bar",
|
||||||
|
"foo"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "array",
|
"type": "array",
|
||||||
|
@ -54,24 +54,24 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"definitions": {
|
"definitions": {
|
||||||
"UnitStruct": {
|
|
||||||
"type": "null"
|
|
||||||
},
|
|
||||||
"Struct": {
|
"Struct": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"bar",
|
|
||||||
"foo"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
|
"bar": {
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
"foo": {
|
"foo": {
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"format": "int32"
|
"format": "int32"
|
||||||
},
|
|
||||||
"bar": {
|
|
||||||
"type": "boolean"
|
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"required": [
|
||||||
|
"bar",
|
||||||
|
"foo"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"UnitStruct": {
|
||||||
|
"type": "null"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -19,19 +19,19 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"bar",
|
|
||||||
"foo"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
|
"bar": {
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
"foo": {
|
"foo": {
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"format": "int32"
|
"format": "int32"
|
||||||
},
|
|
||||||
"bar": {
|
|
||||||
"type": "boolean"
|
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"required": [
|
||||||
|
"bar",
|
||||||
|
"foo"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "array",
|
"type": "array",
|
||||||
|
@ -53,24 +53,24 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"definitions": {
|
"definitions": {
|
||||||
"UnitStruct": {
|
|
||||||
"type": "null"
|
|
||||||
},
|
|
||||||
"Struct": {
|
"Struct": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"bar",
|
|
||||||
"foo"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
|
"bar": {
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
"foo": {
|
"foo": {
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"format": "int32"
|
"format": "int32"
|
||||||
},
|
|
||||||
"bar": {
|
|
||||||
"type": "boolean"
|
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"required": [
|
||||||
|
"bar",
|
||||||
|
"foo"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"UnitStruct": {
|
||||||
|
"type": "null"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -1,6 +1,29 @@
|
||||||
{
|
{
|
||||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||||
"title": "Struct",
|
"title": "Struct",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"bar": {
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"baz": {
|
||||||
|
"type": [
|
||||||
|
"string",
|
||||||
|
"null"
|
||||||
|
],
|
||||||
|
"examples": [
|
||||||
|
null
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"foo": {
|
||||||
|
"type": "integer",
|
||||||
|
"format": "int32",
|
||||||
|
"examples": [
|
||||||
|
8,
|
||||||
|
null
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
"examples": [
|
"examples": [
|
||||||
{
|
{
|
||||||
"bar": false,
|
"bar": false,
|
||||||
|
@ -9,31 +32,8 @@
|
||||||
},
|
},
|
||||||
null
|
null
|
||||||
],
|
],
|
||||||
"type": "object",
|
|
||||||
"required": [
|
"required": [
|
||||||
"bar",
|
"bar",
|
||||||
"foo"
|
"foo"
|
||||||
],
|
]
|
||||||
"properties": {
|
|
||||||
"foo": {
|
|
||||||
"examples": [
|
|
||||||
8,
|
|
||||||
null
|
|
||||||
],
|
|
||||||
"type": "integer",
|
|
||||||
"format": "int32"
|
|
||||||
},
|
|
||||||
"bar": {
|
|
||||||
"type": "boolean"
|
|
||||||
},
|
|
||||||
"baz": {
|
|
||||||
"examples": [
|
|
||||||
null
|
|
||||||
],
|
|
||||||
"type": [
|
|
||||||
"string",
|
|
||||||
"null"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
|
@ -2,27 +2,21 @@
|
||||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||||
"title": "Flat",
|
"title": "Flat",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"b",
|
|
||||||
"f",
|
|
||||||
"s",
|
|
||||||
"v"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
|
"b": {
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
"f": {
|
"f": {
|
||||||
"type": "number",
|
"type": "number",
|
||||||
"format": "float"
|
"format": "float"
|
||||||
},
|
},
|
||||||
"b": {
|
"os": {
|
||||||
"type": "boolean"
|
"type": "string",
|
||||||
|
"default": ""
|
||||||
},
|
},
|
||||||
"s": {
|
"s": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"os": {
|
|
||||||
"default": "",
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"v": {
|
"v": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
|
@ -30,5 +24,11 @@
|
||||||
"format": "int32"
|
"format": "int32"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"required": [
|
||||||
|
"b",
|
||||||
|
"f",
|
||||||
|
"s",
|
||||||
|
"v"
|
||||||
|
]
|
||||||
}
|
}
|
|
@ -1,21 +1,5 @@
|
||||||
{
|
{
|
||||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||||
"examples": [
|
|
||||||
{
|
|
||||||
"bool": true,
|
|
||||||
"minusOne": -1,
|
|
||||||
"null": null,
|
|
||||||
"object": {
|
|
||||||
"array": [
|
|
||||||
"foo",
|
|
||||||
"bar"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"one": 1,
|
|
||||||
"zero": 0,
|
|
||||||
"zeroPointZero": 0.0
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"bool": {
|
"bool": {
|
||||||
|
@ -45,5 +29,21 @@
|
||||||
"zeroPointZero": {
|
"zeroPointZero": {
|
||||||
"type": "number"
|
"type": "number"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"examples": [
|
||||||
|
{
|
||||||
|
"bool": true,
|
||||||
|
"minusOne": -1,
|
||||||
|
"null": null,
|
||||||
|
"object": {
|
||||||
|
"array": [
|
||||||
|
"foo",
|
||||||
|
"bar"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"one": 1,
|
||||||
|
"zero": 0,
|
||||||
|
"zeroPointZero": 0.0
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
|
@ -1,6 +1,56 @@
|
||||||
{
|
{
|
||||||
"$schema": "https://json-schema.org/draft/2019-09/schema",
|
"$schema": "https://json-schema.org/draft/2019-09/schema",
|
||||||
"title": "MyStruct",
|
"title": "MyStruct",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"myBool": {
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"myInnerStruct": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"my_empty_map": {
|
||||||
|
"type": "object",
|
||||||
|
"additionalProperties": true
|
||||||
|
},
|
||||||
|
"my_empty_vec": {
|
||||||
|
"type": "array",
|
||||||
|
"items": true
|
||||||
|
},
|
||||||
|
"my_map": {
|
||||||
|
"type": "object",
|
||||||
|
"additionalProperties": {
|
||||||
|
"type": "number"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"my_tuple": {
|
||||||
|
"type": "array",
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"type": "string",
|
||||||
|
"maxLength": 1,
|
||||||
|
"minLength": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "integer"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"maxItems": 2,
|
||||||
|
"minItems": 2
|
||||||
|
},
|
||||||
|
"my_vec": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"myInt": {
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
|
"myNullableEnum": true
|
||||||
|
},
|
||||||
"examples": [
|
"examples": [
|
||||||
{
|
{
|
||||||
"myBool": true,
|
"myBool": true,
|
||||||
|
@ -22,55 +72,5 @@
|
||||||
"myInt": 123,
|
"myInt": 123,
|
||||||
"myNullableEnum": null
|
"myNullableEnum": null
|
||||||
}
|
}
|
||||||
],
|
]
|
||||||
"type": "object",
|
|
||||||
"properties": {
|
|
||||||
"myInt": {
|
|
||||||
"type": "integer"
|
|
||||||
},
|
|
||||||
"myBool": {
|
|
||||||
"type": "boolean"
|
|
||||||
},
|
|
||||||
"myNullableEnum": true,
|
|
||||||
"myInnerStruct": {
|
|
||||||
"type": "object",
|
|
||||||
"properties": {
|
|
||||||
"my_map": {
|
|
||||||
"type": "object",
|
|
||||||
"additionalProperties": {
|
|
||||||
"type": "number"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"my_vec": {
|
|
||||||
"type": "array",
|
|
||||||
"items": {
|
|
||||||
"type": "string"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"my_empty_map": {
|
|
||||||
"type": "object",
|
|
||||||
"additionalProperties": true
|
|
||||||
},
|
|
||||||
"my_empty_vec": {
|
|
||||||
"type": "array",
|
|
||||||
"items": true
|
|
||||||
},
|
|
||||||
"my_tuple": {
|
|
||||||
"type": "array",
|
|
||||||
"items": [
|
|
||||||
{
|
|
||||||
"type": "string",
|
|
||||||
"maxLength": 1,
|
|
||||||
"minLength": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "integer"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"maxItems": 2,
|
|
||||||
"minItems": 2
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
|
@ -1,6 +1,56 @@
|
||||||
{
|
{
|
||||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||||
"title": "MyStruct",
|
"title": "MyStruct",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"myBool": {
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"myInnerStruct": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"my_empty_map": {
|
||||||
|
"type": "object",
|
||||||
|
"additionalProperties": true
|
||||||
|
},
|
||||||
|
"my_empty_vec": {
|
||||||
|
"type": "array",
|
||||||
|
"items": true
|
||||||
|
},
|
||||||
|
"my_map": {
|
||||||
|
"type": "object",
|
||||||
|
"additionalProperties": {
|
||||||
|
"type": "number"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"my_tuple": {
|
||||||
|
"type": "array",
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"type": "string",
|
||||||
|
"maxLength": 1,
|
||||||
|
"minLength": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "integer"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"maxItems": 2,
|
||||||
|
"minItems": 2
|
||||||
|
},
|
||||||
|
"my_vec": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"myInt": {
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
|
"myNullableEnum": true
|
||||||
|
},
|
||||||
"examples": [
|
"examples": [
|
||||||
{
|
{
|
||||||
"myBool": true,
|
"myBool": true,
|
||||||
|
@ -22,55 +72,5 @@
|
||||||
"myInt": 123,
|
"myInt": 123,
|
||||||
"myNullableEnum": null
|
"myNullableEnum": null
|
||||||
}
|
}
|
||||||
],
|
]
|
||||||
"type": "object",
|
|
||||||
"properties": {
|
|
||||||
"myInt": {
|
|
||||||
"type": "integer"
|
|
||||||
},
|
|
||||||
"myBool": {
|
|
||||||
"type": "boolean"
|
|
||||||
},
|
|
||||||
"myNullableEnum": true,
|
|
||||||
"myInnerStruct": {
|
|
||||||
"type": "object",
|
|
||||||
"properties": {
|
|
||||||
"my_map": {
|
|
||||||
"type": "object",
|
|
||||||
"additionalProperties": {
|
|
||||||
"type": "number"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"my_vec": {
|
|
||||||
"type": "array",
|
|
||||||
"items": {
|
|
||||||
"type": "string"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"my_empty_map": {
|
|
||||||
"type": "object",
|
|
||||||
"additionalProperties": true
|
|
||||||
},
|
|
||||||
"my_empty_vec": {
|
|
||||||
"type": "array",
|
|
||||||
"items": true
|
|
||||||
},
|
|
||||||
"my_tuple": {
|
|
||||||
"type": "array",
|
|
||||||
"items": [
|
|
||||||
{
|
|
||||||
"type": "string",
|
|
||||||
"maxLength": 1,
|
|
||||||
"minLength": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "integer"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"maxItems": 2,
|
|
||||||
"minItems": 2
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
|
@ -2,26 +2,6 @@
|
||||||
"$schema": "https://spec.openapis.org/oas/3.0/schema/2021-09-28#/definitions/Schema",
|
"$schema": "https://spec.openapis.org/oas/3.0/schema/2021-09-28#/definitions/Schema",
|
||||||
"title": "MyStruct",
|
"title": "MyStruct",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"example": {
|
|
||||||
"myBool": true,
|
|
||||||
"myInnerStruct": {
|
|
||||||
"my_empty_map": {},
|
|
||||||
"my_empty_vec": [],
|
|
||||||
"my_map": {
|
|
||||||
"": 0.0
|
|
||||||
},
|
|
||||||
"my_tuple": [
|
|
||||||
"💩",
|
|
||||||
42
|
|
||||||
],
|
|
||||||
"my_vec": [
|
|
||||||
"hello",
|
|
||||||
"world"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"myInt": 123,
|
|
||||||
"myNullableEnum": null
|
|
||||||
},
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"myBool": {
|
"myBool": {
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
|
@ -72,5 +52,25 @@
|
||||||
"myNullableEnum": {
|
"myNullableEnum": {
|
||||||
"nullable": true
|
"nullable": true
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"example": {
|
||||||
|
"myBool": true,
|
||||||
|
"myInnerStruct": {
|
||||||
|
"my_empty_map": {},
|
||||||
|
"my_empty_vec": [],
|
||||||
|
"my_map": {
|
||||||
|
"": 0.0
|
||||||
|
},
|
||||||
|
"my_tuple": [
|
||||||
|
"💩",
|
||||||
|
42
|
||||||
|
],
|
||||||
|
"my_vec": [
|
||||||
|
"hello",
|
||||||
|
"world"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"myInt": 123,
|
||||||
|
"myNullableEnum": null
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -2,10 +2,6 @@
|
||||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||||
"title": "IndexMapTypes",
|
"title": "IndexMapTypes",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"map",
|
|
||||||
"set"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"map": {
|
"map": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
|
@ -21,5 +17,9 @@
|
||||||
},
|
},
|
||||||
"uniqueItems": true
|
"uniqueItems": true
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"required": [
|
||||||
|
"map",
|
||||||
|
"set"
|
||||||
|
]
|
||||||
}
|
}
|
|
@ -18,14 +18,14 @@
|
||||||
"object",
|
"object",
|
||||||
"null"
|
"null"
|
||||||
],
|
],
|
||||||
"required": [
|
|
||||||
"recursive"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"recursive": {
|
"recursive": {
|
||||||
"$ref": "#/definitions/RecursiveOuter"
|
"$ref": "#/definitions/RecursiveOuter"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"required": [
|
||||||
|
"recursive"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"definitions": {
|
"definitions": {
|
||||||
|
@ -47,14 +47,14 @@
|
||||||
"object",
|
"object",
|
||||||
"null"
|
"null"
|
||||||
],
|
],
|
||||||
"required": [
|
|
||||||
"recursive"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"recursive": {
|
"recursive": {
|
||||||
"$ref": "#/definitions/RecursiveOuter"
|
"$ref": "#/definitions/RecursiveOuter"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"required": [
|
||||||
|
"recursive"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,22 +2,22 @@
|
||||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||||
"title": "MyJob",
|
"title": "MyJob",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"spec"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"spec": {
|
"spec": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"replicas"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"replicas": {
|
"replicas": {
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"format": "uint32",
|
"format": "uint32",
|
||||||
"minimum": 0.0
|
"minimum": 0.0
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"required": [
|
||||||
|
"replicas"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"required": [
|
||||||
|
"spec"
|
||||||
|
]
|
||||||
}
|
}
|
|
@ -4,29 +4,29 @@
|
||||||
"oneOf": [
|
"oneOf": [
|
||||||
{
|
{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"InnerStruct"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"InnerStruct": {
|
"InnerStruct": {
|
||||||
"$ref": "#/definitions/InnerStruct"
|
"$ref": "#/definitions/InnerStruct"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"additionalProperties": false
|
"additionalProperties": false,
|
||||||
|
"required": [
|
||||||
|
"InnerStruct"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"definitions": {
|
"definitions": {
|
||||||
"InnerStruct": {
|
"InnerStruct": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"x"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"x": {
|
"x": {
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"format": "int32"
|
"format": "int32"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"required": [
|
||||||
|
"x"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -2,19 +2,19 @@
|
||||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||||
"title": "A",
|
"title": "A",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"v",
|
|
||||||
"x"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
|
"v": {
|
||||||
|
"type": "integer",
|
||||||
|
"format": "int32"
|
||||||
|
},
|
||||||
"x": {
|
"x": {
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"format": "uint8",
|
"format": "uint8",
|
||||||
"minimum": 0.0
|
"minimum": 0.0
|
||||||
},
|
|
||||||
"v": {
|
|
||||||
"type": "integer",
|
|
||||||
"format": "int32"
|
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"required": [
|
||||||
|
"v",
|
||||||
|
"x"
|
||||||
|
]
|
||||||
}
|
}
|
|
@ -2,17 +2,13 @@
|
||||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||||
"title": "MyStruct",
|
"title": "MyStruct",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"nonzero_signed",
|
|
||||||
"nonzero_unsigned",
|
|
||||||
"signed",
|
|
||||||
"unsigned"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"unsigned": {
|
"nonzero_signed": {
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"format": "uint32",
|
"format": "int32",
|
||||||
"minimum": 0.0
|
"not": {
|
||||||
|
"const": 0
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"nonzero_unsigned": {
|
"nonzero_unsigned": {
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
|
@ -23,12 +19,16 @@
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"format": "int32"
|
"format": "int32"
|
||||||
},
|
},
|
||||||
"nonzero_signed": {
|
"unsigned": {
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"format": "int32",
|
"format": "uint32",
|
||||||
"not": {
|
"minimum": 0.0
|
||||||
"const": 0
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"required": [
|
||||||
|
"nonzero_signed",
|
||||||
|
"nonzero_unsigned",
|
||||||
|
"signed",
|
||||||
|
"unsigned"
|
||||||
|
]
|
||||||
}
|
}
|
|
@ -2,26 +2,23 @@
|
||||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||||
"title": "OsStrings",
|
"title": "OsStrings",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"borrowed": {
|
||||||
|
"$ref": "#/definitions/OsString"
|
||||||
|
},
|
||||||
|
"owned": {
|
||||||
|
"$ref": "#/definitions/OsString"
|
||||||
|
}
|
||||||
|
},
|
||||||
"required": [
|
"required": [
|
||||||
"borrowed",
|
"borrowed",
|
||||||
"owned"
|
"owned"
|
||||||
],
|
],
|
||||||
"properties": {
|
|
||||||
"owned": {
|
|
||||||
"$ref": "#/definitions/OsString"
|
|
||||||
},
|
|
||||||
"borrowed": {
|
|
||||||
"$ref": "#/definitions/OsString"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"definitions": {
|
"definitions": {
|
||||||
"OsString": {
|
"OsString": {
|
||||||
"oneOf": [
|
"oneOf": [
|
||||||
{
|
{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"Unix"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"Unix": {
|
"Unix": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
|
@ -31,13 +28,13 @@
|
||||||
"minimum": 0.0
|
"minimum": 0.0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"required": [
|
||||||
|
"Unix"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"Windows"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"Windows": {
|
"Windows": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
|
@ -47,7 +44,10 @@
|
||||||
"minimum": 0.0
|
"minimum": 0.0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"required": [
|
||||||
|
"Windows"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,11 +2,6 @@
|
||||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||||
"title": "MyStruct",
|
"title": "MyStruct",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"camelCase",
|
|
||||||
"new_name_1",
|
|
||||||
"new_name_2"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"camelCase": {
|
"camelCase": {
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
|
@ -20,5 +15,10 @@
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"format": "int32"
|
"format": "int32"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"required": [
|
||||||
|
"camelCase",
|
||||||
|
"new_name_1",
|
||||||
|
"new_name_2"
|
||||||
|
]
|
||||||
}
|
}
|
|
@ -2,88 +2,88 @@
|
||||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||||
"title": "MyStruct",
|
"title": "MyStruct",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"bound": {
|
||||||
|
"$ref": "#/definitions/Bound_of_string"
|
||||||
|
},
|
||||||
|
"inclusive": {
|
||||||
|
"$ref": "#/definitions/Range_of_double"
|
||||||
|
},
|
||||||
|
"range": {
|
||||||
|
"$ref": "#/definitions/Range_of_uint"
|
||||||
|
}
|
||||||
|
},
|
||||||
"required": [
|
"required": [
|
||||||
"bound",
|
"bound",
|
||||||
"inclusive",
|
"inclusive",
|
||||||
"range"
|
"range"
|
||||||
],
|
],
|
||||||
"properties": {
|
|
||||||
"range": {
|
|
||||||
"$ref": "#/definitions/Range_of_uint"
|
|
||||||
},
|
|
||||||
"inclusive": {
|
|
||||||
"$ref": "#/definitions/Range_of_double"
|
|
||||||
},
|
|
||||||
"bound": {
|
|
||||||
"$ref": "#/definitions/Bound_of_string"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"definitions": {
|
"definitions": {
|
||||||
"Range_of_uint": {
|
|
||||||
"type": "object",
|
|
||||||
"required": [
|
|
||||||
"end",
|
|
||||||
"start"
|
|
||||||
],
|
|
||||||
"properties": {
|
|
||||||
"start": {
|
|
||||||
"type": "integer",
|
|
||||||
"format": "uint",
|
|
||||||
"minimum": 0.0
|
|
||||||
},
|
|
||||||
"end": {
|
|
||||||
"type": "integer",
|
|
||||||
"format": "uint",
|
|
||||||
"minimum": 0.0
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"Range_of_double": {
|
|
||||||
"type": "object",
|
|
||||||
"required": [
|
|
||||||
"end",
|
|
||||||
"start"
|
|
||||||
],
|
|
||||||
"properties": {
|
|
||||||
"start": {
|
|
||||||
"type": "number",
|
|
||||||
"format": "double"
|
|
||||||
},
|
|
||||||
"end": {
|
|
||||||
"type": "number",
|
|
||||||
"format": "double"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"Bound_of_string": {
|
"Bound_of_string": {
|
||||||
"oneOf": [
|
"oneOf": [
|
||||||
{
|
{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"Included"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"Included": {
|
"Included": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"required": [
|
||||||
|
"Included"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"Excluded"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"Excluded": {
|
"Excluded": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"required": [
|
||||||
|
"Excluded"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"const": "Unbounded"
|
"const": "Unbounded"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
"Range_of_double": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"end": {
|
||||||
|
"type": "number",
|
||||||
|
"format": "double"
|
||||||
|
},
|
||||||
|
"start": {
|
||||||
|
"type": "number",
|
||||||
|
"format": "double"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"end",
|
||||||
|
"start"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"Range_of_uint": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"end": {
|
||||||
|
"type": "integer",
|
||||||
|
"format": "uint",
|
||||||
|
"minimum": 0.0
|
||||||
|
},
|
||||||
|
"start": {
|
||||||
|
"type": "integer",
|
||||||
|
"format": "uint",
|
||||||
|
"minimum": 0.0
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"end",
|
||||||
|
"start"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -2,54 +2,54 @@
|
||||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||||
"title": "Process",
|
"title": "Process",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"command_line",
|
|
||||||
"wall_time"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"command_line": {
|
"command_line": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"wall_time": {
|
"system_cpu_time": {
|
||||||
"$ref": "#/definitions/Duration"
|
"allOf": [
|
||||||
|
{
|
||||||
|
"$ref": "#/definitions/Duration"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"default": "0.000000000s"
|
||||||
},
|
},
|
||||||
"user_cpu_time": {
|
"user_cpu_time": {
|
||||||
|
"allOf": [
|
||||||
|
{
|
||||||
|
"$ref": "#/definitions/Duration"
|
||||||
|
}
|
||||||
|
],
|
||||||
"default": {
|
"default": {
|
||||||
"nanos": 0,
|
"nanos": 0,
|
||||||
"secs": 0
|
"secs": 0
|
||||||
},
|
}
|
||||||
"allOf": [
|
|
||||||
{
|
|
||||||
"$ref": "#/definitions/Duration"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"system_cpu_time": {
|
"wall_time": {
|
||||||
"default": "0.000000000s",
|
"$ref": "#/definitions/Duration"
|
||||||
"allOf": [
|
|
||||||
{
|
|
||||||
"$ref": "#/definitions/Duration"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"required": [
|
||||||
|
"command_line",
|
||||||
|
"wall_time"
|
||||||
|
],
|
||||||
"definitions": {
|
"definitions": {
|
||||||
"Duration": {
|
"Duration": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"nanos",
|
|
||||||
"secs"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"secs": {
|
|
||||||
"type": "integer",
|
|
||||||
"format": "int64"
|
|
||||||
},
|
|
||||||
"nanos": {
|
"nanos": {
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"format": "int32"
|
"format": "int32"
|
||||||
|
},
|
||||||
|
"secs": {
|
||||||
|
"type": "integer",
|
||||||
|
"format": "int64"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"required": [
|
||||||
|
"nanos",
|
||||||
|
"secs"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -2,22 +2,10 @@
|
||||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||||
"title": "MyStruct_for_int32",
|
"title": "MyStruct_for_int32",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"byte_or_bool2",
|
|
||||||
"fake_map",
|
|
||||||
"s",
|
|
||||||
"unit_or_t2"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"byte_or_bool2": {
|
"byte_or_bool2": {
|
||||||
"$ref": "#/definitions/Or_for_uint8_and_boolean"
|
"$ref": "#/definitions/Or_for_uint8_and_boolean"
|
||||||
},
|
},
|
||||||
"unit_or_t2": {
|
|
||||||
"$ref": "#/definitions/Or_for_null_and_int32"
|
|
||||||
},
|
|
||||||
"s": {
|
|
||||||
"$ref": "#/definitions/Str"
|
|
||||||
},
|
|
||||||
"fake_map": {
|
"fake_map": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"additionalProperties": {
|
"additionalProperties": {
|
||||||
|
@ -27,9 +15,32 @@
|
||||||
},
|
},
|
||||||
"uniqueItems": true
|
"uniqueItems": true
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"s": {
|
||||||
|
"$ref": "#/definitions/Str"
|
||||||
|
},
|
||||||
|
"unit_or_t2": {
|
||||||
|
"$ref": "#/definitions/Or_for_null_and_int32"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"required": [
|
||||||
|
"byte_or_bool2",
|
||||||
|
"fake_map",
|
||||||
|
"s",
|
||||||
|
"unit_or_t2"
|
||||||
|
],
|
||||||
"definitions": {
|
"definitions": {
|
||||||
|
"Or_for_null_and_int32": {
|
||||||
|
"anyOf": [
|
||||||
|
{
|
||||||
|
"type": "null"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "integer",
|
||||||
|
"format": "int32"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
"Or_for_uint8_and_boolean": {
|
"Or_for_uint8_and_boolean": {
|
||||||
"anyOf": [
|
"anyOf": [
|
||||||
{
|
{
|
||||||
|
@ -42,17 +53,6 @@
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"Or_for_null_and_int32": {
|
|
||||||
"anyOf": [
|
|
||||||
{
|
|
||||||
"type": "null"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "integer",
|
|
||||||
"format": "int32"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"Str": {
|
"Str": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,10 +2,6 @@
|
||||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||||
"title": "Container",
|
"title": "Container",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"result1",
|
|
||||||
"result2"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"result1": {
|
"result1": {
|
||||||
"$ref": "#/definitions/Result_of_MyStruct_or_Array_of_string"
|
"$ref": "#/definitions/Result_of_MyStruct_or_Array_of_string"
|
||||||
|
@ -14,25 +10,38 @@
|
||||||
"$ref": "#/definitions/Result_of_boolean_or_null"
|
"$ref": "#/definitions/Result_of_boolean_or_null"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"required": [
|
||||||
|
"result1",
|
||||||
|
"result2"
|
||||||
|
],
|
||||||
"definitions": {
|
"definitions": {
|
||||||
|
"MyStruct": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"foo": {
|
||||||
|
"type": "integer",
|
||||||
|
"format": "int32"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"foo"
|
||||||
|
]
|
||||||
|
},
|
||||||
"Result_of_MyStruct_or_Array_of_string": {
|
"Result_of_MyStruct_or_Array_of_string": {
|
||||||
"oneOf": [
|
"oneOf": [
|
||||||
{
|
{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"Ok"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"Ok": {
|
"Ok": {
|
||||||
"$ref": "#/definitions/MyStruct"
|
"$ref": "#/definitions/MyStruct"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"required": [
|
||||||
|
"Ok"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"Err"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"Err": {
|
"Err": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
|
@ -40,45 +49,36 @@
|
||||||
"type": "string"
|
"type": "string"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"required": [
|
||||||
|
"Err"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"MyStruct": {
|
|
||||||
"type": "object",
|
|
||||||
"required": [
|
|
||||||
"foo"
|
|
||||||
],
|
|
||||||
"properties": {
|
|
||||||
"foo": {
|
|
||||||
"type": "integer",
|
|
||||||
"format": "int32"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"Result_of_boolean_or_null": {
|
"Result_of_boolean_or_null": {
|
||||||
"oneOf": [
|
"oneOf": [
|
||||||
{
|
{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"Ok"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"Ok": {
|
"Ok": {
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"required": [
|
||||||
|
"Ok"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"Err"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"Err": {
|
"Err": {
|
||||||
"type": "null"
|
"type": "null"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"required": [
|
||||||
|
"Err"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,10 +2,6 @@
|
||||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||||
"title": "Config2",
|
"title": "Config2",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"a_cfg",
|
|
||||||
"b_cfg"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"a_cfg": {
|
"a_cfg": {
|
||||||
"$ref": "#/definitions/Config"
|
"$ref": "#/definitions/Config"
|
||||||
|
@ -14,28 +10,32 @@
|
||||||
"$ref": "#/definitions/Config2"
|
"$ref": "#/definitions/Config2"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"required": [
|
||||||
|
"a_cfg",
|
||||||
|
"b_cfg"
|
||||||
|
],
|
||||||
"definitions": {
|
"definitions": {
|
||||||
"Config": {
|
"Config": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"test"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"test": {
|
"test": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"required": [
|
||||||
|
"test"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"Config2": {
|
"Config2": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"test2"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"test2": {
|
"test2": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"required": [
|
||||||
|
"test2"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -2,13 +2,13 @@
|
||||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||||
"title": "const-generics-z-42",
|
"title": "const-generics-z-42",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"foo"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"foo": {
|
"foo": {
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"format": "int32"
|
"format": "int32"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"required": [
|
||||||
|
"foo"
|
||||||
|
]
|
||||||
}
|
}
|
|
@ -2,14 +2,10 @@
|
||||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||||
"title": "a-new-name-Array_of_string-int32-int32",
|
"title": "a-new-name-Array_of_string-int32-int32",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"inner",
|
|
||||||
"t",
|
|
||||||
"u",
|
|
||||||
"v",
|
|
||||||
"w"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
|
"inner": {
|
||||||
|
"$ref": "#/definitions/another-new-name"
|
||||||
|
},
|
||||||
"t": {
|
"t": {
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"format": "int32"
|
"format": "int32"
|
||||||
|
@ -25,23 +21,27 @@
|
||||||
"items": {
|
"items": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"inner": {
|
|
||||||
"$ref": "#/definitions/another-new-name"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"required": [
|
||||||
|
"inner",
|
||||||
|
"t",
|
||||||
|
"u",
|
||||||
|
"v",
|
||||||
|
"w"
|
||||||
|
],
|
||||||
"definitions": {
|
"definitions": {
|
||||||
"another-new-name": {
|
"another-new-name": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"foo"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"foo": {
|
"foo": {
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"format": "int32"
|
"format": "int32"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"required": [
|
||||||
|
"foo"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -2,10 +2,6 @@
|
||||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||||
"title": "MixedGenericStruct_for_MyStruct_for_int32_and_null_and_boolean_and_Array_of_string_and_42_and_z",
|
"title": "MixedGenericStruct_for_MyStruct_for_int32_and_null_and_boolean_and_Array_of_string_and_42_and_z",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"foo",
|
|
||||||
"generic"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"foo": {
|
"foo": {
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
|
@ -15,28 +11,25 @@
|
||||||
"$ref": "#/definitions/MyStruct_for_int32_and_null_and_boolean_and_Array_of_string"
|
"$ref": "#/definitions/MyStruct_for_int32_and_null_and_boolean_and_Array_of_string"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"required": [
|
||||||
|
"foo",
|
||||||
|
"generic"
|
||||||
|
],
|
||||||
"definitions": {
|
"definitions": {
|
||||||
"MySimpleStruct": {
|
"MySimpleStruct": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"foo"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"foo": {
|
"foo": {
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"format": "int32"
|
"format": "int32"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"required": [
|
||||||
|
"foo"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"MyStruct_for_int32_and_null_and_boolean_and_Array_of_string": {
|
"MyStruct_for_int32_and_null_and_boolean_and_Array_of_string": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"inner",
|
|
||||||
"t",
|
|
||||||
"u",
|
|
||||||
"v",
|
|
||||||
"w"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"inner": {
|
"inner": {
|
||||||
"$ref": "#/definitions/MySimpleStruct"
|
"$ref": "#/definitions/MySimpleStruct"
|
||||||
|
@ -57,7 +50,14 @@
|
||||||
"type": "string"
|
"type": "string"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"required": [
|
||||||
|
"inner",
|
||||||
|
"t",
|
||||||
|
"u",
|
||||||
|
"v",
|
||||||
|
"w"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -2,25 +2,7 @@
|
||||||
"$schema": "https://json-schema.org/draft/2019-09/schema",
|
"$schema": "https://json-schema.org/draft/2019-09/schema",
|
||||||
"title": "Outer",
|
"title": "Outer",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"int",
|
|
||||||
"value",
|
|
||||||
"values"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"int": {
|
|
||||||
"examples": [
|
|
||||||
8,
|
|
||||||
null
|
|
||||||
],
|
|
||||||
"type": "integer",
|
|
||||||
"format": "int32"
|
|
||||||
},
|
|
||||||
"values": {
|
|
||||||
"type": "object",
|
|
||||||
"additionalProperties": true
|
|
||||||
},
|
|
||||||
"value": true,
|
|
||||||
"inner": {
|
"inner": {
|
||||||
"anyOf": [
|
"anyOf": [
|
||||||
{
|
{
|
||||||
|
@ -30,8 +12,26 @@
|
||||||
"type": "null"
|
"type": "null"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
"int": {
|
||||||
|
"type": "integer",
|
||||||
|
"format": "int32",
|
||||||
|
"examples": [
|
||||||
|
8,
|
||||||
|
null
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"value": true,
|
||||||
|
"values": {
|
||||||
|
"type": "object",
|
||||||
|
"additionalProperties": true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"required": [
|
||||||
|
"int",
|
||||||
|
"value",
|
||||||
|
"values"
|
||||||
|
],
|
||||||
"definitions": {
|
"definitions": {
|
||||||
"Inner": {
|
"Inner": {
|
||||||
"oneOf": [
|
"oneOf": [
|
||||||
|
@ -51,13 +51,13 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"ValueNewType"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"ValueNewType": true
|
"ValueNewType": true
|
||||||
},
|
},
|
||||||
"additionalProperties": false
|
"additionalProperties": false,
|
||||||
|
"required": [
|
||||||
|
"ValueNewType"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -46,10 +46,10 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"additionalProperties": false,
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"ValueNewType": {}
|
"ValueNewType": {}
|
||||||
},
|
},
|
||||||
|
"additionalProperties": false,
|
||||||
"required": [
|
"required": [
|
||||||
"ValueNewType"
|
"ValueNewType"
|
||||||
]
|
]
|
||||||
|
|
|
@ -2,25 +2,7 @@
|
||||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||||
"title": "Outer",
|
"title": "Outer",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"int",
|
|
||||||
"value",
|
|
||||||
"values"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"int": {
|
|
||||||
"examples": [
|
|
||||||
8,
|
|
||||||
null
|
|
||||||
],
|
|
||||||
"type": "integer",
|
|
||||||
"format": "int32"
|
|
||||||
},
|
|
||||||
"values": {
|
|
||||||
"type": "object",
|
|
||||||
"additionalProperties": true
|
|
||||||
},
|
|
||||||
"value": true,
|
|
||||||
"inner": {
|
"inner": {
|
||||||
"anyOf": [
|
"anyOf": [
|
||||||
{
|
{
|
||||||
|
@ -30,8 +12,26 @@
|
||||||
"type": "null"
|
"type": "null"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
"int": {
|
||||||
|
"type": "integer",
|
||||||
|
"format": "int32",
|
||||||
|
"examples": [
|
||||||
|
8,
|
||||||
|
null
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"value": true,
|
||||||
|
"values": {
|
||||||
|
"type": "object",
|
||||||
|
"additionalProperties": true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"required": [
|
||||||
|
"int",
|
||||||
|
"value",
|
||||||
|
"values"
|
||||||
|
],
|
||||||
"definitions": {
|
"definitions": {
|
||||||
"Inner": {
|
"Inner": {
|
||||||
"oneOf": [
|
"oneOf": [
|
||||||
|
@ -51,13 +51,13 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"ValueNewType"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"ValueNewType": true
|
"ValueNewType": true
|
||||||
},
|
},
|
||||||
"additionalProperties": false
|
"additionalProperties": false,
|
||||||
|
"required": [
|
||||||
|
"ValueNewType"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,21 +4,17 @@
|
||||||
"oneOf": [
|
"oneOf": [
|
||||||
{
|
{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"c",
|
|
||||||
"t"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"c": {
|
"c": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"foo"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"foo": {
|
"foo": {
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"required": [
|
||||||
|
"foo"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"t": {
|
"t": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
@ -26,14 +22,14 @@
|
||||||
"Struct"
|
"Struct"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "object",
|
|
||||||
"required": [
|
"required": [
|
||||||
"c",
|
"c",
|
||||||
"t"
|
"t"
|
||||||
],
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"c": {
|
"c": {
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
|
@ -44,14 +40,14 @@
|
||||||
"NewType"
|
"NewType"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "object",
|
|
||||||
"required": [
|
"required": [
|
||||||
"c",
|
"c",
|
||||||
"t"
|
"t"
|
||||||
],
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"c": {
|
"c": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
|
@ -73,14 +69,14 @@
|
||||||
"Tuple"
|
"Tuple"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "object",
|
|
||||||
"required": [
|
"required": [
|
||||||
"c",
|
"c",
|
||||||
"t"
|
"t"
|
||||||
],
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"c": {
|
"c": {
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
|
@ -91,7 +87,11 @@
|
||||||
"Unit"
|
"Unit"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"required": [
|
||||||
|
"c",
|
||||||
|
"t"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
|
@ -4,41 +4,38 @@
|
||||||
"oneOf": [
|
"oneOf": [
|
||||||
{
|
{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"struct"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"struct": {
|
"struct": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"foo"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"foo": {
|
"foo": {
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"required": [
|
||||||
|
"foo"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"additionalProperties": false
|
"additionalProperties": false,
|
||||||
|
"required": [
|
||||||
|
"struct"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"newType"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"newType": {
|
"newType": {
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"additionalProperties": false
|
"additionalProperties": false,
|
||||||
|
"required": [
|
||||||
|
"newType"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"tuple"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"tuple": {
|
"tuple": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
|
@ -55,19 +52,22 @@
|
||||||
"minItems": 2
|
"minItems": 2
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"additionalProperties": false
|
"additionalProperties": false,
|
||||||
|
"required": [
|
||||||
|
"tuple"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"unit"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"unit": {
|
"unit": {
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"additionalProperties": false
|
"additionalProperties": false,
|
||||||
|
"required": [
|
||||||
|
"unit"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
|
@ -4,10 +4,6 @@
|
||||||
"oneOf": [
|
"oneOf": [
|
||||||
{
|
{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"foo",
|
|
||||||
"typeProperty"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"foo": {
|
"foo": {
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
|
@ -18,13 +14,14 @@
|
||||||
"Struct"
|
"Struct"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"required": [
|
||||||
|
"foo",
|
||||||
|
"typeProperty"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"typeProperty"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"typeProperty": {
|
"typeProperty": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
@ -32,13 +29,13 @@
|
||||||
"NewType"
|
"NewType"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"required": [
|
||||||
|
"typeProperty"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"typeProperty"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"typeProperty": {
|
"typeProperty": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
@ -46,7 +43,10 @@
|
||||||
"Unit"
|
"Unit"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"required": [
|
||||||
|
"typeProperty"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
|
@ -4,14 +4,14 @@
|
||||||
"anyOf": [
|
"anyOf": [
|
||||||
{
|
{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"foo"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"foo": {
|
"foo": {
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"required": [
|
||||||
|
"foo"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
|
|
|
@ -2,21 +2,21 @@
|
||||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||||
"title": "Struct",
|
"title": "Struct",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"bar",
|
|
||||||
"baz",
|
|
||||||
"foo"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"foo": {
|
|
||||||
"type": "boolean"
|
|
||||||
},
|
|
||||||
"bar": {
|
"bar": {
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"format": "int32"
|
"format": "int32"
|
||||||
},
|
},
|
||||||
"baz": {
|
"baz": {
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
|
},
|
||||||
|
"foo": {
|
||||||
|
"type": "boolean"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"required": [
|
||||||
|
"bar",
|
||||||
|
"baz",
|
||||||
|
"foo"
|
||||||
|
]
|
||||||
}
|
}
|
|
@ -2,11 +2,13 @@
|
||||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||||
"title": "SemverTypes",
|
"title": "SemverTypes",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": ["version"],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"version": {
|
"version": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"pattern": "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$"
|
"pattern": "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"required": [
|
||||||
|
"version"
|
||||||
|
]
|
||||||
}
|
}
|
|
@ -10,16 +10,16 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"Included1"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"Included1": {
|
"Included1": {
|
||||||
"type": "number",
|
"type": "number",
|
||||||
"format": "float"
|
"format": "float"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"additionalProperties": false
|
"additionalProperties": false,
|
||||||
|
"required": [
|
||||||
|
"Included1"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
|
@ -2,23 +2,23 @@
|
||||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||||
"title": "MyStruct",
|
"title": "MyStruct",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"included": {
|
||||||
|
"type": "null"
|
||||||
|
},
|
||||||
|
"readable": {
|
||||||
|
"type": "string",
|
||||||
|
"default": "",
|
||||||
|
"readOnly": true
|
||||||
|
},
|
||||||
|
"writable": {
|
||||||
|
"type": "number",
|
||||||
|
"format": "float",
|
||||||
|
"writeOnly": true
|
||||||
|
}
|
||||||
|
},
|
||||||
"required": [
|
"required": [
|
||||||
"included",
|
"included",
|
||||||
"writable"
|
"writable"
|
||||||
],
|
]
|
||||||
"properties": {
|
|
||||||
"readable": {
|
|
||||||
"default": "",
|
|
||||||
"readOnly": true,
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"writable": {
|
|
||||||
"writeOnly": true,
|
|
||||||
"type": "number",
|
|
||||||
"format": "float"
|
|
||||||
},
|
|
||||||
"included": {
|
|
||||||
"type": "null"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
|
@ -2,15 +2,7 @@
|
||||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||||
"title": "Struct",
|
"title": "Struct",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"bar",
|
|
||||||
"foo"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"foo": {
|
|
||||||
"type": "integer",
|
|
||||||
"format": "int32"
|
|
||||||
},
|
|
||||||
"bar": {
|
"bar": {
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
},
|
},
|
||||||
|
@ -19,7 +11,15 @@
|
||||||
"string",
|
"string",
|
||||||
"null"
|
"null"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
"foo": {
|
||||||
|
"type": "integer",
|
||||||
|
"format": "int32"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"additionalProperties": false
|
"additionalProperties": false,
|
||||||
|
"required": [
|
||||||
|
"bar",
|
||||||
|
"foo"
|
||||||
|
]
|
||||||
}
|
}
|
|
@ -2,15 +2,7 @@
|
||||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||||
"title": "Struct",
|
"title": "Struct",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"bar",
|
|
||||||
"foo"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"foo": {
|
|
||||||
"type": "integer",
|
|
||||||
"format": "int32"
|
|
||||||
},
|
|
||||||
"bar": {
|
"bar": {
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
},
|
},
|
||||||
|
@ -19,6 +11,14 @@
|
||||||
"string",
|
"string",
|
||||||
"null"
|
"null"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
"foo": {
|
||||||
|
"type": "integer",
|
||||||
|
"format": "int32"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"required": [
|
||||||
|
"bar",
|
||||||
|
"foo"
|
||||||
|
]
|
||||||
}
|
}
|
|
@ -2,13 +2,13 @@
|
||||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||||
"title": "UrlTypes",
|
"title": "UrlTypes",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"url"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"url": {
|
"url": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"format": "uri"
|
"format": "uri"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"required": [
|
||||||
|
"url"
|
||||||
|
]
|
||||||
}
|
}
|
|
@ -2,49 +2,7 @@
|
||||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||||
"title": "Struct",
|
"title": "Struct",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"contains_str1",
|
|
||||||
"contains_str2",
|
|
||||||
"email_address",
|
|
||||||
"homepage",
|
|
||||||
"map_contains",
|
|
||||||
"min_max",
|
|
||||||
"min_max2",
|
|
||||||
"non_empty_str",
|
|
||||||
"non_empty_str2",
|
|
||||||
"pair",
|
|
||||||
"regex_str1",
|
|
||||||
"regex_str2",
|
|
||||||
"regex_str3",
|
|
||||||
"required_option",
|
|
||||||
"tel",
|
|
||||||
"x"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"min_max": {
|
|
||||||
"type": "number",
|
|
||||||
"format": "float",
|
|
||||||
"maximum": 100.0,
|
|
||||||
"minimum": 0.01
|
|
||||||
},
|
|
||||||
"min_max2": {
|
|
||||||
"type": "number",
|
|
||||||
"format": "float",
|
|
||||||
"maximum": 1000.0,
|
|
||||||
"minimum": 1.0
|
|
||||||
},
|
|
||||||
"regex_str1": {
|
|
||||||
"type": "string",
|
|
||||||
"pattern": "^[Hh]ello\\b"
|
|
||||||
},
|
|
||||||
"regex_str2": {
|
|
||||||
"type": "string",
|
|
||||||
"pattern": "^[Hh]ello\\b"
|
|
||||||
},
|
|
||||||
"regex_str3": {
|
|
||||||
"type": "string",
|
|
||||||
"pattern": "^\\d+$"
|
|
||||||
},
|
|
||||||
"contains_str1": {
|
"contains_str1": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"pattern": "substring\\.\\.\\."
|
"pattern": "substring\\.\\.\\."
|
||||||
|
@ -57,14 +15,31 @@
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"format": "email"
|
"format": "email"
|
||||||
},
|
},
|
||||||
"tel": {
|
|
||||||
"type": "string",
|
|
||||||
"format": "phone"
|
|
||||||
},
|
|
||||||
"homepage": {
|
"homepage": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"format": "uri"
|
"format": "uri"
|
||||||
},
|
},
|
||||||
|
"map_contains": {
|
||||||
|
"type": "object",
|
||||||
|
"additionalProperties": {
|
||||||
|
"type": "null"
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"map_key"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"min_max": {
|
||||||
|
"type": "number",
|
||||||
|
"format": "float",
|
||||||
|
"maximum": 100.0,
|
||||||
|
"minimum": 0.01
|
||||||
|
},
|
||||||
|
"min_max2": {
|
||||||
|
"type": "number",
|
||||||
|
"format": "float",
|
||||||
|
"maximum": 1000.0,
|
||||||
|
"minimum": 1.0
|
||||||
|
},
|
||||||
"non_empty_str": {
|
"non_empty_str": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"maxLength": 100,
|
"maxLength": 100,
|
||||||
|
@ -84,21 +59,46 @@
|
||||||
"maxItems": 2,
|
"maxItems": 2,
|
||||||
"minItems": 2
|
"minItems": 2
|
||||||
},
|
},
|
||||||
"map_contains": {
|
"regex_str1": {
|
||||||
"type": "object",
|
"type": "string",
|
||||||
"required": [
|
"pattern": "^[Hh]ello\\b"
|
||||||
"map_key"
|
},
|
||||||
],
|
"regex_str2": {
|
||||||
"additionalProperties": {
|
"type": "string",
|
||||||
"type": "null"
|
"pattern": "^[Hh]ello\\b"
|
||||||
}
|
},
|
||||||
|
"regex_str3": {
|
||||||
|
"type": "string",
|
||||||
|
"pattern": "^\\d+$"
|
||||||
},
|
},
|
||||||
"required_option": {
|
"required_option": {
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
},
|
},
|
||||||
|
"tel": {
|
||||||
|
"type": "string",
|
||||||
|
"format": "phone"
|
||||||
|
},
|
||||||
"x": {
|
"x": {
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"format": "int32"
|
"format": "int32"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"required": [
|
||||||
|
"contains_str1",
|
||||||
|
"contains_str2",
|
||||||
|
"email_address",
|
||||||
|
"homepage",
|
||||||
|
"map_contains",
|
||||||
|
"min_max",
|
||||||
|
"min_max2",
|
||||||
|
"non_empty_str",
|
||||||
|
"non_empty_str2",
|
||||||
|
"pair",
|
||||||
|
"regex_str1",
|
||||||
|
"regex_str2",
|
||||||
|
"regex_str3",
|
||||||
|
"required_option",
|
||||||
|
"tel",
|
||||||
|
"x"
|
||||||
|
]
|
||||||
}
|
}
|
|
@ -2,15 +2,6 @@
|
||||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||||
"title": "Struct",
|
"title": "Struct",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"array_str_length",
|
|
||||||
"slice_str_contains",
|
|
||||||
"vec_i32_range",
|
|
||||||
"vec_str_length",
|
|
||||||
"vec_str_length2",
|
|
||||||
"vec_str_regex",
|
|
||||||
"vec_str_url"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"array_str_length": {
|
"array_str_length": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
|
@ -70,5 +61,14 @@
|
||||||
"format": "uri"
|
"format": "uri"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"required": [
|
||||||
|
"array_str_length",
|
||||||
|
"slice_str_contains",
|
||||||
|
"vec_i32_range",
|
||||||
|
"vec_str_length",
|
||||||
|
"vec_str_length2",
|
||||||
|
"vec_str_regex",
|
||||||
|
"vec_str_url"
|
||||||
|
]
|
||||||
}
|
}
|
|
@ -2,49 +2,7 @@
|
||||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||||
"title": "Struct2",
|
"title": "Struct2",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
|
||||||
"contains_str1",
|
|
||||||
"contains_str2",
|
|
||||||
"email_address",
|
|
||||||
"homepage",
|
|
||||||
"map_contains",
|
|
||||||
"min_max",
|
|
||||||
"min_max2",
|
|
||||||
"non_empty_str",
|
|
||||||
"non_empty_str2",
|
|
||||||
"pair",
|
|
||||||
"regex_str1",
|
|
||||||
"regex_str2",
|
|
||||||
"regex_str3",
|
|
||||||
"required_option",
|
|
||||||
"tel",
|
|
||||||
"x"
|
|
||||||
],
|
|
||||||
"properties": {
|
"properties": {
|
||||||
"min_max": {
|
|
||||||
"type": "number",
|
|
||||||
"format": "float",
|
|
||||||
"maximum": 100.0,
|
|
||||||
"minimum": 0.01
|
|
||||||
},
|
|
||||||
"min_max2": {
|
|
||||||
"type": "number",
|
|
||||||
"format": "float",
|
|
||||||
"maximum": 1000.0,
|
|
||||||
"minimum": 1.0
|
|
||||||
},
|
|
||||||
"regex_str1": {
|
|
||||||
"type": "string",
|
|
||||||
"pattern": "^[Hh]ello\\b"
|
|
||||||
},
|
|
||||||
"regex_str2": {
|
|
||||||
"type": "string",
|
|
||||||
"pattern": "^[Hh]ello\\b"
|
|
||||||
},
|
|
||||||
"regex_str3": {
|
|
||||||
"type": "string",
|
|
||||||
"pattern": "^\\d+$"
|
|
||||||
},
|
|
||||||
"contains_str1": {
|
"contains_str1": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"pattern": "substring\\.\\.\\."
|
"pattern": "substring\\.\\.\\."
|
||||||
|
@ -57,14 +15,31 @@
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"format": "email"
|
"format": "email"
|
||||||
},
|
},
|
||||||
"tel": {
|
|
||||||
"type": "string",
|
|
||||||
"format": "phone"
|
|
||||||
},
|
|
||||||
"homepage": {
|
"homepage": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"format": "uri"
|
"format": "uri"
|
||||||
},
|
},
|
||||||
|
"map_contains": {
|
||||||
|
"type": "object",
|
||||||
|
"additionalProperties": {
|
||||||
|
"type": "null"
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"map_key"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"min_max": {
|
||||||
|
"type": "number",
|
||||||
|
"format": "float",
|
||||||
|
"maximum": 100.0,
|
||||||
|
"minimum": 0.01
|
||||||
|
},
|
||||||
|
"min_max2": {
|
||||||
|
"type": "number",
|
||||||
|
"format": "float",
|
||||||
|
"maximum": 1000.0,
|
||||||
|
"minimum": 1.0
|
||||||
|
},
|
||||||
"non_empty_str": {
|
"non_empty_str": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"maxLength": 100,
|
"maxLength": 100,
|
||||||
|
@ -84,21 +59,46 @@
|
||||||
"maxItems": 2,
|
"maxItems": 2,
|
||||||
"minItems": 2
|
"minItems": 2
|
||||||
},
|
},
|
||||||
"map_contains": {
|
"regex_str1": {
|
||||||
"type": "object",
|
"type": "string",
|
||||||
"required": [
|
"pattern": "^[Hh]ello\\b"
|
||||||
"map_key"
|
},
|
||||||
],
|
"regex_str2": {
|
||||||
"additionalProperties": {
|
"type": "string",
|
||||||
"type": "null"
|
"pattern": "^[Hh]ello\\b"
|
||||||
}
|
},
|
||||||
|
"regex_str3": {
|
||||||
|
"type": "string",
|
||||||
|
"pattern": "^\\d+$"
|
||||||
},
|
},
|
||||||
"required_option": {
|
"required_option": {
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
},
|
},
|
||||||
|
"tel": {
|
||||||
|
"type": "string",
|
||||||
|
"format": "phone"
|
||||||
|
},
|
||||||
"x": {
|
"x": {
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"format": "int32"
|
"format": "int32"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"required": [
|
||||||
|
"contains_str1",
|
||||||
|
"contains_str2",
|
||||||
|
"email_address",
|
||||||
|
"homepage",
|
||||||
|
"map_contains",
|
||||||
|
"min_max",
|
||||||
|
"min_max2",
|
||||||
|
"non_empty_str",
|
||||||
|
"non_empty_str2",
|
||||||
|
"pair",
|
||||||
|
"regex_str1",
|
||||||
|
"regex_str2",
|
||||||
|
"regex_str3",
|
||||||
|
"required_option",
|
||||||
|
"tel",
|
||||||
|
"x"
|
||||||
|
]
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue