Hacker News new | past | comments | ask | show | jobs | submit login

I’m working with a spec that used GUIDs for their operation IDs. This limits TypeScript code generation to typescript-node, which prepends an underscore on the method names. Otherwise, those starting with numbers would be invalid.



This annoys me so much. Like, just use array-style accesses in the code generator?


Yes, but also generate a spec with meaningful operationIds. “getLabels” is much more useful that “529ab782”.


I was mostly thinking about 'in' and other kinds of language keywords that get prepended with underscores and stuff.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: