ring-swagger & compojure-api
ikitommi 2018-06-26T16:28:49.000109Z

[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

ikitommi 2018-06-26T16:29:17.000281Z

the 1. => 2. migration guide is also updated.

Andreasp1994 2018-06-26T18:03:41.000001Z

Hey is it possible to have multiple 200 responses in the swagger docs with different schema??

ikitommi 2018-06-26T18:23:28.000446Z

I don't think swagger supports it.

Andreasp1994 2018-06-26T18:24:46.000574Z

Is it possible to make a schema then that has optional fields?

ikitommi 2018-06-26T18:40:01.000695Z

That is possible. OpenAPI3 (next version of swagger) would support oneOf and anyOf. Schema supports these kind of things already.

ikitommi 2018-06-26T18:41:30.000034Z

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.

Andreasp1994 2018-06-26T18:45:09.000052Z

Alright I will check them out! Thanks for the help! 🙂