feat: introduce json context for AOT serialization support
This commit is contained in:
1 parent
8ab71a0e87
commit
c7eecdb451
1 file changed
+16
@@ -0,0 +1,16 @@
|
|||||||
|
using System.Text.Json.Serialization;
|
||||||
|
|
||||||
|
using StevanFreeborn.Atproto.IdentityResolver.Identity;
|
||||||
|
using StevanFreeborn.Atproto.IdentityResolver.Retrieval;
|
||||||
|
|
||||||
|
namespace StevanFreeborn.Atproto.IdentityResolver.Json;
|
||||||
|
|
||||||
|
[JsonSourceGenerationOptions(WriteIndented = true)]
|
||||||
|
[JsonSerializable(typeof(DnsQueryResponse))]
|
||||||
|
[JsonSerializable(typeof(Answer))]
|
||||||
|
[JsonSerializable(typeof(DidDocument))]
|
||||||
|
[JsonSerializable(typeof(VerificationMethod))]
|
||||||
|
[JsonSerializable(typeof(Service))]
|
||||||
|
internal partial class JsonContext : JsonSerializerContext
|
||||||
|
{
|
||||||
|
}
|
||||||
Reference in new issue
Block a user