Closed lrstanley closed 5 months ago
How to do this? In GetAnnotation() functions, somehow? Could use struct tags to help enforce where those things can be set?
GetAnnotation()
Example:
type Annotation struct { Sortable bool `json:",omitempty" ent:"field"` Skip bool `json:",omitempty" ent:"schema,edge,field"` ReadOnly bool `json:",omitempty" ent:"field"` Operations []Operation `json:",omitempty" ent:"schema,edge"` }
How to do this? In
GetAnnotation()
functions, somehow? Could use struct tags to help enforce where those things can be set?Example: