Example #1
0
 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));
Example #3
0
 private IEnumerable <MappingModel> MapPaths(OpenApiPaths paths)
 {
     return(paths.Select(p => MapPath(p.Key, p.Value)).SelectMany(x => x));
 }