Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Field model: New property "name without namespace" #79

Open
lorenzulrich opened this issue Apr 11, 2022 · 1 comment
Open

Field model: New property "name without namespace" #79

lorenzulrich opened this issue Apr 11, 2022 · 1 comment

Comments

@lorenzulrich
Copy link

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.

@skurfuerst
Copy link
Member

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

All the best :)
Sebastian

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants