Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
clintonb
on June 1, 2023
|
parent
|
context
|
favorite
| on:
OpenAPI v4 (aka Moonwalk) Proposal
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.
withinboredom
on June 1, 2023
[–]
This annoys me so much. Like, just use array-style accesses in the code generator?
clintonb
on June 1, 2023
|
parent
[–]
Yes, but also generate a spec with meaningful operationIds. “getLabels” is much more useful that “529ab782”.
withinboredom
on June 1, 2023
|
root
|
parent
[–]
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: