Skip to content

feat(distributions): mark exportMode and fileIds as deprecated in AddDistributionRequest#362

Merged
andrii-bodnar merged 2 commits intomainfrom
copilot/mark-deprecated-create-params
Mar 4, 2026
Merged

feat(distributions): mark exportMode and fileIds as deprecated in AddDistributionRequest#362
andrii-bodnar merged 2 commits intomainfrom
copilot/mark-deprecated-create-params

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 4, 2026

The Crowdin API has marked exportMode and fileIds as deprecated parameters on the Add Distribution endpoint. The SDK should surface this to consumers at compile time.

Changes

  • AddDistributionRequest: Added [Obsolete(MessageTexts.DeprecatedProperty)] to ExportMode and FileIds properties, matching the convention used in AddProjectMemberRequest, AddTeamToProjectRequest, etc.
// Both properties now emit CS0618 obsolete warnings at the call site
var request = new AddDistributionRequest
{
    Name = "My Distribution",
    ExportMode = DistributionExportMode.Default, // ⚠️ deprecated
    FileIds = new[] { 1L, 2L },                 // ⚠️ deprecated
    BundleIds = new[] { 3L },
};

Backward compatibility is preserved — the properties remain functional, only a compiler warning is emitted.

Original prompt

This section details on the original issue you should resolve

<issue_title>Mark deprecated Distribution create params</issue_title>
<issue_description>The Crowdin API marks exportMode and fileIds request parameters in the Add Distribution method as deprecated.

The Crowdin API client libraries should be updated to mark these parameters as deprecated in SDK method signatures, so developers are clearly guided away from using them while keeping backward compatibility.

References:

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

…DistributionRequest

Co-authored-by: andrii-bodnar <29282228+andrii-bodnar@users.noreply.github.com>
Copilot AI changed the title [WIP] Mark deprecated parameters in add distribution method feat(distributions): mark exportMode and fileIds as deprecated in AddDistributionRequest Mar 4, 2026
@andrii-bodnar andrii-bodnar marked this pull request as ready for review March 4, 2026 13:32
@andrii-bodnar andrii-bodnar merged commit 7966ace into main Mar 4, 2026
5 checks passed
@andrii-bodnar andrii-bodnar deleted the copilot/mark-deprecated-create-params branch March 4, 2026 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mark deprecated Distribution create params

2 participants