[metosin/compojure-api "2.0.0-alpha21"] is out. Biggest change is the new Muuntaja version, with Jsonista as the default JSON formatter + supports NIO + a multi-module layout: https://github.com/metosin/compojure-api/blob/master/CHANGELOG.md#200-alpha21-2018-06-26
the 1. => 2. migration guide is also updated.
Hey is it possible to have multiple 200 responses in the swagger docs with different schema??
I don't think swagger supports it.
Is it possible to make a schema then that has optional fields?
That is possible. OpenAPI3 (next version of swagger) would support
anyOf. Schema supports these kind of things already.
Hmm... maybe there was a
discriminator key in swagger too, please read the spec if you are interested. The swagger-ui doesn't anyway show those.
Alright I will check them out! Thanks for the help! 🙂