2018-10-19 15:17:02 +00:00
|
|
|
import validations from 'consul-ui/validations/policy';
|
|
|
|
import builderFactory from 'consul-ui/utils/form/builder';
|
|
|
|
const builder = builderFactory();
|
2019-05-01 18:09:29 +00:00
|
|
|
export default function(container, name = 'policy', v = validations, form = builder) {
|
2018-10-19 15:17:02 +00:00
|
|
|
return form(name, {
|
|
|
|
Datacenters: {
|
|
|
|
type: 'array',
|
|
|
|
},
|
|
|
|
}).setValidators(v);
|
|
|
|
}
|