astahmer / openapi-zod-client

Generate a zodios (typescript http client with zod validation) from an OpenAPI spec (json/yaml)

Home Page:openapi-zod-client.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`toCamelCase` handlebar helper should not transform already camelCase string

PeterMK85 opened this issue · comments

Describe the bug
We added recently toCamelCase helper but it should not touch an already camelCase transformed string

Expected behavior
Need to added:

        // Check if input string is already in camelCase
        if (/^[a-z][a-zA-Z0-9]*$/.test(input)) {
            return input
        }