You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you call NewValidator() the resulting validator has the v.document field set. However if I want you call NewValidatorFromV3Model() it doesn't. Without this being set you get a panic when you call ValidateDocument(). I eventually dug into the code, and I found that the v3 Model is cached in the document, so just did that.
It's possible that I'm just missing something obvious with Go, but due to the private access, you can't actually repair the invariant if you try and build it from the model, because the document field is private (as is the type).
The text was updated successfully, but these errors were encountered:
If you call NewValidator() the resulting validator has the v.document field set. However if I want you call NewValidatorFromV3Model() it doesn't. Without this being set you get a panic when you call ValidateDocument(). I eventually dug into the code, and I found that the v3 Model is cached in the document, so just did that.
It's possible that I'm just missing something obvious with Go, but due to the private access, you can't actually repair the invariant if you try and build it from the model, because the document field is private (as is the type).
The text was updated successfully, but these errors were encountered: