Is there a way to get custom attributes defined on a field through reflection. For example can we get attribute
"priority" as shown at:
I was taking a look at the reflection schema. It has table field defined as:
table Field {
name:string (required, key);
type:Type (required);
id:ushort;
offset:ushort; // Offset into the vtable for tables, or into the struct.
default_integer:long = 0;
default_real:double = 0.0;
deprecated:bool = false;
required:bool = false;
key:bool = false;
}
It has builtin attributes like deprecated, required etc. but I could not see anything for custom attributes. It will be helpful if we have a vector of Key/Value pair where Key is the attribute name and Value is the attribute value.
The use case I have it that I want to mark certain fields and have special processing for them whenever I encounter them using reflection.
Thanks,
Zarian.