summaryrefslogtreecommitdiff
path: root/json/tests/draft2020-12/vocabulary.json
blob: d84f8f170fdb3981a29a6cb126e7383e2c743fa6 (plain)
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
33
34
35
36
37
38
[
    {
        "description": "schema that uses custom metaschema with with no validation vocabulary",
        "schema": {
            "$id": "https://schema/using/no/validation",
            "$schema": "http://localhost:1234/draft2020-12/metaschema-no-validation.json",
            "properties": {
                "badProperty": false,
                "numberProperty": {
                    "minimum": 10
                }
            }
        },
        "tests": [
            {
                "description": "applicator vocabulary still works",
                "data": {
                    "badProperty": "this property should not exist"
                },
                "valid": false
            },
            {
                "description": "no validation: valid number",
                "data": {
                    "numberProperty": 20
                },
                "valid": true
            },
            {
                "description": "no validation: invalid number, but it still validates",
                "data": {
                    "numberProperty": 1
                },
                "valid": true
            }
        ]
    }
]