From 9c820657632597ebe67368d0f78fb2285d6e1efb Mon Sep 17 00:00:00 2001 From: E M <5089238+emizzle@users.noreply.github.com> Date: Wed, 24 Jun 2026 16:49:12 +1000 Subject: [PATCH] Mark mixPubKey nullable in OpenAPI schema and make wrapper MixPubKey nullable (PR #131 fix) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- ProjectPlugins/LogosStorageClient/LogosStorageTypes.cs | 2 +- ProjectPlugins/LogosStorageClient/openapi.yaml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ProjectPlugins/LogosStorageClient/LogosStorageTypes.cs b/ProjectPlugins/LogosStorageClient/LogosStorageTypes.cs index 800134bf..7e75feec 100644 --- a/ProjectPlugins/LogosStorageClient/LogosStorageTypes.cs +++ b/ProjectPlugins/LogosStorageClient/LogosStorageTypes.cs @@ -11,7 +11,7 @@ namespace LogosStorageClient public string Id { get; set; } = string.Empty; public string[] AnnounceAddresses { get; set; } = Array.Empty(); public string Libp2pPubKey { get; set; } = string.Empty; - public string MixPubKey { get; set; } = string.Empty; + public string? MixPubKey { get; set; } public DebugInfoVersion Version { get; set; } = new(); public DebugInfoTable Table { get; set; } = new(); } diff --git a/ProjectPlugins/LogosStorageClient/openapi.yaml b/ProjectPlugins/LogosStorageClient/openapi.yaml index 490b989d..c3bbdc6b 100644 --- a/ProjectPlugins/LogosStorageClient/openapi.yaml +++ b/ProjectPlugins/LogosStorageClient/openapi.yaml @@ -128,6 +128,7 @@ components: description: Hex-encoded libp2p public key of the node mixPubKey: type: string + nullable: true description: Hex-encoded mix public key (present only for nodes that support mix) table: $ref: "#/components/schemas/PeersTable"