File: issue-ref.json

package info (click to toggle)
jsoncons 1.5.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 18,300 kB
  • sloc: cpp: 143,266; sh: 34; makefile: 8
file content (32 lines) | stat: -rw-r--r-- 745 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
[
    {
        "description": "empty tokens in $ref json-pointer",
        "schema": {
            "definitions": {
                "": {
                    "definitions": {
                        "": { "type": "number" }
                    }
                } 
            },
            "allOf": [
                {
                    "$ref": "#/definitions//definitions/"
                }
            ]
        },
        "tests": [
            {
                "description": "number is valid",
                "data": 1,
                "valid": true
            }/*,
            {
                "description": "non-number is invalid",
                "data": "a",
                "valid": false
            }*/
        ]
    }
]