This repository was archived by the owner on Jan 21, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disable patch convenience method for csharp (#599)
* Disable patch convenience method for csharp * upddate * update * update * update
- Loading branch information
Showing
3 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
22
packages/cadl-ranch-specs/http/type/property/nullable/client.tsp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"); |