API Testing · Middle · Question 73 of 75
Why check that field naming is consistent, e.g. camelCase everywhere?
- 1JSON allows only camelCase names for object fields
- 2Mixed styles confuse clients and cause mapping bugs
- 3Naming style changes how fast the server responds
Show the answer
Correct answer: Mixed styles confuse clients and cause mapping bugs
Explanation
userId in one endpoint and user_id in another leads to fields silently read as undefined. Style guides and linters on the OpenAPI spec help.