API Testing · Middle · Question 73 of 75

Why check that field naming is consistent, e.g. camelCase everywhere?

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.

Further reading

Problem with a question

API Testing · Middle · question 73

Test yourself

Take the API Testing · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz