Is there a way of converting malli definitions to swagger 3 format?
Just chatted with @juhoteperi on Metosin internal about that. should be, not atm. should be a thin layer on top of malli.json-schema
.
who would like to contribute those?
haha great timing
ah oh you mean you chatted with him after my comment 🙂
I could have a look at it I guess, but swagger and malli are both completely new to me
Just = yesterday. https://github.com/metosin/malli/pull/354
this is going to be so good.
I've been reading the swagger specification and it's massive
The most obvious difference is that in JSON Schema and Swagger 2, there is a "definitions" key for common objects, whereas this doesn't exist in OpenAPI 3
I think it's replaced by the components object, or the schemas property on the components object
With currently implementation, Malli only handles the schema -> properties part. Reitit/Ring-swagger/Compojure-api does the higher level Swagger2 generation.
The properties part (JSON Schema) probably doesn't change much if at all between Swagger2 / OpenAPI 3.
do you know if there are plans to support OpenAPI 3 in reitit?
ah yeah, there's an open issue https://github.com/metosin/reitit/issues/84