Improved the ERI client to raise an error when the server responds with additional JSON data

This commit is contained in:
Thorsten Sommer 2025-03-08 10:28:12 +01:00
parent 3bfca45e11
commit 8e39fb85c5
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108
2 changed files with 4 additions and 2 deletions

View File

@ -9,9 +9,10 @@ public abstract class ERIClientBase(string baseAddress) : IDisposable
{
WriteIndented = true,
AllowTrailingCommas = true,
PropertyNameCaseInsensitive = true,
PropertyNamingPolicy = JsonNamingPolicy.CamelCase,
DictionaryKeyPolicy = JsonNamingPolicy.CamelCase,
PropertyNameCaseInsensitive = true,
UnmappedMemberHandling = JsonUnmappedMemberHandling.Disallow,
Converters =
{
new JsonStringEnumConverter(JsonNamingPolicy.SnakeCaseUpper),

View File

@ -1,3 +1,4 @@
# v0.9.32, build 207 (2025-03-xx xx:xx UTC)
- Added the "Community & Code" section to the about page. It includes links to the GitHub repositories and the project website.
- Improved the ERI client to expect JSON responses and send JSON requests using camel case.
- Improved the ERI client to expect JSON responses and send JSON requests using camel case.
- Improved the ERI client to raise an error when the server responds with additional JSON data that is not expected.