Bug Report Checklist
Description
If a schema contains
{
"type": "object",
"additionalProperties": true
}
(called free-form objects) then it becomes (string * Any_type.t) list which does not exist, instead of (string * Yojson.Safe.t) list.
openapi-generator version
7.12.0
OpenAPI declaration file content or url
https://api.integration.app/docs-json
In particular:
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": true
}
}
}
}
Generation Details
$ openapi-generator-cli generate \
--generator-name ocaml \
--input-spec docs-json
Steps to reproduce
$ openapi-generator-cli generate \
--generator-name ocaml \
--input-spec docs-json
Related issues/PRs
None.
Suggest a fix
Replace Any_type.t with Yojson.Safe.t
Bug Report Checklist
Description
If a schema contains
{ "type": "object", "additionalProperties": true }(called free-form objects) then it becomes
(string * Any_type.t) listwhich does not exist, instead of(string * Yojson.Safe.t) list.openapi-generator version
7.12.0
OpenAPI declaration file content or url
https://api.integration.app/docs-json
In particular:
Generation Details
Steps to reproduce
Related issues/PRs
None.
Suggest a fix
Replace
Any_type.twithYojson.Safe.t