public PathItem Combine(PathItem other) { return new PathItem() { Delete = Delete ?? other.Delete, Get = Get ?? other.Get, Head = Head ?? other.Head, Options = Options ?? other.Options, Patch = Patch ?? other.Patch, Post = Post ?? other.Post, Put = Put ?? other.Put, Ref = Ref ?? other.Ref, Parameters = Parameters.Concat(other.Parameters).ToList() }; }
public SwaggerRouteData(string path, PathItem pathItem) { Path = path; PathItem = pathItem; Types = new Dictionary<HttpMethod, Type>(); }