The WebLink class in the Menes client has various properties of this form:
public string? Hreflang => this.source.GetProperty(HreflangProperty).GetString();
I believe the intention here is to return null when this property is not present. In fact the call to GetProperty throws a KeyNotFoundException.
I think all of these need to change to something like this:
public string? Hreflang => this.source.TryGetProperty(HreflangProperty, out JsonElement property) ? property.GetString() : null;
The
WebLinkclass in the Menes client has various properties of this form:I believe the intention here is to return
nullwhen this property is not present. In fact the call toGetPropertythrows aKeyNotFoundException.I think all of these need to change to something like this: