Assistant is now encapsulating Go struct tags in triple backticks, which is wrong. I tried multiple models, so this may be related to processing.
e.g.
// User represents a user in the system
type User struct {
ID int json:"id"
Username string json:"username"
Email string json:"email"
Password string json:"-"
// Omitted from JSON output
CreatedAt time.Time json:"created_at"
UpdatedAt time.Time json:"updated_at,omitempty"
// Omitted if empty
Address *Address json:"address,omitempty"
// Omitted if nil
Roles []string json:"roles"
Active bool json:"is_active"
// Rename field in JSON
}
// User represents a user in the system
type User struct {
ID int json:"id"
Username string json:"username"
Email string json:"email"
Password string json:"-"
// Omitted from JSON output
CreatedAt time.Time json:"created_at"
UpdatedAt time.Time json:"updated_at,omitempty"
// Omitted if empty
Address *Address json:"address,omitempty"
// Omitted if nil
Roles []string json:"roles"
Active bool json:"is_active"
// Rename field in JSON
}