anvil/striker-ui/components/ManageHost/testAccessSchema.ts
2024-03-07 11:53:54 -05:00

16 lines
324 B
TypeScript

import * as yup from 'yup';
import { REP_IPV4 } from '../../lib/consts/REG_EXP_PATTERNS';
const schema = yup.object({
ip: yup
.string()
.matches(REP_IPV4, {
message: 'Expected IP address to be a valid IPv4 address.',
})
.required(),
password: yup.string().required(),
});
export default schema;