fusion-form icon indicating copy to clipboard operation
fusion-form copied to clipboard

Field model: New property "name without namespace"

Open lorenzulrich opened this issue 2 years ago • 1 comments

The getName() method of the Field domain model always returns the field name with its namespace.

Would you be open to add a getter "get name without namespace" (how should we name it)?

My use case:

To add frontend validation for my form, I need to evaluate the Schema definition of a field. So I want to check if field foo is configured in the SchemaDefinition. Since the schema definition uses the field name without namespace, I cannot look it up without such a getter.

lorenzulrich avatar Apr 11 '22 09:04 lorenzulrich

I would suggest Short name (after the reflection API) or "unqualified name" as naming - sounds fine for me :)

All the best :) Sebastian

skurfuerst avatar Jun 09 '22 14:06 skurfuerst