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 (29 lines) | stat: -rw-r--r-- 793 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
[
    {
        "description": "URN base URI with r-component",
        "schema": {
            "$comment": "RFC 8141 ยง2.3.1",
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "$id": "urn:example:foo-bar-baz-qux?+CCResolve:cc=uk",
            "properties": {
                "foo": {"$ref": "#/$defs/bar"}
            },
            "$defs": {
                "bar": {"type": "string"}
            }
        },
        "tests": [
            {
                "description": "a string is valid",
                "data": {"foo": "bar"},
                "valid": true
            }/*,
            {
                "description": "a non-string is invalid",
                "data": {"foo": 12},
                "valid": false
            }*/
        ]
    }
]