diff --git a/utils/Yup.ts b/utils/Yup.ts new file mode 100644 index 0000000..d5891f3 --- /dev/null +++ b/utils/Yup.ts @@ -0,0 +1,9 @@ +import * as Yup from 'yup' + +export const botListArgument = Yup.object({ + type: Yup.string().oneOf(['VOTE', 'TRUSTED', 'NEW', 'PARTNERED', 'CATEGOORY', 'SEARCH']).required(), + page: Yup.number().positive().integer().optional().default(1), + query: Yup.string().optional() +}) + +export default Yup \ No newline at end of file