1
0
mirror of synced 2026-01-06 06:02:35 -05:00

Merge pull request #22216 from github/repo-sync

repo sync
This commit is contained in:
Octomerger Bot
2022-11-21 13:03:58 -08:00
committed by GitHub

View File

@@ -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,
},
},
},