oazapfts icon indicating copy to clipboard operation
oazapfts copied to clipboard

Ques: Is there a reason to force the operationId to camelcase

Open abhishekdev opened this issue 11 months ago • 5 comments

Question

Is there a reason to force the operationID to camelcase?

Current Behavior e.g. A operation ID like EvaluateUserIAM will get generated as evaluateUserIam

Expected behavior Based on the spec guide (reffered below) I guess if an operation ID is found on the schema it should not be mutated.

The openID spec mentions that the operation ID is case sensitive, however since the generator is mutating the operation name to be camelcase it causes confusion for consuming clients.

Screenshot 2024-02-28 at 5 33 09 PM

Source Reference https://github.com/oazapfts/oazapfts/blob/702c4008d53280f46f9827df2f04eef1ce3690c7/packages/codegen/src/generate.ts#L120-L125

abhishekdev avatar Feb 28 '24 22:02 abhishekdev