mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-01-19 13:50:11 -06:00
12 lines
268 B
JavaScript
12 lines
268 B
JavaScript
const { createSchema, validateSync } = require('@vue/cli-shared-utils')
|
|
|
|
const schema = createSchema(joi => ({
|
|
id: joi.string().required(),
|
|
path: joi.string(),
|
|
url: joi.string()
|
|
}))
|
|
|
|
exports.validateClientAddon = (options) => {
|
|
validateSync(options, schema)
|
|
}
|