py-ts-interfaces icon indicating copy to clipboard operation
py-ts-interfaces copied to clipboard

Add support for camelization of interface names and attributes

Open gjulianm opened this issue 2 years ago • 1 comments

Standard case pattern in Python is underscore_case, while in TypeScript it's camelCase. This PR adds support for an extra argument, -c/--camelize, which converts all interface and attribute names to camel case in the output.

gjulianm avatar Feb 06 '23 11:02 gjulianm

Sorry, I only ran pytest and didn't notice the rest of the tests were failing. It should work now, I also merged the latest changes from master.

gjulianm avatar Feb 14 '23 10:02 gjulianm

Hi @gjulianm , Are you really formatting your payloads on the back-end to be received on the front-end as camelCase ? 🤔 We've been used to doing this on front-end reception, and therefore been using https://www.npmjs.com/package/ts-case-convert .

Have you been comparing both strategies and opted for the one on the back-end for some specific reason? 🙂

We've started working on py-ts-interfaces to add some improvements and fix some issues, are you still actively using it? If not, have you found a better alternative?

adrienthiery avatar Jul 01 '24 12:07 adrienthiery

Repo is going to archive read-only mode.

cs-cordero avatar Jul 01 '24 12:07 cs-cordero