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
I was wondering if there is a possible bug with how the relation tag is handled. I have an Email model that holds the sender's email and a slice of recipients. I only want to store the recipient's email, and not the entire user object. The model is written as follows:
I am failing validation on the To field with validation.field_invalid_relation1n . Looking through the document_base.go file I found the following code:
Shouldn't there be another check inside the if block to see if relationTag != ""? Without it, every slice would have to be a relation even though it doesn't need to be.
The text was updated successfully, but these errors were encountered:
Hello there,
I was wondering if there is a possible bug with how the
relation
tag is handled. I have anEmail
model that holds the sender's email and a slice of recipients. I only want to store the recipient's email, and not the entire user object. The model is written as follows:I am failing validation on the
To
field withvalidation.field_invalid_relation1n
. Looking through the document_base.go file I found the following code:Shouldn't there be another check inside the if block to see if
relationTag != ""
? Without it, every slice would have to be a relation even though it doesn't need to be.The text was updated successfully, but these errors were encountered: