2021-02-08 16:52:58 +08:00

20 lines
462 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()
)
);
}
}
});
};