go-chi/docgen

How to add other info like expected payloads for the url endpoints?

tonyalaribe opened this issue · 2 comments

Is there any approach for adding other information like expected payloads for the url endpoints?

We capture payloads in our E2E tests and store it into files named after routes. And then, we find the corresponding payloads in the docgen Walk() and put it into the RAML resource.

https://github.com/go-chi/docgen/blob/master/raml/raml_test.go#L29

this isn't a goal of docgen