mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-01-24 08:08:54 -06:00
18 lines
440 B
JavaScript
18 lines
440 B
JavaScript
const { createSchema, validateSync } = require('@vue/cli-shared-utils')
|
|
|
|
const schema = createSchema(joi => ({
|
|
id: joi.string().required(),
|
|
label: joi.string().required(),
|
|
type: joi.string().required(),
|
|
handler: joi.func(),
|
|
actionLink: joi.string(),
|
|
importance: joi.string(),
|
|
message: joi.string(),
|
|
link: joi.string(),
|
|
image: joi.string()
|
|
}))
|
|
|
|
exports.validateSuggestion = (options) => {
|
|
validateSync(options, schema)
|
|
}
|