Upgrade Scriban.Signed (#1434)

This commit is contained in:
Stef Heyenrath
2026-03-30 19:49:16 +02:00
committed by GitHub
parent 070e4b6ab9
commit b4f5b9256c
3 changed files with 6 additions and 6 deletions

View File

@@ -19,7 +19,7 @@ internal class WireMockListAccessor : IListAccessor, IObjectAccessor
return target?.ToString() ?? string.Empty; return target?.ToString() ?? string.Empty;
} }
public void SetValue(TemplateContext context, SourceSpan span, object target, int index, object value) public void SetValue(TemplateContext context, SourceSpan span, object target, int index, object? value)
{ {
throw new NotImplementedException(); throw new NotImplementedException();
} }
@@ -46,7 +46,7 @@ internal class WireMockListAccessor : IListAccessor, IObjectAccessor
throw new NotImplementedException(); throw new NotImplementedException();
} }
public bool TrySetValue(TemplateContext context, SourceSpan span, object target, string member, object value) public bool TrySetValue(TemplateContext context, SourceSpan span, object target, string member, object? value)
{ {
throw new NotImplementedException(); throw new NotImplementedException();
} }
@@ -56,7 +56,7 @@ internal class WireMockListAccessor : IListAccessor, IObjectAccessor
throw new NotImplementedException(); throw new NotImplementedException();
} }
public bool TrySetItem(TemplateContext context, SourceSpan span, object target, object index, object value) public bool TrySetItem(TemplateContext context, SourceSpan span, object target, object index, object? value)
{ {
throw new NotImplementedException(); throw new NotImplementedException();
} }

View File

@@ -8,9 +8,9 @@ namespace WireMock.Transformers.Scriban;
internal class WireMockTemplateContext : TemplateContext internal class WireMockTemplateContext : TemplateContext
{ {
protected override IObjectAccessor GetMemberAccessorImpl(object target) protected override IObjectAccessor? GetMemberAccessorImpl(object target)
{ {
return target?.GetType().GetGenericTypeDefinition() == typeof(WireMockList<>) ? return target.GetType().GetGenericTypeDefinition() == typeof(WireMockList<>) ?
new WireMockListAccessor() : new WireMockListAccessor() :
base.GetMemberAccessorImpl(target); base.GetMemberAccessorImpl(target);
} }

View File

@@ -43,7 +43,7 @@
<PackageReference Include="SimMetrics.Net" Version="1.0.5" /> <PackageReference Include="SimMetrics.Net" Version="1.0.5" />
<PackageReference Include="TinyMapper.Signed" Version="4.0.0" /> <PackageReference Include="TinyMapper.Signed" Version="4.0.0" />
<PackageReference Include="Microsoft.IdentityModel.Protocols.OpenIdConnect" Version="6.34.0" /> <PackageReference Include="Microsoft.IdentityModel.Protocols.OpenIdConnect" Version="6.34.0" />
<PackageReference Include="Scriban.Signed" Version="5.5.0" /> <PackageReference Include="Scriban.Signed" Version="7.0.6" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>