Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix an exception message #717

Merged
merged 2 commits into from
Apr 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions JsonLogic/JsonLogic.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<Version>5.2.0.2</Version>
<FileVersion>5.2.0.2</FileVersion>
<Version>5.2.1</Version>
<FileVersion>5.2.1</FileVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<Authors>Greg Dennis</Authors>
<Description>JsonLogic built on the System.Text.Json namespace</Description>
Expand Down
2 changes: 1 addition & 1 deletion JsonLogic/RuleRegistry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ public static void AddRule<T>(JsonSerializerContext typeContext)
var typeInfo = typeContext.GetTypeInfo(typeof(T)) ??
throw new ArgumentException($"Rule implementation `{typeof(T).Name}` does not have a JsonTypeInfo");
_ = typeInfo.Converter as IWeaklyTypedJsonConverter ??
throw new ArgumentException("Rule Converter must implement IJsonConverterReadWrite or AotCompatibleJsonConverter to be AOT compatible");
throw new ArgumentException("Rule Converter must implement IWeaklyTypedJsonConverter or WeaklyTypedJsonConverter to be AOT compatible");
var operators = type.GetCustomAttributes<OperatorAttribute>().Select(a => a.Name);
foreach (var name in operators)
{
Expand Down
4 changes: 2 additions & 2 deletions JsonSchema/JsonSchema.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<PackageId>JsonSchema.Net</PackageId>
<Version>6.1.0.1</Version>
<FileVersion>6.1.0.1</FileVersion>
<Version>6.1.1</Version>
<FileVersion>6.1.1.0</FileVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<Authors>Greg Dennis</Authors>
<Description>JSON Schema built on the System.Text.Json namespace</Description>
Expand Down
2 changes: 1 addition & 1 deletion JsonSchema/SchemaKeywordRegistry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ public static void Register<T>(JsonSerializerContext typeContext)
var typeInfo = typeContext.GetTypeInfo(typeof(T)) ??
throw new ArgumentException($"Keyword implementation `{typeof(T).Name}` does not have a JsonTypeInfo");
_ = typeInfo.Converter as IWeaklyTypedJsonConverter ??
throw new ArgumentException("Keyword Converter must implement IJsonConverterReadWrite or AotCompatibleJsonConverter to be AOT compatible");
throw new ArgumentException("Keyword Converter must implement IWeaklyTypedJsonConverter or WeaklyTypedJsonConverter to be AOT compatible");

_keywords[keyword.Name] = typeof(T);
_keywordTypeInfoResolvers[typeof(T)] = typeContext;
Expand Down
4 changes: 4 additions & 0 deletions tools/ApiDocsGenerator/release-notes/rn-json-logic.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ title: JsonLogic
icon: fas fa-tag
order: "09.11"
---
# [5.2.1](https://github.com/gregsdennis/json-everything/pull/717) {#release-logic-5.2.1}

Fixed an exception message.

# [5.2.0.x](https://github.com/gregsdennis/json-everything/pull/712) {#release-logic-5.2.0.x}

[#711](https://github.com/gregsdennis/json-everything/issues/711) - Nuget package meta-data updates; no functional changes from previous version.
Expand Down
4 changes: 4 additions & 0 deletions tools/ApiDocsGenerator/release-notes/rn-json-schema.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ title: JsonSchema.Net
icon: fas fa-tag
order: "09.01"
---
# [6.1.1](https://github.com/gregsdennis/json-everything/pull/717) {#release-schema-6.1.1}

Fixed an exception message.

# [6.1.0.x](https://github.com/gregsdennis/json-everything/pull/712) {#release-schema-6.1.0.x}

[#711](https://github.com/gregsdennis/json-everything/issues/711) - Nuget package meta-data updates; no functional changes from previous version.
Expand Down