API Testing · Senior · Question 5 of 75
How can API style rules be enforced across many teams?
- 1Let each team define its own rules for consistency
- 2Lint OpenAPI specs in CI against a shared rule set
- 3Ask every team to read the style guide once a year
Show the answer
Correct answer: Lint OpenAPI specs in CI against a shared rule set
Explanation
Linters check naming, error formats, pagination and security schemes automatically, so reviews focus on the domain.