Skip to content

Support snake_case for labels derived from properties #2135

Open
@KES777

Description

@KES777

Is your feature request related to a problem? Please describe.

There two popular naming convection exists: CamelCase and snake_case.

For CamelCase you have:
image

But in my case property names come from database column names, where snake_case is used.

Describe the solution you'd like

Please apply your rule also for snake_case. I expect Snake Case.

Describe alternatives you've considered

Or, probably, allow to configure a callback, which could be used to generate labels.

Framework

No response

RendererSet

No response

Additional context

No response

Activity

changed the title [-]label `Derived by property`[/-] [+]A label `Derived by property`[/+] on May 4, 2023
changed the title [-]A label `Derived by property`[/-] [+]Support snake_case for labels derived from properties[/+] on May 8, 2023
lucas-koehler

lucas-koehler commented on May 8, 2023

@lucas-koehler
Contributor

Hi @KES777 ,
thanks for the report. I renamed the issue to more accurately reflect its goal.

We will not implement this in the near future but we would gladly accept a contribution implementing this as long as it doesn't conflict with the current solution :)

added this to the Backlog milestone on May 8, 2023
sdirix

sdirix commented on May 12, 2023

@sdirix
Member

As a workaround I would like to recommend to also set the title attribute in your JSON Schema to render the UI as expected by you. This could be done in a preprocessing step before handing the JSON Schema over to JSON Forms.

Alternatively you can use the i18n support to override the labels in any way you like.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @KES777@lucas-koehler@sdirix

        Issue actions

          Support snake_case for labels derived from properties · Issue #2135 · eclipsesource/jsonforms