Skip to content

Commit c44fb50

Browse files
Add LRO usage flags (#7370)
Contributes to Azure/azure-sdk-for-net#49632
1 parent 1dfcac6 commit c44fb50

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/InputModelTypeUsage.cs

+2
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,7 @@ public enum InputModelTypeUsage
1919
Json = 256,
2020
Xml = 512,
2121
Exception = 1024,
22+
LroInitial = 2048,
23+
LroFinalEnvelope = 4096,
2224
}
2325
}

packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.Input/src/InputTypes/Serialization/TypeSpecInputModelTypeConverter.cs

-2
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,6 @@ internal static InputModelType CreateModelType(ref Utf8JsonReader reader, string
105105
model.Summary = summary;
106106
model.Doc = doc;
107107
var parsedUsage = Enum.TryParse<InputModelTypeUsage>(usageString, ignoreCase: true, out var usage) ? usage : InputModelTypeUsage.None;
108-
// TO-DO: Manually add JSON usage flag for now until support for parsing this is added to the TSP https://github.com/microsoft/typespec/issues/3392
109-
parsedUsage |= InputModelTypeUsage.Json;
110108
model.Usage = parsedUsage;
111109
model.DiscriminatorValue = discriminatorValue;
112110
model.DiscriminatorProperty = discriminatorProperty;

0 commit comments

Comments
 (0)