PrivaPub's own types are read through the shared ClientModels context, and a type without generated metadata no longer falls back to reflection silently: it fails at once in development and on the pasture, and is reported on the console elsewhere. Startup outside production checks that every PrivaPub and Mastodon type the client knows has its metadata. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01W4YtEJrgxG12Pc39Fai8Bd
This commit is contained in:
1 parent
3bc511421e
commit
dca046e27d
6 files changed
+70
-105
No files matched your search
@@ -86,5 +86,6 @@ builder.Services.AddSingleton(serviceProvider =>
|
||||
});
|
||||
|
||||
var host = builder.Build();
|
||||
UnregisteredJson.Check(!builder.HostEnvironment.IsProduction());
|
||||
await host.SetDefaultCulture();
|
||||
await host.RunAsync();
|
||||
Reference in new issue
Block a user