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

5 lines
172 B
JavaScript

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