3 ms·
Every time I try to use an OpenAPI document to generate client code, it fails, I talk to the customer and they say "oh no don't do that, it's not meant for gene
by denkmoon 3y ago
Every time I try to use an OpenAPI document to generate client code, it fails, I talk to the customer and they say "oh no don't do that, it's not meant for generating code from". Not an indictment on OpenAPI but it's truly bizarre how people use it.
- clintonb 3y agoI’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 3y agoThis annoys me so much. Like, just use array-style accesses in the code generator?
- clintonb 3y agoYes, but also generate a spec with meaningful operationIds. “getLabels” is much more useful that “529ab782”.
- withinboredom 3y agoI was mostly thinking about 'in' and other kinds of language keywords that get prepended with underscores and stuff.