mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-10-14 00:13:50 +00:00
* Revert "v7.16.0 release" This reverts commit 31299af0fcaafe6c3ab848320e230a00ce8ea9e5. * prepare 7.17.0-SNAPSHOT * update doc, samples
This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: '' \
This OCaml package is automatically generated by the OpenAPI Generator project:
- API version: 1.0.0
- Package version: 1.0.0
- Generator version: 7.17.0-SNAPSHOT
- Build package: org.openapitools.codegen.languages.OCamlClientCodegen
Requirements.
OCaml 5.x
Installation
Please run the following commands to build the package petstore_client
:
opam install . --deps-only --with-test
eval $(opam env)
dune build
Getting Started
The generated directory structure is:
src/apis
: contains several modules, each with several functions. Each function is an API endpoint.src/models
: contains several modules. Each module contains:- a type
t
representing an input and/or output schema of the OpenAPI spec - a smart constructor
create
for this type
- a type
src/support
: various modules used by the generated APIs and Models