How to use the isRef function from joi

Find comprehensive JavaScript joi.isRef code examples handpicked from public code repositorys.

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) {
fork icon61
star icon154
watch icon0

+ 9 other calls in file