Skip to content

Commit dbb1a67

Browse files
committed
fix: id not coming through to final json
1 parent 225e387 commit dbb1a67

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/schema/tutorial.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -316,5 +316,5 @@ export default {
316316
},
317317
},
318318
additionalProperties: false,
319-
required: ["version", "summary", "config", "levels"],
319+
required: ["id", "version", "summary", "config", "levels"],
320320
};

src/utils/parse.ts

+1
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ export function parse (params: ParseParams): any {
144144
const mdContent: TutorialFrame = parseMdContent(params.text + '\n\n')
145145

146146
const parsed: Partial<T.Tutorial> = {
147+
id: params.skeleton.id,
147148
version: params.skeleton.version,
148149
summary: mdContent.summary,
149150
config: params.skeleton.config || {},

0 commit comments

Comments
 (0)