Sync with 5.4.0
[deliverable/titan.core.git] / regression_test / ttcn2json / two_e.json
index 27c91bddfa88607aad86988ab07dfc7490de4820..964e00f7e2c111b1414e93542f90c1bd0f41e938 100644 (file)
@@ -1,4 +1,5 @@
 {
+       "$schema" : "http://json-schema.org/draft-04/schema#",
        "definitions" : {
                "one" : {
                        "HasAny" : {
@@ -56,7 +57,8 @@
                                "required" : [
                                        "num",
                                        "str"
-                               ]
+                               ],
+                               "comment" : "abc"
                        },
                        "Set" : {
                                "type" : "object",
@@ -65,7 +67,8 @@
                                        "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" : {
This page took 0.027774 seconds and 5 git commands to generate.