crowdin / crowdin-api-client-dotnet

.NET client library for Crowdin API
https://www.nuget.org/packages/Crowdin.Api/
MIT License
50 stars 27 forks source link

Fix Invalid Request Parameters Exception in ListLabels Method for File-Based Projects #243

Open Cancri55E opened 1 month ago

Cancri55E commented 1 month ago

Description: After the https://github.com/crowdin/crowdin-api-client-dotnet/pull/224/ ListLabels method currently includes an isSystem = false parameter. When this method is called for file-based projects, it results in an exception: "Invalid Request Parameters: Key [isSystem]: Not allowed for file-based projects."

Recommendation: To resolve this issue, we can make the isSystem parameter nullable. This will prevent the method from automatically including the parameter in requests that are not allowed, thereby avoiding the exception and ensuring compatibility with file-based projects.