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.
$ openagpi_gen --id <projectname> -o <output directory> <openapi.json>This will generate the following modules: Api,
Wrappers, Types, Log.
Development is hosted on Framagit.
OCaml-openapi-gen is released under GPL3 license.
The openapi_gen package is installable with opam. Add my
opam repository:
$ opam repository add --all zoggy https://framagit.org/zoggy/opam-repository.gitThen install package:
$ opam install openapi_genCurrent state of OCaml-openapi-gen can be installed with:
$ opam pin add forgejo https://framagit.org/zoggy/openapi.gitSee Changes file for release details.