input-output-hk / cicero

event-driven automation for Nomad
https://handbook.cicero.ci.iog.io
41 stars 11 forks source link

[CIC-65] validate OpenAPI #33

Closed biandratti closed 2 years ago

biandratti commented 2 years ago

Now the “schemathesis” tool is able to be used and test the OpenAPI specifications. Some issues were fixed in the documentation. If you want to run this tool locally you need to run the following line: schemathesis run http://localhost:8080/documentation/cicero.yaml --validate-schema=false We must use the condition validate-schema in false because some values like Facts are in progress, and the library ​is not working with this value “map[string]interface{}”.

image

​ Another additional improvement was moving the OpenAPI behavior in another package's decoupling called apidoc. And some methods were unified to be reused.

Next Tasks: