Fix json-ld canonicalize bug in dotnetrdf instead

This commit is contained in:
Laura Hausmann 2024-01-20 21:51:58 +01:00
parent 6bb356ea02
commit 09c0aabb0e
No known key found for this signature in database
GPG key ID: D044E84C5BE01605
2 changed files with 3 additions and 3 deletions

View file

@ -56,6 +56,6 @@ public static class LdHelpers {
public static JArray? Expand(object obj) => Expand(JToken.FromObject(obj));
public static JObject? Compact(JToken? json) => JsonLdProcessor.Compact(json, DefaultContext, Options);
public static JArray? Expand(JToken? json) => JsonLdProcessor.Expand(json, Options);
public static string Canonicalize(JArray json) => JsonLdProcessor.Canonicalize(json.DeepClone() as JArray);
public static string Canonicalize(JObject json) => JsonLdProcessor.Canonicalize([json.DeepClone()]);
public static string Canonicalize(JArray json) => JsonLdProcessor.Canonicalize(json);
public static string Canonicalize(JObject json) => JsonLdProcessor.Canonicalize([json]);
}

View file

@ -16,7 +16,7 @@
<ItemGroup>
<PackageReference Include="Asp.Versioning.Http" Version="8.0.0" />
<PackageReference Include="cuid.net" Version="5.0.2" />
<PackageReference Include="dotNetRdf.Core" Version="3.2.0-dev" />
<PackageReference Include="dotNetRdf.Core" Version="3.2.1-dev" />
<PackageReference Include="Isopoh.Cryptography.Argon2" Version="2.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="8.0.0" />
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="8.0.0" />