A plain JavaScript validator for AT Protocol lexicon schemas
1// Test inputs for boolean schema validation
2
3export const booleanSchemaInputs = [
4 {
5 name: 'boolean-valid-basic',
6 lexicon: {
7 lexicon: 1,
8 id: 'test.boolean.basic',
9 defs: {
10 main: {
11 type: 'boolean',
12 },
13 },
14 },
15 },
16 {
17 name: 'boolean-valid-with-default',
18 lexicon: {
19 lexicon: 1,
20 id: 'test.boolean.default',
21 defs: {
22 main: {
23 type: 'boolean',
24 default: true,
25 },
26 },
27 },
28 },
29 {
30 name: 'boolean-valid-with-const',
31 lexicon: {
32 lexicon: 1,
33 id: 'test.boolean.const',
34 defs: {
35 main: {
36 type: 'boolean',
37 const: false,
38 },
39 },
40 },
41 },
42 {
43 name: 'boolean-valid-with-description',
44 lexicon: {
45 lexicon: 1,
46 id: 'test.boolean.description',
47 defs: {
48 main: {
49 type: 'boolean',
50 description: 'A boolean flag',
51 },
52 },
53 },
54 },
55];