feat(wizard): add edge form [EE-3000] (#6979)
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import { object, boolean, string } from 'yup';
|
||||
|
||||
import { validation as nomadTokenValidation } from './NomadTokenField';
|
||||
|
||||
export function validationSchema(isNomadTokenVisible?: boolean) {
|
||||
return object().shape({
|
||||
allowSelfSignedCertificates: boolean(),
|
||||
envVars: string(),
|
||||
...(isNomadTokenVisible ? nomadTokenValidation() : {}),
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user