How to use the isRef function from joi
Find comprehensive JavaScript joi.isRef code examples handpicked from public code repositorys.
GitHub: Twipped/joi-to-swagger
134 135 136 137 138 139 140 141 142 143
} } const min = find(schema._rules, { name: 'min' }); if (min) { swagger.minimum = joi.isRef(min.args.limit) ? getRefValue(min.args.limit, schema, 0) : min.args.limit; } const max = find(schema._rules, { name: 'max' }); if (max) {
61
154
0
+ 9 other calls in file
joi.string is the most popular function in joi (40578 examples)