mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2026-02-28 16:58:54 +00:00
* Revert "v7.19.0 release (#22732)"
This reverts commit ff400e9a31.
* prepare v7.20.0 release
* update samples
* update doc
This is a sample server Petstore server. For this sample, you can use the api key special-key to test the authorization filters.
This OCaml package is automatically generated by the OpenAPI Generator project:
- API version: 1.0.0
- Package version: 1.0.0
- Generator version: 7.20.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
trepresenting an input and/or output schema of the OpenAPI spec - a smart constructor
createfor this type
- a type
src/support: various modules used by the generated APIs and Models