private IEnumerable <MappingModel> MapPaths(OpenApiPaths paths, IList <OpenApiServer> servers) { return(paths.Select(p => MapPath(p.Key, p.Value, servers)).SelectMany(x => x)); }
public static IEnumerable <ILocatedOpenApiElement <OpenApiPathItem> > ToLocatedElements(this OpenApiPaths paths) => paths.Select(p => p.Value.CreateRoot(p.Key));
private IEnumerable <MappingModel> MapPaths(OpenApiPaths paths) { return(paths.Select(p => MapPath(p.Key, p.Value)).SelectMany(x => x)); }