mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-04-26 10:18:26 +02:00
Update Scriban.Signed to version 5.5.0 (#777)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using System;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Scriban;
|
||||
using Scriban.Parsing;
|
||||
@@ -50,6 +50,20 @@ namespace WireMock.Transformers.Scriban
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public bool TryGetItem(TemplateContext context, SourceSpan span, object target, object index, out object value)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public bool TrySetItem(TemplateContext context, SourceSpan span, object target, object index, object value)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public bool HasIndexer => throw new NotImplementedException();
|
||||
|
||||
public Type IndexType => throw new NotImplementedException();
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -1,19 +1,15 @@
|
||||
using Scriban;
|
||||
using Scriban;
|
||||
using Scriban.Runtime;
|
||||
using WireMock.Types;
|
||||
|
||||
namespace WireMock.Transformers.Scriban
|
||||
{
|
||||
internal class WireMockTemplateContext: TemplateContext
|
||||
{
|
||||
protected override IObjectAccessor GetMemberAccessorImpl(object target)
|
||||
{
|
||||
if (target?.GetType().GetGenericTypeDefinition() == typeof(WireMockList<>))
|
||||
{
|
||||
return new WireMockListAccessor();
|
||||
}
|
||||
namespace WireMock.Transformers.Scriban;
|
||||
|
||||
return base.GetMemberAccessorImpl(target);
|
||||
}
|
||||
internal class WireMockTemplateContext : TemplateContext
|
||||
{
|
||||
protected override IObjectAccessor GetMemberAccessorImpl(object target)
|
||||
{
|
||||
return target?.GetType().GetGenericTypeDefinition() == typeof(WireMockList<>) ?
|
||||
new WireMockListAccessor() :
|
||||
base.GetMemberAccessorImpl(target);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user