0

I tried Dredd but it's not working with openapi spec 3.0 that is generated by Loopback 4 framework.

I wanted to know what are the options available for this type of testing where I want to validate the openapi 3.0 API description against backend implementation of the API.

Any alternative for Dredd that provide similar functionality but works for openapi 3.0 ?

VISHAL DAGA
  • 4,132
  • 10
  • 47
  • 53

1 Answers1

0

Any alternative for Dredd that provide similar functionality but works for openapi 3.0 ?

You could take a look at Schemathesis. It verifies all examples specified in the schema (even partial, in contrast to Dredd) and uses property-based testing to generate tests and verify that everything declared in the schema matches the backend implementation. It checks response status code, content-type headers, and response schemas. It supports both Open API 2 and 3.

It has a CLI and could be extended with various hooks to fit the desired workflow.

Stranger6667
  • 418
  • 3
  • 17