diff --git a/src/Agent/API.xml b/src/Agent/API.xml index d38d926..b32fd7c 100644 --- a/src/Agent/API.xml +++ b/src/Agent/API.xml @@ -1206,7 +1206,7 @@ - Identifies the interface version supported, i.e. the version of the present + Optional. Identifies the interface version supported, i.e. the version of the present document that the internet computer aims to support, e.g. `0.8.1`. The implementation may also return unversioned to indicate that it does not comply to a particular version, e.g. in between releases. diff --git a/src/Agent/Responses/StatusResponse.cs b/src/Agent/Responses/StatusResponse.cs index 637043f..da96838 100644 --- a/src/Agent/Responses/StatusResponse.cs +++ b/src/Agent/Responses/StatusResponse.cs @@ -14,7 +14,7 @@ public class StatusResponse /// The implementation may also return unversioned to indicate that it does not /// comply to a particular version, e.g. in between releases. /// - public string ICApiVersion { get; } + public string? ICApiVersion { get; } /// /// Optional. Identifies the implementation of the Internet Computer Protocol, @@ -44,7 +44,7 @@ public class StatusResponse /// public byte[]? DevelopmentRootKey { get; } - /// Identifies the interface version supported, i.e. the version of the present + /// Optional. Identifies the interface version supported, i.e. the version of the present /// document that the internet computer aims to support, e.g. `0.8.1`. /// The implementation may also return unversioned to indicate that it does not /// comply to a particular version, e.g. in between releases. @@ -61,7 +61,7 @@ public class StatusResponse /// Internet Computer, agents must have an independent trustworthy source for this data, /// and must not be tempted to fetch it from this insecure location public StatusResponse( - string icApiVersion, + string? icApiVersion, string? implementationSource, string? implementationVersion, string? implementationRevision, @@ -119,11 +119,6 @@ internal static StatusResponse ReadCbor(CborReader reader) reader.ReadEndMap(); - if (icApiVersion == null) - { - throw new CborContentException("Missing field: " + Properties.IC_API_VERSION); - } - return new StatusResponse(icApiVersion, implementationSource, implementationVersion, implementationRevision, developmentRootKey); }