Skip to content

attributes that are kebab-case are not camelcased correctly #66

@jannishuebl

Description

@jannishuebl

Hi,

when a attribute is in kebab-case format, which seems to be very common when using json:api, the camel case method in string.ts is not catching the attribute name.

see:

return str.replace(/(\_[a-z])/g, function($1){return $1.toUpperCase().replace('_','');});

I have not found if attribute naming-convention is somewhere defined for json:api.

I guess it should be a small fix, if you like I can take this issue over and create a pullrequest for it.

Kind Regards,

Jannis

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions