steady-api
Version:
Configurable REST API built with Express and TypeScript
23 lines • 583 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
const Joi = require("joi");
/**
* Paramter type: email
* Used for: emails
*/
const type = {
name: "file",
description: "File uploads",
validator: function (param) {
return Joi.object().keys({
name: Joi.string(),
mv: Joi.func(),
data: Joi.any(),
encoding: Joi.string(),
mimetype: Joi.string()
}).optionalKeys('encoding', 'mimetype');
},
example: ""
};
exports.default = type;
//# sourceMappingURL=file.js.map
;