10 More on API consistency: Custom linting and security checks

This chapter covers

  • Writing custom linting functions
  • Running OWASP API linting checks
  • Validating API requests and responses in the gateway
  • Generating OpenAPI from traffic

Having automated ways of keeping your APIs compliant with your API style guide is important in order to maintain an easy-to-use and secure developer experience for developers integrating with your APIs. API linting is a big part of maintaining that API consistency at design time. In chapter 3, I introduced API linting and discussed how to write custom linting rules in Spectral using its built-in functions. But using the core functions that come with a linting tool can only take you so far. To implement ...

Get Automating API Delivery now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.