Skip to content
This repository was archived by the owner on Jan 21, 2025. It is now read-only.

Commit

Permalink
Disable patch convenience method for csharp (#599)
Browse files Browse the repository at this point in the history
* Disable patch convenience method for csharp

* upddate

* update

* update

* update
  • Loading branch information
pshao25 authored Jun 13, 2024
1 parent 83c129b commit 656524d
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/lovely-pumpkins-protect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@azure-tools/cadl-ranch-specs": patch
---

Disable patch convenience method for csharp
6 changes: 6 additions & 0 deletions packages/cadl-ranch-specs/http/azure/core/basic/client.tsp
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import "@azure-tools/typespec-client-generator-core";
import "./main.tsp";

using Azure.ClientGenerator.Core;

@@convenientAPI(_Specs_.Azure.Core.Basic.createOrUpdate, false, "csharp");
22 changes: 22 additions & 0 deletions packages/cadl-ranch-specs/http/type/property/nullable/client.tsp
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import "@azure-tools/typespec-client-generator-core";
import "./main.tsp";

using Azure.ClientGenerator.Core;

@@convenientAPI(Type.Property.Nullable.String.patchNonNull, false, "csharp");
@@convenientAPI(Type.Property.Nullable.String.patchNull, false, "csharp");

@@convenientAPI(Type.Property.Nullable.Bytes.patchNonNull, false, "csharp");
@@convenientAPI(Type.Property.Nullable.Bytes.patchNull, false, "csharp");

@@convenientAPI(Type.Property.Nullable.Datetime.patchNonNull, false, "csharp");
@@convenientAPI(Type.Property.Nullable.Datetime.patchNull, false, "csharp");

@@convenientAPI(Type.Property.Nullable.Duration.patchNonNull, false, "csharp");
@@convenientAPI(Type.Property.Nullable.Duration.patchNull, false, "csharp");

@@convenientAPI(Type.Property.Nullable.CollectionsByte.patchNonNull, false, "csharp");
@@convenientAPI(Type.Property.Nullable.CollectionsByte.patchNull, false, "csharp");

@@convenientAPI(Type.Property.Nullable.CollectionsModel.patchNonNull, false, "csharp");
@@convenientAPI(Type.Property.Nullable.CollectionsModel.patchNull, false, "csharp");

0 comments on commit 656524d

Please sign in to comment.