Fix package reference bug
This commit is contained in:
@@ -13,11 +13,12 @@ public class OpenApiDao : AbstractDao
|
||||
|
||||
public Location ConfigOf(string spec) => GetOpenApi(true, spec).SpecConfig;
|
||||
|
||||
public OpenApiConfig GetOpenApi(bool isLocal, string file)
|
||||
public OpenApiConfig GetOpenApi(bool isLocal, string specPath)
|
||||
{
|
||||
var items = file.Split("/");
|
||||
var o = ConfManager.OpenApi.Map(ConfManager, items[0], items[1]);
|
||||
o.AddRoot(ConfManager.GetRoot(isLocal));
|
||||
specPath = specPath ?? _spec;
|
||||
string[] items = specPath.Split("/");
|
||||
OpenApiConfig o = _confManager.OpenApi.Map(_confManager, items[0], items[1]);
|
||||
o.AddRoot(_confManager.GetRoot(isLocal));
|
||||
return o;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user