@@ -1,3 +1,11 @@
|
||||
import { schema } from '../../../lib/frontmatter.js'
|
||||
|
||||
// Some learning tracks have `versions` blocks that match `versions` frontmatter,
|
||||
// so we can import that part of the FM schema.
|
||||
const versionsProps = Object.assign({}, schema.properties.versions)
|
||||
// `versions` are not required in learning tracks the way they are in FM.
|
||||
delete versionsProps.required
|
||||
|
||||
export default {
|
||||
type: 'object',
|
||||
additionalProperties: false,
|
||||
@@ -20,8 +28,9 @@ export default {
|
||||
required: true,
|
||||
},
|
||||
featured_track: {
|
||||
type: 'string',
|
||||
type: ['boolean', 'string'],
|
||||
},
|
||||
versions: versionsProps,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user