Skip to content

Commit e1cea0b

Browse files
committedAug 24, 2020
fix: validator improve server-url/variable msg
1 parent 63c5eba commit e1cea0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎packages/oas-validator/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ function checkServer(server, options) {
461461
if (options.lint) options.linter('serverVariable',server.variables[v],v,options);
462462
options.context.pop();
463463
}
464-
should(Object.keys(server.variables).length).be.exactly(srvVars);
464+
should(Object.keys(server.variables).length).be.exactly(srvVars,'Missing template variable in server url');
465465
options.context.pop();
466466
}
467467
for (let k in server) {

0 commit comments

Comments
 (0)
Please sign in to comment.