In WebDSL a field can have a number of annotations: id, name, searchable, default, inverse, and validate. (Maybe there are more.)

However, they all need to be defined on the field.

It would be useful if I could define annotations on a field separate from the field definition.

That way (1) validators can be generated separately from each other, and (2) fields generated by IceDust can still be searchable (or name or id), and can still be given a default value and extra validators.

Submitted by Daco Harkes on 31 March 2017 at 11:29

Log in to post comments