You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2022/10/18 06:59:00 UTC

[jira] [Work logged] (TEXT-217) Snake case utility method: CaseUtils.toSnakeCase(....)

     [ https://issues.apache.org/jira/browse/TEXT-217?focusedWorklogId=817889&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-817889 ]

ASF GitHub Bot logged work on TEXT-217:
---------------------------------------

                Author: ASF GitHub Bot
            Created on: 18/Oct/22 06:58
            Start Date: 18/Oct/22 06:58
    Worklog Time Spent: 10m 
      Work Description: angusdev commented on PR #360:
URL: https://github.com/apache/commons-text/pull/360#issuecomment-1281900340

   Update. Use codePointCount instead of string length 




Issue Time Tracking
-------------------

    Worklog Id:     (was: 817889)
    Time Spent: 1h  (was: 50m)

> Snake case utility method: CaseUtils.toSnakeCase(....)
> ------------------------------------------------------
>
>                 Key: TEXT-217
>                 URL: https://issues.apache.org/jira/browse/TEXT-217
>             Project: Commons Text
>          Issue Type: New Feature
>    Affects Versions: 1.9
>            Reporter: Adil Iqbal
>            Priority: Major
>             Fix For: 1.9
>
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> Requesting a feature to convert any string to snake case, as per CaseUtils.toCamelCase(...)
> *Rationale:*
> As per the OpenAPI Specification 3.0, keys should be in snake case. There is currently no common utility that can be used to accomplish that task.
> Any interaction between Java and Python is hindered, since Python uses snake case as a best practice.
> *Feature Set Requested:*
> All features currently included in CaseUtils.toCamelCase(...) sans capitalization flag. As you know, the capitalization flag was implemented to support PascalCase, which is a convention even in Java, for many situations. There is no equivalent for snake case.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)