Skip to content

Commit 1dd43cf

Browse files
committedAug 24, 2020
fix: val. use options.source not origin for url base
1 parent 7b50c86 commit 1dd43cf

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
@@ -67,7 +67,7 @@ function validateUrl(s, contextServers, context, options) {
6767
should(s).be.a.String();
6868
should(s).not.be.Null();
6969
if (!options.laxurls) should(s).not.be.exactly('', 'Invalid empty URL ' + context);
70-
let base = options.origin || 'http://localhost/';
70+
let base = options.source || 'http://localhost/';
7171
let variables = {};
7272
if (contextServers && contextServers.length) {
7373
let servers = contextServers[0];

0 commit comments

Comments
 (0)
Please sign in to comment.