2020-12-19 15:59:38 +08:00

20 lines
464 B
JavaScript

export default (api) => {
api.describe({
key: 'copy',
config: {
schema(joi) {
return joi.array().items(
joi.alternatives(
joi.object({
from: joi.string(),
to: joi.string()
}),
joi.string(),
),
);
}
}
});
};