I’m pleased to announce the first release of OCaml-Swagger, a Swagger 2.0 API client generator for OCaml.
While it doesn’t currently implement 100% of the Swagger specification, it’s complete enough to generate the client of at least one large API, the Kubernetes one, so I suspect it can be useful for other real world specs too.
I have to say it was one of the most boring projects I’ve ever worked on
But I needed the Kubernetes API, which is huge, and doing it manually would be too much work, especially considering their short release cycle… I wouldn’t be able to keep up.
I’m also really grateful for the existence of projects like atdgen, yojson and ppx_deriving_yojson, which made my life much easier.