Skip to content

Commit 60d8807

Browse files
committed
schema fixes
Signed-off-by: shmck <[email protected]>
1 parent cc36f25 commit 60d8807

File tree

2 files changed

+32
-32
lines changed

2 files changed

+32
-32
lines changed

Diff for: src/utils/schema/index.ts

+30-30
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ export default {
6969
examples: ["coderoad"],
7070
},
7171
setup: {
72-
type: "object",
7372
$ref: "#/definitions/setup_action",
7473
description:
7574
"Setup commits or commands used for setting up the test runner on tutorial launch",
@@ -97,40 +96,41 @@ export default {
9796
additionalProperties: false,
9897
required: ["uri", "branch"],
9998
},
100-
},
101-
dependencies: {
102-
type: "array",
103-
description: "A list of tutorial dependencies",
104-
items: {
99+
100+
dependencies: {
101+
type: "array",
102+
description: "A list of tutorial dependencies",
103+
items: {
104+
type: "object",
105+
properties: {
106+
name: {
107+
type: "string",
108+
description:
109+
"The command line process name of the dependency. It will be checked by running `name --version`",
110+
examples: ["node", "python"],
111+
},
112+
version: {
113+
type: "string",
114+
description:
115+
"The version requirement. See https://github.com/npm/node-semver for options",
116+
examples: [">=10"],
117+
},
118+
},
119+
required: ["name", "version"],
120+
},
121+
},
122+
appVersions: {
105123
type: "object",
124+
description:
125+
"A list of compatable coderoad versions. Currently only a VSCode extension.",
106126
properties: {
107-
name: {
108-
type: "string",
109-
description:
110-
"The command line process name of the dependency. It will be checked by running `name --version`",
111-
examples: ["node", "python"],
112-
},
113-
version: {
127+
vscode: {
114128
type: "string",
115129
description:
116-
"The version requirement. See https://github.com/npm/node-semver for options",
117-
examples: [">=10"],
130+
"The version range for coderoad-vscode that this tutorial is compatable with",
131+
examples: [">=0.7.0"],
118132
},
119133
},
120-
required: ["name", "version"],
121-
},
122-
},
123-
appVersions: {
124-
type: "object",
125-
description:
126-
"A list of compatable coderoad versions. Currently only a VSCode extension.",
127-
properties: {
128-
vscode: {
129-
type: "string",
130-
description:
131-
"The version range for coderoad-vscode that this tutorial is compatable with",
132-
examples: [">=0.7.0"],
133-
},
134134
},
135135
},
136136
additionalProperties: false,
@@ -202,7 +202,7 @@ export default {
202202
},
203203
},
204204
},
205-
required: ["title", "description", "content"],
205+
required: ["title", "summary", "content"],
206206
},
207207
minItems: 1,
208208
},

Diff for: src/utils/schema/meta.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,12 @@ export default {
7777
},
7878
watchers: {
7979
type: "array",
80-
description:
81-
"An array file paths that, when updated, will trigger the test runner to run",
8280
items: {
8381
$ref: "#/definitions/file_path",
8482
uniqueItems: true,
8583
},
84+
description:
85+
"An array file paths that, when updated, will trigger the test runner to run",
8686
},
8787
filter: {
8888
type: "string",

0 commit comments

Comments
 (0)