anchor.diff:  
   %% @private
   create_swagger_spec(#{swagger := _Version} = GlobalSpec, SanitizeTrails) ->
  -    GlobalSpec#{paths => swagger_paths(SanitizeTrails)};
  +  BasePath =  maps:get(basePath, GlobalSpec, undefined),
  +  SwaggerPaths = swagger_paths(SanitizeTrails, BasePath),
  +  GlobalSpec#{paths => SwaggerPaths};
   create_swagger_spec(#{openapi := _Version} = GlobalSpec, SanitizeTrails) ->
  -  GlobalSpec#{paths => swagger_paths(SanitizeTrails)};
  +  BasePath = deconstruct_openapi_url(GlobalSpec),
  +  SwaggerPaths = swagger_paths(SanitizeTrails, BasePath),
  +  GlobalSpec#{paths => SwaggerPaths};
   create_swagger_spec(GlobalSpec, SanitizeTrails) ->
     create_swagger_spec(GlobalSpec#{openapi => <<"3.0.0">>}, SanitizeTrails).
  +
  +%% @private
  +deconstruct_openapi_url(GlobalSpec) ->
  +    Servers = maps:get(servers, GlobalSpec, [#{}]),
  +    Url = maps:get(url, hd(Servers), <<"">>),
  +    maps:get(path, uri_string:parse(Url)).
   
   %% @private
   validate_swagger_map(Map) ->
  
positive.code:   not maps:get(hidden, Metadata, false).
  
  %% @private
  swagger_paths([], Acc) ->
    Acc;
  swagger_paths([Trail | T], Acc) ->
    Path = normalize_path(trails:path_match(Trail)),
    Metadata = normalize_map_values(validate_metadata(trails:metadata(Trail))),
    swagger_paths(T, maps:put(Path, Metadata, Acc)).
  
  %% @private
  normalize_path(Path) ->
  
negative.code: %% @hidden
  -spec swagger_paths([trails:trail()]) -> map().
  swagger_paths(Trails) ->
    swagger_paths(Trails, undefined).
  
  -spec swagger_paths([trails:trail()], binary() | string() | undefined) -> map().
  swagger_paths(Trails, BasePath) ->
      Paths = trans_swagger_paths(Trails, #{}),
      refactor_base_path(Paths, BasePath).
  
  %% @hidden
  -spec validate_metadata(trails:metadata(_)) -> metadata().
  