Skip to content

Commit

Permalink
Merge pull request #29 from bart-sk/fix--Correctly-parse-absolute-pat…
Browse files Browse the repository at this point in the history
…hs-in-OpenAPI-servers

fix: Correctly parse absolute paths in OpenAPI servers
  • Loading branch information
jwalton authored Jul 23, 2018
2 parents c4c896a + abc1827 commit 2e849c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/oas3/Servers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { compileTemplatePath, PathParserFunction } from './Paths/PathResolver';
import { ParametersMap } from '../types';

const FULL_URL_RE = /^(.*?):\/\/([^/]*?)\/(.*)$/; // e.g. https://foo.bar/v1
const ABSOLUTE_URL_RE = /^\/(.*)$/; // e.g. /v1
const ABSOLUTE_URL_RE = /^(\/.*)$/; // e.g. /v1

export interface ResolvedServer {
oaServer: oas3.ServerObject;
Expand Down

0 comments on commit 2e849c9

Please sign in to comment.