Skip to content
This repository was archived by the owner on Apr 29, 2020. It is now read-only.

Commit 849849e

Browse files
committed
fix: add validation for view.pattern.uri on view registration
BREAKING CHANGE: `pattern.uri` is now required when registering views
1 parent 008dba7 commit 849849e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

lib/registrars/views.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ module.exports = function exported(_, async, passport, Joi) {
1515
.items(
1616
Joi.object({
1717
name: Joi.string().required(),
18-
pattern: Joi.object().required(),
18+
pattern: Joi.object({
19+
uri: Joi.string().required()
20+
}).required(),
1921
handler: Joi.func().arity(3)
2022
})
2123
);

0 commit comments

Comments
 (0)