1
0
mirror of synced 2025-12-22 03:16:52 -05:00
Files
docs/tests/helpers/schemas/learning-tracks-schema.js
Kevin Heis 8a56437c93 Pretty format (#20352)
* Update prettier flow to include JS

* Run prettier

* ...run prettier
2021-07-14 14:35:01 -07:00

30 lines
595 B
JavaScript

export default {
properties: {
type: 'object',
additionalProperties: false,
patternProperties: {
'^[a-zA-Z-_]+$': {
type: 'object',
properties: {
title: {
type: 'string',
required: true,
},
description: {
type: 'string',
required: true,
},
guides: {
type: 'array',
items: { type: 'string' },
required: true,
},
featured_track: {
type: 'boolean',
},
},
},
},
},
}