nav tabs on admin dashboard
This commit is contained in:
21
node_modules/postcss-loader/node_modules/schema-utils/README.md
generated
vendored
21
node_modules/postcss-loader/node_modules/schema-utils/README.md
generated
vendored
@@ -27,7 +27,7 @@ npm i schema-utils
|
||||
|
||||
### `validateOptions`
|
||||
|
||||
**schema.json**
|
||||
**`schema.json`**
|
||||
```js
|
||||
{
|
||||
"type": "object",
|
||||
@@ -38,6 +38,25 @@ npm i schema-utils
|
||||
}
|
||||
```
|
||||
|
||||
#### Error Messages (Custom)
|
||||
|
||||
**`schema.json`**
|
||||
```js
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"option": {
|
||||
"type": [ "boolean" ]
|
||||
}
|
||||
},
|
||||
// Overrides the default err.message for option
|
||||
"errorMessage": {
|
||||
"option": "should be {Boolean} (https:/github.com/org/repo#anchor)"
|
||||
}
|
||||
"additionalProperties": false
|
||||
}
|
||||
```
|
||||
|
||||
```js
|
||||
import schema from 'path/to/schema.json'
|
||||
import validateOptions from 'schema-utils'
|
||||
|
||||
Reference in New Issue
Block a user