open-consul/ui/packages/consul-ui/app/validations/acl.js

6 lines
205 B
JavaScript

import { validatePresence, validateLength } from 'ember-changeset-validations/validators';
export default {
Name: [validatePresence(true), validateLength({ min: 1 })],
Type: validatePresence(true),
};