mirror of
https://github.com/strapi/strapi.git
synced 2025-07-20 23:47:46 +00:00
20 lines
357 B
JavaScript
20 lines
357 B
JavaScript
![]() |
'use strict';
|
||
|
const yup = require('yup');
|
||
|
|
||
|
const schema = yup
|
||
|
.object()
|
||
|
.shape({
|
||
|
bulkable: yup.boolean().required(),
|
||
|
filterable: yup.boolean().required(),
|
||
|
pageSize: yup
|
||
|
.number()
|
||
|
.integer()
|
||
|
.min(10)
|
||
|
.max(100)
|
||
|
.required(),
|
||
|
searchable: yup.boolean().required(),
|
||
|
})
|
||
|
.noUnknown();
|
||
|
|
||
|
module.exports = schema;
|