ERI: use camel case for JSON (#311)

This commit is contained in:
Thorsten Sommer 2025-03-06 21:02:21 +01:00 committed by GitHub
parent a66d88c989
commit 1d22232005
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -290,6 +290,7 @@ public partial class AssistantERI : AssistantBaseCore
- You consider the security of the implementation by applying the Security by Design principle.
- Your output is formatted as Markdown. Code is formatted as code blocks. For every file, you
create a separate code block with its file path and name as chapter title.
- Important: The JSON objects of the API messages use camel case for the data field names.
""");
return sb.ToString();

View File

@ -9,7 +9,7 @@ public abstract class ERIClientBase(string baseAddress) : IDisposable
{
WriteIndented = true,
AllowTrailingCommas = true,
PropertyNamingPolicy = null,
PropertyNamingPolicy = JsonNamingPolicy.CamelCase,
DictionaryKeyPolicy = JsonNamingPolicy.CamelCase,
PropertyNameCaseInsensitive = true,
Converters =