|
52 | 52 | "properties": { |
53 | 53 | "font": { "$ref": "#/definitions/KeyboardFontInfo" }, |
54 | 54 | "oskFont": { "$ref": "#/definitions/KeyboardFontInfo" }, |
55 | | - "example": { "$ref": "#/definitions/KeyboardExampleInfo" }, |
| 55 | + "examples": { "type": "array", "items": { "$ref": "#/definitions/KeyboardExampleInfo" } }, |
56 | 56 | "displayName": { "type": "string" }, |
57 | 57 | "languageName": { "type": "string" }, |
58 | 58 | "scriptName": { "type": "string" }, |
|
66 | 66 | "type": "object", |
67 | 67 | "properties": { |
68 | 68 | "family": { "type": "string" }, |
69 | | - "source": { "anyOf": [ |
70 | | - { "type": "string" }, |
71 | | - { "type": "array", "items": { "type": "string" } } |
72 | | - ] }, |
73 | | - "size": { "type": "string" } |
| 69 | + "source": { "type": "array", "items": { "type": "string" } } |
74 | 70 | }, |
75 | 71 | "required": ["family", "source"], |
76 | 72 | "additionalProperties": false |
|
79 | 75 | "KeyboardExampleInfo": { |
80 | 76 | "type": "object", |
81 | 77 | "properties": { |
82 | | - "keys": { "anyOf": [ |
83 | | - { "type": "string" }, |
84 | | - { "type": "array", "items": { |
85 | | - "anyOf": [ |
86 | | - { "type": "string" }, |
87 | | - { "$ref": "#/definitions/KeyboardExampleKeyInfo" } |
88 | | - ] } |
89 | | - } |
90 | | - ] }, |
| 78 | + "keys": { |
| 79 | + "type": "array", |
| 80 | + "items": { "$ref": "#/definitions/KeyboardExampleKeyInfo" } |
| 81 | + }, |
91 | 82 | "text": { "type": "string" }, |
92 | 83 | "note": { "type": "string" } |
93 | 84 | }, |
94 | | - "required": [], |
| 85 | + "required": ["keys", "text"], |
95 | 86 | "additionalProperties": false |
96 | 87 | }, |
97 | 88 |
|
98 | 89 | "KeyboardExampleKeyInfo": { |
99 | 90 | "type": "object", |
100 | 91 | "properties": { |
101 | | - "key": { "type": "string", "enum": [ |
102 | | - "K_SPACE", |
103 | | - "K_A", "K_B", "K_C", "K_D", "K_E", "K_F", "K_G", "K_H", "K_I", "K_J", "K_K", "K_L", "K_M", |
104 | | - "K_N", "K_O", "K_P", "K_Q", "K_R", "K_S", "K_T", "K_U", "K_V", "K_W", "K_X", "K_Y", "K_Z", |
105 | | - "K_1", "K_2", "K_3", "K_4", "K_5", "K_6", "K_7", "K_8", "K_9", "K_0", |
106 | | - "K_BKQUOTE", "K_HYPHEN", "K_EQUAL", "K_LBRKT", "K_RBRKT", "K_BKSLASH", "K_COLON", |
107 | | - "K_QUOTE", "K_COMMA", "K_PERIOD", "K_SLASH", |
108 | | - "K_oE2", "K_BKSP", "K_TAB", "K_ENTER", "K_ESC", |
109 | | - "K_LEFT", "K_UP", "K_RIGHT", "K_DOWN", "K_PGUP", "K_PGDN", "K_HOME", "K_END", "K_INS", "K_DEL", |
110 | | - "K_F1", "K_F2", "K_F3", "K_F4", "K_F5", "K_F6", "K_F7", "K_F8", "K_F9", "K_F10", "K_F11", "K_F12", |
111 | | - "K_KP5", "K_NP0", "K_NP1", "K_NP2", "K_NP3", "K_NP4", "K_NP5", "K_NP6", "K_NP7", "K_NP8", "K_NP9", |
112 | | - "K_NPSTAR", "K_NPPLUS", "K_NPMINUS", "K_NPDOT", "K_NPSLASH", |
113 | | - "K_SEL", "K_PRINT", "K_EXEC", "K_HELP", "K_SEPARATOR", |
114 | | - "K_F13", "K_F14", "K_F15", "K_F16", "K_F17", "K_F18", "K_F19", "K_F20", "K_F21", "K_F22", "K_F23", "K_F24", |
115 | | - "K_KANJI?15", "K_KANJI?16", "K_KANJI?17", "K_KANJI?18", "K_KANJI?19", "K_KANJI?1C", "K_KANJI?1D", "K_KANJI?1E", "K_KANJI?1F", |
116 | | - "K_oE0", "K_oE1", "K_oE3", "K_oE4", "K_oE6", "K_oE9", "K_oEA", "K_oEB", "K_oEC", "K_oED", "K_oEE", "K_oEF", |
117 | | - "K_oF0", "K_oF1", "K_oF2", "K_oF3", "K_oF4", "K_oF5", "K_?00", "K_?05", "K_NPENTER", |
118 | | - "K_?06", "K_?07", "K_?0A", "K_?0B", "K_?0E", "K_?0F", "K_?1A", "K_?3A", "K_?3B", "K_?3C", "K_?3D", "K_?3E", |
119 | | - "K_?3F", "K_?40", "K_?5B", "K_?5C", "K_?5D", "K_?5E", "K_?5F", "K_?88", "K_?89", "K_?8A", "K_?8B", "K_?8C", |
120 | | - "K_?8D", "K_?8E", "K_?8F", "K_?92", "K_?94", "K_?95", "K_?96", "K_?97", "K_?98", "K_?99", "K_?9A", "K_?9B", |
121 | | - "K_?9C", "K_?9D", "K_?9E", "K_?9F", "K_?A0", "K_?A1", "K_?A2", "K_?A3", "K_?A4", "K_?A5", "K_?A6", "K_?A7", |
122 | | - "K_?A8", "K_?A9", "K_?AA", "K_?AB", "K_?AC", "K_?AD", "K_?AE", "K_?AF", "K_?B0", "K_?B1", "K_?B2", "K_?B3", |
123 | | - "K_?B4", "K_?B5", "K_?B6", "K_?B7", "K_?B8", "K_?B9", "K_?C1", "K_?C2", "K_?C3", "K_?C4", "K_?C5", "K_?C6", |
124 | | - "K_?C7", "K_?C8", "K_?C9", "K_?CA", "K_?CB", "K_?CC", "K_?CD", "K_?CE", "K_?CF", "K_?D0", "K_?D1", "K_?D2", |
125 | | - "K_?D3", "K_?D4", "K_?D5", "K_?D6", "K_?D7", "K_?D8", "K_?D9", "K_?DA", "K_oDF", "K_?E5", "K_?E7", "K_?E8", |
126 | | - "K_?F6", "K_?F7", "K_?F8", "K_?F9", "K_?FA", "K_?FB", "K_?FC", "K_?FD", "K_?FE", "K_?FF" |
127 | | - ] }, |
| 92 | + "key": { "type": "string" }, |
128 | 93 | "modifiers": { |
129 | 94 | "type": "array", |
130 | | - "items": { "type": "string", "enum": ["shift", "s", "ctrl", "c", "alt", "a", "left-ctrl", "lc", "right-ctrl", "rc", "left-alt", "la", "right-alt", "ra"] } |
| 95 | + "items": { "type": "string" } |
131 | 96 | } |
132 | 97 | }, |
133 | 98 | "required": ["key"], |
|
0 commit comments