Mark mixPubKey nullable in OpenAPI schema and make wrapper MixPubKey nullable (PR #131 fix)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
E M 2026-06-24 16:49:12 +10:00
parent c960480304
commit 9c82065763
No known key found for this signature in database
2 changed files with 2 additions and 1 deletions

View File

@ -11,7 +11,7 @@ namespace LogosStorageClient
public string Id { get; set; } = string.Empty;
public string[] AnnounceAddresses { get; set; } = Array.Empty<string>();
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();
}

View File

@ -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"