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'm sorry but I don't get the example, that doesn't work, or at least I take it wrong.
If I take the basic struct type User struct { Id int64 json:"id"Email string json:"email"Detail UserDetail json:"detail"`
}
type UserDetail struct {
Description string json:"description"
Referer int64 json:"referer"
} Here's the JSON that is posted :{
"email": "toto@toto.io",
"detail": {
"referer":97
}
}`
If I want to apply a rule to the referer field, how can I set that up ?
Thx
The text was updated successfully, but these errors were encountered:
I'm sorry but I don't get the example, that doesn't work, or at least I take it wrong.
If I take the basic struct
type User struct { Id int64
json:"id"Email string
json:"email"Detail UserDetail
json:"detail"`}
type UserDetail struct {
Description string
json:"description"
Referer int64
json:"referer"
}
Here's the JSON that is posted :
{"email": "toto@toto.io",
"detail": {
"referer":97
}
}`
If I want to apply a rule to the referer field, how can I set that up ?
Thx
The text was updated successfully, but these errors were encountered: