|
4 | 4 | "title": "Yarn Spinner Project", |
5 | 5 | "description": "Configuration file for a Yarn Spinner project (.yarnproject)", |
6 | 6 | "type": "object", |
7 | | - "required": ["projectFileVersion"], |
| 7 | + "required": ["projectFileVersion", "sourceFiles", "baseLanguage"], |
8 | 8 | "properties": { |
9 | 9 | "projectFileVersion": { |
10 | 10 | "type": "integer", |
|
27 | 27 | "type": "string" |
28 | 28 | } |
29 | 29 | }, |
| 30 | + "authorName": { |
| 31 | + "type": "string" |
| 32 | + }, |
| 33 | + "projectName": { |
| 34 | + "type": "string" |
| 35 | + }, |
30 | 36 | "baseLanguage": { |
31 | 37 | "type": "string", |
32 | | - "description": "The base language code for the project (e.g., 'en', 'en-US', 'zh-Hans').", |
33 | | - "default": "en", |
34 | | - "pattern": "^[a-zA-Z]{2,8}(-[a-zA-Z0-9]{1,8})*$" |
| 38 | + "default": "en" |
35 | 39 | }, |
36 | 40 | "localisation": { |
37 | 41 | "type": "object", |
38 | 42 | "description": "Localization configuration mapping language codes to their string tables and asset directories.", |
39 | | - "patternProperties": { |
40 | | - "^[a-zA-Z]{2,8}(-[a-zA-Z0-9]{1,8})*$": { |
| 43 | + "additionalProperties": { |
41 | 44 | "type": "object", |
42 | 45 | "properties": { |
43 | 46 | "strings": { |
|
75 | 78 | "type": "boolean", |
76 | 79 | "default": false |
77 | 80 | }, |
78 | | - "requireNodeTags": { |
79 | | - "type": "boolean", |
80 | | - "default": false |
81 | | - }, |
82 | 81 | "allowPreviewFeatures": { |
83 | 82 | "type": "boolean", |
84 | 83 | "default": false |
85 | | - }, |
86 | | - "disableSpellcheck": { |
87 | | - "type": "boolean", |
88 | | - "default": false |
89 | | - }, |
90 | | - "spellcheckWords": { |
| 84 | + } |
| 85 | + }, |
| 86 | + "additionalProperties": true |
| 87 | + }, |
| 88 | + "editorOptions": { |
| 89 | + "type": "object", |
| 90 | + "description": "Editor and tooling configuration.", |
| 91 | + "properties": { |
| 92 | + "disableSpellcheck": { "type": "boolean", "default": false }, |
| 93 | + "spellcheckWords": { "type": "array", "items": { "type": "string" }, "default": [] }, |
| 94 | + "defaultPresenter": { "type": "string", "default": "try" }, |
| 95 | + "editorCharacterColors": { |
91 | 96 | "type": "array", |
92 | 97 | "items": { |
93 | | - "type": "string" |
94 | | - }, |
95 | | - "default": [] |
| 98 | + "type": "object", |
| 99 | + "properties": { |
| 100 | + "id": { "type": "string" }, |
| 101 | + "name": { "type": "string" }, |
| 102 | + "colour": { "type": "string", "pattern": "^#[0-9A-Fa-f]{6}$" }, |
| 103 | + "portraitPath": { "type": "string" } |
| 104 | + } |
| 105 | + } |
96 | 106 | }, |
97 | | - "playgroundOptions": { |
| 107 | + "editorFontSize": { "type": "number", "minimum": 8, "maximum": 72 }, |
| 108 | + "previewFontSize": { "type": "number", "minimum": 8, "maximum": 72 }, |
| 109 | + "startNode": { "type": "string" }, |
| 110 | + "projectGraphPositions": { |
98 | 111 | "type": "object", |
99 | | - "description": "Configuration for the Yarn Spinner Playground and VSCode preview.", |
100 | | - "properties": { |
101 | | - "projectName": { |
102 | | - "type": "string" |
103 | | - }, |
104 | | - "authorName": { |
105 | | - "type": "string" |
106 | | - }, |
107 | | - "defaultPresenter": { |
108 | | - "type": "string", |
109 | | - "enum": [ |
110 | | - "try", |
111 | | - "default", |
112 | | - "director", |
113 | | - "classic", |
114 | | - "barebones" |
115 | | - ], |
116 | | - "default": "try" |
117 | | - }, |
118 | | - "editorCharacterColors": { |
119 | | - "type": "array", |
120 | | - "items": { |
121 | | - "type": "object", |
122 | | - "properties": { |
123 | | - "id": { |
124 | | - "type": "string" |
125 | | - }, |
126 | | - "name": { |
127 | | - "type": "string" |
128 | | - }, |
129 | | - "colour": { |
130 | | - "type": "string", |
131 | | - "pattern": "^#[0-9A-Fa-f]{6}$" |
132 | | - }, |
133 | | - "portraitPath": { |
134 | | - "type": "string" |
135 | | - } |
136 | | - } |
137 | | - } |
138 | | - }, |
139 | | - "editorFontSize": { |
140 | | - "type": "number", |
141 | | - "minimum": 8, |
142 | | - "maximum": 72 |
143 | | - }, |
144 | | - "previewFontSize": { |
145 | | - "type": "number", |
146 | | - "minimum": 8, |
147 | | - "maximum": 72 |
148 | | - }, |
149 | | - "startNode": { |
150 | | - "type": "string" |
151 | | - }, |
152 | | - "projectGraphPositions": { |
153 | | - "type": "object", |
154 | | - "additionalProperties": { |
155 | | - "type": "object", |
156 | | - "properties": { |
157 | | - "x": { "type": "number" }, |
158 | | - "y": { "type": "number" } |
159 | | - } |
160 | | - } |
161 | | - }, |
162 | | - "projectGraphColours": { |
163 | | - "type": "object", |
164 | | - "additionalProperties": { |
165 | | - "type": ["string", "null"] |
166 | | - } |
167 | | - } |
168 | | - }, |
169 | | - "additionalProperties": false |
| 112 | + "additionalProperties": { |
| 113 | + "type": "object", |
| 114 | + "properties": { "x": { "type": "number" }, "y": { "type": "number" } } |
| 115 | + } |
| 116 | + }, |
| 117 | + "projectGraphColours": { |
| 118 | + "type": "object", |
| 119 | + "additionalProperties": { "type": ["string", "null"] } |
170 | 120 | } |
171 | 121 | }, |
172 | 122 | "additionalProperties": true |
|
213 | 163 | "default": "bestLeastRecentlyViewed" |
214 | 164 | } |
215 | 165 | }, |
216 | | - "additionalProperties": true |
| 166 | + "additionalProperties": false |
217 | 167 | } |
0 commit comments