Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion src/schema/skeleton.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ export default {
],
},
},
required: ["id", "setup"],
required: ["id"],
},
},
},
Expand Down
4 changes: 2 additions & 2 deletions tests/skeleton.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ describe("validate skeleton", () => {
const valid = validateSkeleton(json);
expect(valid).toBe(false);
});
it("should fail if step setup is missing", () => {
it("should not fail if step setup is missing", () => {
const step1 = { ...validJson.levels[0].steps[0], setup: undefined };
const level1 = { ...validJson.levels[0], steps: [step1] };
const json = {
Expand All @@ -226,7 +226,7 @@ describe("validate skeleton", () => {
};

const valid = validateSkeleton(json);
expect(valid).toBe(false);
expect(valid).toBe(true);
});
it("should fail if step setup is invalid", () => {
const step1 = {
Expand Down