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

10 lines
250 B
JavaScript

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
import { validatePresence, validateLength } from 'ember-changeset-validations/validators';
export default {
Key: [validatePresence(true), validateLength({ min: 1 })],
};