Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1264,7 +1264,7 @@ If you want to join the committee, please kindly apply by sending an email to te
| Nim | |
| NodeJS/Javascript | @CodeNinjai (2017/07) @frol (2017/07) @cliffano (2017/07) |
| ObjC | |
| OCaml | @cgensoul (2019/08) |
| OCaml | @cgensoul (2019/08), @sir4ur0n (2025/08) |
| Perl | @wing328 (2017/07) [:heart:](https://www.patreon.com/wing328) @yue9944882 (2019/06) |
| PHP | @jebentier (2017/07), @dkarlovi (2017/07), @mandrean (2017/08), @jfastnacht (2017/09), [@ybelenko](https://github.com/ybelenko) (2018/07), @renepardon (2018/12) |
| PowerShell | @wing328 (2020/05) |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ public OCamlClientCodegen() {
supportingFiles.add(new SupportingFile("dune.mustache", "", "dune"));
supportingFiles.add(new SupportingFile("dune-project.mustache", "", "dune-project"));
supportingFiles.add(new SupportingFile("readme.mustache", "", "README.md"));
supportingFiles.add(new SupportingFile("ocamlformat.mustache", "", ".ocamlformat"));

defaultIncludes = new HashSet<>(
Arrays.asList(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
(lang dune 1.10)
(name {{{packageName}}})
(lang dune 2.0)
(name {{{packageName}}})
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ dev-repo: ""
depends: [
"ocaml"
"ocamlfind"
"ocamlformat" {= "0.27.0"}
"dune"
"ppx_deriving_yojson"
"conf-libev"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
version=0.27.0
ocaml-version=4.14.0
2 changes: 2 additions & 0 deletions samples/client/petstore/ocaml-fake-petstore/.ocamlformat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
version=0.27.0
ocaml-version=4.14.0
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.ocamlformat
README.md
dune
dune-project
Expand Down
4 changes: 2 additions & 2 deletions samples/client/petstore/ocaml-fake-petstore/dune-project
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
(lang dune 1.10)
(name petstore_client)
(lang dune 2.0)
(name petstore_client)
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ dev-repo: ""
depends: [
"ocaml"
"ocamlfind"
"ocamlformat" {= "0.27.0"}
"dune"
"ppx_deriving_yojson"
"conf-libev"
Expand Down
2 changes: 2 additions & 0 deletions samples/client/petstore/ocaml-oneOf/.ocamlformat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
version=0.27.0
ocaml-version=4.14.0
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.ocamlformat
README.md
dune
dune-project
Expand Down
4 changes: 2 additions & 2 deletions samples/client/petstore/ocaml-oneOf/dune-project
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
(lang dune 1.10)
(name petstore_client)
(lang dune 2.0)
(name petstore_client)
1 change: 1 addition & 0 deletions samples/client/petstore/ocaml-oneOf/petstore_client.opam
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ dev-repo: ""
depends: [
"ocaml"
"ocamlfind"
"ocamlformat" {= "0.27.0"}
"dune"
"ppx_deriving_yojson"
"conf-libev"
Expand Down
2 changes: 2 additions & 0 deletions samples/client/petstore/ocaml/.ocamlformat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
version=0.27.0
ocaml-version=4.14.0
1 change: 1 addition & 0 deletions samples/client/petstore/ocaml/.openapi-generator/FILES
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.ocamlformat
README.md
dune
dune-project
Expand Down
4 changes: 2 additions & 2 deletions samples/client/petstore/ocaml/dune-project
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
(lang dune 1.10)
(name petstore_client)
(lang dune 2.0)
(name petstore_client)
1 change: 1 addition & 0 deletions samples/client/petstore/ocaml/petstore_client.opam
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ dev-repo: ""
depends: [
"ocaml"
"ocamlfind"
"ocamlformat" {= "0.27.0"}
"dune"
"ppx_deriving_yojson"
"conf-libev"
Expand Down
15 changes: 6 additions & 9 deletions samples/client/petstore/ocaml/src/models/inline_object.ml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,11 @@
*)

type t = {
(* Updated name of the pet *)
name: string option [@default None];
(* Updated status of the pet *)
status: string option [@default None];
} [@@deriving yojson { strict = false }, show ];;

let create () : t = {
name = None;
status = None;
(* Updated name of the pet *)
name : string option; [@default None]
(* Updated status of the pet *)
status : string option; [@default None]
}
[@@deriving yojson { strict = false }, show]

let create () : t = { name = None; status = None }
15 changes: 6 additions & 9 deletions samples/client/petstore/ocaml/src/models/inline_object_1.ml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,11 @@
*)

type t = {
(* Additional data to pass to server *)
additional_metadata: string option [@default None];
(* file to upload *)
file: string option [@default None];
} [@@deriving yojson { strict = false }, show ];;

let create () : t = {
additional_metadata = None;
file = None;
(* Additional data to pass to server *)
additional_metadata : string option; [@default None]
(* file to upload *)
file : string option; [@default None]
}
[@@deriving yojson { strict = false }, show]

let create () : t = { additional_metadata = None; file = None }
Loading