Skip to content

Commit cd12053

Browse files
wip
1 parent f1a7649 commit cd12053

106 files changed

Lines changed: 11588 additions & 291 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

packages/http-client-csharp/eng/scripts/Spector-Helper.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
$repoRoot = Resolve-Path (Join-Path $PSScriptRoot '..')
22

33
$failingSpecs = @(
4-
Join-Path 'http' 'payload' 'xml'
4+
#Join-Path 'http' 'payload' 'xml'
55
Join-Path 'http' 'type' 'model' 'flatten'
66
Join-Path 'http' 'type' 'model' 'templated'
77
Join-Path 'http' 'client' 'naming' # pending until https://github.com/microsoft/typespec/issues/5653 is resolved

packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/src/Primitives/ScmKnownParameters.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ internal static class ScmKnownParameters
2121

2222
public static readonly ParameterProvider XmlWriter = new("writer", FormattableStringHelpers.Empty, typeof(XmlWriter));
2323
public static readonly ParameterProvider NameHint = new("nameHint", FormattableStringHelpers.Empty, typeof(string));
24-
public static readonly ParameterProvider XElement = new("element", FormattableStringHelpers.Empty, typeof(XElement));
2524
public static readonly ParameterProvider Utf8JsonWriter = new("writer", FormattableStringHelpers.Empty, typeof(Utf8JsonWriter));
2625
public static readonly ParameterProvider Utf8JsonReader = new("reader", FormattableStringHelpers.Empty, typeof(Utf8JsonReader), isRef: true);
2726
public static readonly ParameterProvider JsonOptions = new("options", FormattableStringHelpers.Empty, typeof(JsonSerializerOptions));

packages/http-client-csharp/generator/Microsoft.TypeSpec.Generator.ClientModel/src/Providers/MrwSerializationTypeDefinition.Dynamic.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -503,14 +503,14 @@ private static string BuildJsonPathForElement(string propertySerializedName, Lis
503503

504504
private static ValueExpression GetDeserializationMethodInvocationForType(
505505
ModelProvider model,
506-
ScopedApi<JsonElement> jsonElementVariable,
506+
ScopedApi element,
507507
ValueExpression? dataVariable = null,
508508
ValueExpression? optionsVariable = null)
509509
{
510510
optionsVariable ??= ModelSerializationExtensionsSnippets.Wire;
511511
return model is ScmModelProvider { IsDynamicModel: true }
512-
? model.Type.Deserialize(jsonElementVariable, dataVariable, optionsVariable)
513-
: model.Type.Deserialize(jsonElementVariable, null, optionsVariable);
512+
? model.Type.Deserialize(element, dataVariable, optionsVariable)
513+
: model.Type.Deserialize(element, null, optionsVariable);
514514
}
515515
}
516516
}

0 commit comments

Comments
 (0)