Skip to content

Commit 35f6818

Browse files
.Net: Update to Yaml.DotNet 16.3.0 (#12641)
### Motivation and Context <!-- Thank you for your contribution to the semantic-kernel repo! Please help reviewers and future users, providing the following information: 1. Why is this change required? 2. What problem does it solve? 3. What scenario does it contribute to? 4. If it fixes an open issue, please link to the issue here. --> ### Description <!-- Describe your changes, the overall approach, the underlying design. These notes will help understanding how your code works. Thanks! --> ### Contribution Checklist <!-- Before submitting this PR, please make sure: --> - [ ] The code builds clean without any errors or warnings - [ ] The PR follows the [SK Contribution Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md) and the [pre-submission formatting script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts) raises no violations - [ ] All unit tests pass, and I have added new tests where possible - [ ] I didn't break anyone 😄
1 parent 08bd2b6 commit 35f6818

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

dotnet/Directory.Packages.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@
149149
<PackageVersion Include="Microsoft.Plugins.Manifest" Version="1.0.0-rc3" />
150150
<PackageVersion Include="protobuf-net" Version="3.2.45" />
151151
<PackageVersion Include="protobuf-net.Reflection" Version="3.2.12" />
152-
<PackageVersion Include="YamlDotNet" Version="15.3.0" />
152+
<PackageVersion Include="YamlDotNet" Version="16.3.0" />
153153
<PackageVersion Include="Fluid.Core" Version="2.24.0" />
154154
<!-- Memory stores -->
155155
<PackageVersion Include="Microsoft.Azure.Cosmos" Version="3.52.0" />

dotnet/src/Agents/Yaml/AgentMetadataTypeConverter.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public bool Accepts(Type type)
2424
}
2525

2626
/// <inheritdoc/>
27-
public object? ReadYaml(IParser parser, Type type)
27+
public object? ReadYaml(IParser parser, Type type, ObjectDeserializer rootDeserializer)
2828
{
2929
s_deserializer ??= new DeserializerBuilder()
3030
.WithNamingConvention(UnderscoredNamingConvention.Instance)
@@ -55,7 +55,7 @@ public bool Accepts(Type type)
5555
}
5656

5757
/// <inheritdoc/>
58-
public void WriteYaml(IEmitter emitter, object? value, Type type)
58+
public void WriteYaml(IEmitter emitter, object? value, Type type, ObjectSerializer serializer)
5959
{
6060
throw new NotImplementedException();
6161
}

dotnet/src/Agents/Yaml/ModelConfigurationTypeConverter.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public bool Accepts(Type type)
2424
}
2525

2626
/// <inheritdoc/>
27-
public object? ReadYaml(IParser parser, Type type)
27+
public object? ReadYaml(IParser parser, Type type, ObjectDeserializer rootDeserializer)
2828
{
2929
s_deserializer ??= new DeserializerBuilder()
3030
.WithNamingConvention(UnderscoredNamingConvention.Instance)
@@ -55,7 +55,7 @@ public bool Accepts(Type type)
5555
}
5656

5757
/// <inheritdoc/>
58-
public void WriteYaml(IEmitter emitter, object? value, Type type)
58+
public void WriteYaml(IEmitter emitter, object? value, Type type, ObjectSerializer serializer)
5959
{
6060
throw new NotImplementedException();
6161
}

dotnet/src/Experimental/Process.Core/WorkflowSerializer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,13 +152,13 @@ internal class SnakeCaseEnumConverter : IYamlTypeConverter
152152
{
153153
public bool Accepts(Type type) => type.IsEnum;
154154

155-
public object ReadYaml(IParser parser, Type type)
155+
public object ReadYaml(IParser parser, Type type, ObjectDeserializer rootDeserializer)
156156
{
157157
var value = parser.Consume<Scalar>().Value;
158158
return Enum.Parse(type, value.Replace("_", ""), true);
159159
}
160160

161-
public void WriteYaml(IEmitter emitter, object? value, Type type)
161+
public void WriteYaml(IEmitter emitter, object? value, Type type, ObjectSerializer serializer)
162162
{
163163
var enumValue = value?.ToString();
164164
if (enumValue == null)

dotnet/src/Functions/Functions.Yaml/PromptExecutionSettingsTypeConverter.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public bool Accepts(Type type)
2525
}
2626

2727
/// <inheritdoc/>
28-
public object? ReadYaml(IParser parser, Type type)
28+
public object? ReadYaml(IParser parser, Type type, ObjectDeserializer rootDeserializer)
2929
{
3030
s_deserializer ??= new DeserializerBuilder()
3131
.WithNamingConvention(UnderscoredNamingConvention.Instance)
@@ -58,7 +58,7 @@ public bool Accepts(Type type)
5858
}
5959

6060
/// <inheritdoc/>
61-
public void WriteYaml(IEmitter emitter, object? value, Type type)
61+
public void WriteYaml(IEmitter emitter, object? value, Type type, ObjectSerializer serializer)
6262
{
6363
throw new NotImplementedException();
6464
}

0 commit comments

Comments
 (0)