Skip to content

Feature/validate #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 31, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
schema fixes
Signed-off-by: shmck <shawn.j.mckay@gmail.com>
  • Loading branch information
ShMcK committed May 31, 2020
commit 60d880775e371e8ec98f5803b08bd7ba8d5b5b4a
60 changes: 30 additions & 30 deletions src/utils/schema/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ export default {
examples: ["coderoad"],
},
setup: {
type: "object",
$ref: "#/definitions/setup_action",
description:
"Setup commits or commands used for setting up the test runner on tutorial launch",
Expand Down Expand Up @@ -97,40 +96,41 @@ export default {
additionalProperties: false,
required: ["uri", "branch"],
},
},
dependencies: {
type: "array",
description: "A list of tutorial dependencies",
items: {

dependencies: {
type: "array",
description: "A list of tutorial dependencies",
items: {
type: "object",
properties: {
name: {
type: "string",
description:
"The command line process name of the dependency. It will be checked by running `name --version`",
examples: ["node", "python"],
},
version: {
type: "string",
description:
"The version requirement. See https://github.com/npm/node-semver for options",
examples: [">=10"],
},
},
required: ["name", "version"],
},
},
appVersions: {
type: "object",
description:
"A list of compatable coderoad versions. Currently only a VSCode extension.",
properties: {
name: {
type: "string",
description:
"The command line process name of the dependency. It will be checked by running `name --version`",
examples: ["node", "python"],
},
version: {
vscode: {
type: "string",
description:
"The version requirement. See https://github.com/npm/node-semver for options",
examples: [">=10"],
"The version range for coderoad-vscode that this tutorial is compatable with",
examples: [">=0.7.0"],
},
},
required: ["name", "version"],
},
},
appVersions: {
type: "object",
description:
"A list of compatable coderoad versions. Currently only a VSCode extension.",
properties: {
vscode: {
type: "string",
description:
"The version range for coderoad-vscode that this tutorial is compatable with",
examples: [">=0.7.0"],
},
},
},
additionalProperties: false,
Expand Down Expand Up @@ -202,7 +202,7 @@ export default {
},
},
},
required: ["title", "description", "content"],
required: ["title", "summary", "content"],
},
minItems: 1,
},
Expand Down
4 changes: 2 additions & 2 deletions src/utils/schema/meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,12 @@ export default {
},
watchers: {
type: "array",
description:
"An array file paths that, when updated, will trigger the test runner to run",
items: {
$ref: "#/definitions/file_path",
uniqueItems: true,
},
description:
"An array file paths that, when updated, will trigger the test runner to run",
},
filter: {
type: "string",
Expand Down