{
+ "$schema" : "http://json-schema.org/draft-04/schema#",
"definitions" : {
"one" : {
"HasAny" : {
"required" : [
"num",
"str"
- ]
+ ],
+ "comment" : "abc"
},
"Set" : {
"type" : "object",
"os" : {
"type" : "string",
"subType" : "octetstring",
- "pattern" : "^([0-9A-Fa-f][0-9A-Fa-f])*$"
+ "pattern" : "^([0-9A-Fa-f][0-9A-Fa-f])*$",
+ "MSB" : "first"
},
"buul" : {
"anyOf" : [
"bytes"
]
}
- ]
+ ],
+ "defaultSelection" : "numbr"
},
"Width" : {
"enum" : [
"type" : "integer"
}
},
+ "Intses" : {
+ "type" : "array",
+ "subType" : "record of",
+ "items" : {
+ "$ref" : "#/definitions/two/Ints"
+ },
+ "alias" : "RoRoI"
+ },
+ "Octets" : {
+ "type" : "array",
+ "subType" : "set of",
+ "items" : {
+ "type" : "string",
+ "subType" : "octetstring",
+ "pattern" : "^([0-9A-Fa-f][0-9A-Fa-f])*$"
+ },
+ "comment" : "set of octetstrings"
+ },
"PosInt" : {
- "type" : "integer"
+ "type" : "integer",
+ "minimum" : 0,
+ "exclusiveMinimum" : false
}
},
"three" : {
"required" : [
"size",
"filled"
- ]
+ ],
+ "comment" : "first comment",
+ "comment" : "second comment"
}
},
"additionalProperties" : false,
}
},
"anyOf" : [
- {
- "$ref" : "#/definitions/two/Ints",
- "decoding" : {
- "prototype" : [
- "fast",
- "f_dec_ints",
- "os",
- "x"
- ]
- },
- "encoding" : {
- "prototype" : [
- "fast",
- "f_enc_ints",
- "eents",
- "octus"
- ],
- "printing" : "pretty"
- }
- },
{
"$ref" : "#/definitions/one/Rec",
"decoding" : {
]
}
},
+ {
+ "$ref" : "#/definitions/two/Ints",
+ "decoding" : {
+ "prototype" : [
+ "fast",
+ "f_dec_ints",
+ "os",
+ "x"
+ ]
+ },
+ "encoding" : {
+ "prototype" : [
+ "fast",
+ "f_enc_ints",
+ "eents",
+ "octus"
+ ],
+ "printing" : "pretty"
+ }
+ },
{
"$ref" : "#/definitions/Zero/Big_Set",
"decoding" : {