Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ using RestSharp;
using RestSharp.Serializers;
using RestSharpMethod = RestSharp.Method;
using FileIO = System.IO.File;
using Path = global::System.IO.Path;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using an alias might lead to more conflicts with other apis that have objects called Path. Please just fully qualify the Path method without using an alias.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update the PR. Fully qualify Path class

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

using RestSharpMethod = RestSharp.Method;
using FileIO = System.IO.File;

given that we're already using aliases above, shall we follow the same pattern for Path to make it consistent? e.g.

using PathIO = System.IO.Path;

@devhl-labs devhl-labs Aug 24, 2024

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not think we should be using aliases. That will make it easier for unexpected conflicts to occur. Using the fully qualified name is more verbose, but also more concise. We don't care about verbosity here because it is generated code anyway.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't care about verbosity here because it is generated code anyway.

some users do care about it based on feedback we'd previously when using fully qualified namespace

i don't think giving this one a try

{{#supportsRetry}}
using Polly;
{{/supportsRetry}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
using RestSharp.Serializers;
using RestSharpMethod = RestSharp.Method;
using FileIO = System.IO.File;
using Path = global::System.IO.Path;
using Polly;
using Org.OpenAPITools.Model;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
using RestSharp.Serializers;
using RestSharpMethod = RestSharp.Method;
using FileIO = System.IO.File;
using Path = global::System.IO.Path;
using Polly;
using Org.OpenAPITools.Model;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
using RestSharp.Serializers;
using RestSharpMethod = RestSharp.Method;
using FileIO = System.IO.File;
using Path = global::System.IO.Path;
using Polly;
using Org.OpenAPITools.Client.Auth;
using Org.OpenAPITools.Model;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
using RestSharp.Serializers;
using RestSharpMethod = RestSharp.Method;
using FileIO = System.IO.File;
using Path = global::System.IO.Path;
using Polly;
using Org.OpenAPITools.Client.Auth;
using Org.OpenAPITools.Model;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
using RestSharp.Serializers;
using RestSharpMethod = RestSharp.Method;
using FileIO = System.IO.File;
using Path = global::System.IO.Path;
using Polly;
using Org.OpenAPITools.Client.Auth;
using Org.OpenAPITools.Model;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
using RestSharp.Serializers;
using RestSharpMethod = RestSharp.Method;
using FileIO = System.IO.File;
using Path = global::System.IO.Path;
using Polly;
using Org.OpenAPITools.Model;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
using RestSharp.Serializers;
using RestSharpMethod = RestSharp.Method;
using FileIO = System.IO.File;
using Path = global::System.IO.Path;
using Polly;
using Org.OpenAPITools.Client.Auth;
using Org.OpenAPITools.Model;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
using RestSharp.Serializers;
using RestSharpMethod = RestSharp.Method;
using FileIO = System.IO.File;
using Path = global::System.IO.Path;
using Polly;
using Org.OpenAPITools.Client.Auth;
using Org.OpenAPITools.Model;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
using RestSharp.Serializers;
using RestSharpMethod = RestSharp.Method;
using FileIO = System.IO.File;
using Path = global::System.IO.Path;
using Polly;
using Org.OpenAPITools.Model;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
using RestSharp.Serializers;
using RestSharpMethod = RestSharp.Method;
using FileIO = System.IO.File;
using Path = global::System.IO.Path;
using Polly;
using Org.OpenAPITools.Client.Auth;
using Org.OpenAPITools.Model;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
using RestSharp.Serializers;
using RestSharpMethod = RestSharp.Method;
using FileIO = System.IO.File;
using Path = global::System.IO.Path;
using Polly;
using Org.OpenAPITools.Client.Auth;
using Org.OpenAPITools.Model;
Expand Down