OCaml-openapi-gen

🌐 OCaml-openapi-gen homepage

This OCaml tool reads an Openapis specification and generates OCaml code to interact with the specified services.

It is work-in-progress but already used to generate the code of OCaml-forgejo.

Usage

$ openagpi_gen --id <projectname> -o <output directory> <openapi.json>

This will generate the following modules: Api, Wrappers, Types, Log.

Development

Development is hosted on Framagit.

OCaml-openapi-gen is released under GPL3 license.

Installation

The openapi_gen package is installable with opam. Add my opam repository:

$ opam repository add --all zoggy https://framagit.org/zoggy/opam-repository.git

Then install package:

$ opam install openapi_gen

Current state of OCaml-openapi-gen can be installed with:

$ opam pin add forgejo https://framagit.org/zoggy/openapi.git

Releases

See Changes file for release details.