forked from loafle/openapi-generator-original
* Added handling of api keys in headers. * Added handling of optional arguments in api functions. * Optional header params. * Fixed a bug in path param replacement. * Relaxed deserializing of model records with @@deriving yojson { strict = false }. It allows receiving more fields in the JSon payload than declared in the OCaml record, fields not matching any record field are ignored. * Reformatted api-impl.mustache. * Generate shorter enum value names by allowing underscore character. * Cleanup of optional params generation. * Updated the OCaml samples with the latest version of the generator. * Corrected a bug encountered when generating default value for optional enum fields. * Added v3 version of the samples for the OCaml generator.
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
- Build package: org.openapitools.codegen.languages.OCamlClientCodegen
Requirements.
OCaml 4.x
Installation
Please run the following commands to build the package petstore_client
:
opam install ppx_deriving_yojson cohttp ppx_deriving cohttp-lwt-unix
eval $(opam env)
dune build
Getting Started
TODO