-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] [OCaml] Generation of unknown_base_type:UNKNOWN_BASE_TYPE
isn't valid
#8398
Comments
unknown_base_type:UNKNOWN_BASE_TYPE
isn't validunknown_base_type:UNKNOWN_BASE_TYPE
isn't valid
I'm not familiar with the project, but I might be able to give it a try. Is there anything you could guide me here? @cgensoul I opened 2 issues regarding code-gen and both seem straight forward, but I can't be sure, seems the templating needs to change the formating to lower case? |
Hello David,
I am not able to help you out much these days (being on holidays far from a
computer) but feel free to give it a try, I’ll review the code when I’ll
get back.
As a super rough guide though, there are only two kind of artefacts you
might touch : either the ocaml generator java source code (the only java
source file with OCaml in its name) or the moustache template files for the
aforementioned generator (the project documentation should help you to
locate those files if you haven’t located them already).
Sorry for not being able to do more for now, I’ll look into it next week.
Christophe
Le ven. 15 janv. 2021 à 08:27, David Sancho <notifications@github.com> a
écrit :
… I'm not familiar with the project, but I might be able to give it a try.
Is there anything you could guide me here? @cgensoul
<https://github.com/cgensoul>
I opened 2 issues regarding code-gen and both seem straight forward, but I
can't be sure, seems the templating needs to change the formating to lower
case?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#8398 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMWCGNUUYACSTFPW7CGZLQTS2AYBVANCNFSM4V37KYVA>
.
|
Hey @cgensoul, no worries and enjoy your vacations! I will give it a shot and try to post any question that I might here. Thanks for the fast response |
tested with #12369 and no longer be able to repeat the issue. |
Thanks @wing328 |
Bug Report Checklist
Description
The issue happens when I tried with stripe and github apis, which It could happen to any spec as well.
openapi-generator version
v5.0.0
OpenAPI declaration file content or url
https://github.com/stripe/openapi/blob/master/openapi/spec3.yaml
Generation Details
Steps to reproduce
Run
dune build
inside the root projectSuggest a fix
The main issue happens to use a capital letter for a record type since OCaml reserves capital letters for variants. If it's as easy as renaming it, I would suggest using lower-case for the unknown-types.
The text was updated successfully, but these errors were encountered: