JAL-1767 JAL-2647 hide 'Input Data..' for PCA loaded from project
[jalview.git] / examples / biojson-doc / tests / enum.json
1 [
2     {
3         "description": "simple enum validation",
4         "schema": {"enum": [1, 2, 3]},
5         "tests": [
6             {
7                 "description": "one of the enum is valid",
8                 "data": 1,
9                 "valid": true
10             },
11             {
12                 "description": "something else is invalid",
13                 "data": 4,
14                 "valid": false
15             }
16         ]
17     },
18     {
19         "description": "heterogeneous enum validation",
20         "schema": {"enum": [6, "foo", [], true, {"foo": 12}]},
21         "tests": [
22             {
23                 "description": "one of the enum is valid",
24                 "data": [],
25                 "valid": true
26             },
27             {
28                 "description": "something else is invalid",
29                 "data": null,
30                 "valid": false
31             },
32             {
33                 "description": "objects are deep compared",
34                 "data": {"foo": false},
35                 "valid": false
36             }
37         ]
38     }
39 ]