Julien Debon dc8fac21d9
[OCaml] Introduce support for oneOf/anyOf, fix default value for non-required maps (#21798)
* Add OCaml fake-petstore to test corner cases

* Prefix List functions with Stdlib as the fake petstore generates a List module

* Handle decimal and any types

* Indent to_json.mustache for easier maintenance

* Indent api-impl.mustache a bit more for readability before fix

* Fix: do not call `to_json` for free forms and byte arrays

Fixes https://github.com/OpenAPITools/openapi-generator/issues/21312

* Fix compilation for binary types

The implementation may not be correct, but at least it compiles. To be checked
if someday someone actually uses it/complains.

* Indent to_string.mustache

* Add support for exploded form-style object query params

Fixes https://github.com/OpenAPITools/openapi-generator/issues/21307

* Add ocaml-fake-petstore to CI

* Fix free-form body params

* Cohttp_lwt.Response is deprecated, use Cohttp.Response instead

* Safe Java code cleanup

* Split into model-record.mustache

* Add some support for oneOf/anyOf

* Re-generate all OCaml samples

* Fix: correctly mark non-required maps with default empty list

* Fix: Correctly encode/decode maps

* Refresh documentation

* Refresh after merging master
2025-08-25 17:27:27 +08:00
..
2024-02-23 16:27:26 +08:00
2024-02-23 16:27:26 +08:00
2024-02-23 16:27:26 +08:00
2024-02-23 16:27:26 +08:00
2024-02-23 16:27:26 +08:00
2025-01-11 15:44:42 +08:00
2023-12-13 16:13:31 +08:00
2024-04-24 23:50:14 +08:00
2024-01-10 11:50:48 +08:00
2024-10-05 17:08:14 +08:00

The following generators are available:

CLIENT generators

SERVER generators

DOCUMENTATION generators

SCHEMA generators

CONFIG generators