Skip to content

Service name gets mangled when in Caps and Hyphenated #87

@thulasi-ram

Description

@thulasi-ram

The ssm parameter path gets mangled if the service name is hyphenated with title cases.

For eg: ServiceA-UITest -> service-a--u-i-test

This especially affects edit_config.

The culprit is here:

return stringcase.spinalcase(name)

The stringcase library doesn't handle prefixed hyphens. This library in particular has couple of edgecases in the issues section.

Solution

To be backward compatible we can use regex replace and handled special cases like hyphen-caps, caps-caps continuously etc.

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