mlambley / swagception

Validate your API against Swagger 2.0 using Codeception
MIT License
46 stars 4 forks source link

Support for Codeception 5 #31

Open esteban-serfe opened 5 months ago

esteban-serfe commented 5 months ago

Hi there... don't know if you still using this, but cannot install this as requires codeception ^2.4

Any chance to review to support newer versions?

mlambley commented 5 months ago

It's been a long time since I've worked with Codeception or Swagger. I might put some time into reviving this project. But honestly I'm not happy with the amount of complexity I put into this project to get it to work with Codeception.

However, a while ago I pulled the actual validation code into its own repo which has zero dependencies and should work with any PHP version.

Take a look at the example in the README over there. You'll need to pass in the response from your API endpoint, and the schema which the API response should match. It doesn't try to use Codeception to automate the process, but you can write individual tests for individual endpoints and validate each one.