Forum Discussion

Stoplight's avatar
2 years ago
Solved

Spectral to validate code against design

Originally posted by user Azriel46d to the Stoplight Community on 04/20/2023 at 06:52 ET.

Hi, came across spectral, as we are looking for a tool to be able to lint and enforce a guide on the written API's. Now one scenario that we have is that the API design (openAPI and commited to git) has a set of endpoints , whilst when a developer implements the solution, they do not always follow the API design. Is it possible to diff and compare the design against the implementation? Would it make sense as a use case for spectral?