Skip to content

Commit

Permalink
Merge pull request #22216 from github/repo-sync
Browse files Browse the repository at this point in the history
repo sync
  • Loading branch information
Octomerger authored Nov 21, 2022
2 parents 0e34e35 + eef345a commit c3a79d7
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion tests/helpers/schemas/learning-tracks-schema.js
Original file line number Diff line number Diff line change
@@ -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,
Expand All @@ -20,8 +28,9 @@ export default {
required: true,
},
featured_track: {
type: 'string',
type: ['boolean', 'string'],
},
versions: versionsProps,
},
},
},
Expand Down

0 comments on commit c3a79d7

Please sign in to comment.