Closed bsless closed 3 months ago
This is interesting! I started testing and thought reitit + malli vars is completely broken, but it seems to actually mostly works. I'll try to narrow down what exactly goes wrong in the example.
Ok, so the example ring-malli-swagger is broken in ~two~ three ways (when edited to use var references).
I encountered two different problems when schemas use var refs - no schema for GET and bad resolution for POST
Steps to reproduce:
Go to
examples/ring-malli-swagger
Explicitly bump reitit to 15:
Add
Change parameters in get and post to use schema reference:
Start server and navigate to openapi page
Get error:
Observe the generated openapi.json
"#/definitions/example.server~1Plus"
See schema opbject: