astahmer / openapi-zod-client

Generate a zodios (typescript http client with zod validation) from an OpenAPI spec (json/yaml)
openapi-zod-client.vercel.app
734 stars 82 forks source link

`toCamelCase` handlebar helper should not transform already camelCase string #218

Closed PeterMK85 closed 1 year ago

PeterMK85 commented 1 year ago

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
        }