-
Notifications
You must be signed in to change notification settings - Fork 284
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
Generate Golang codes for SDK #5540
Generate Golang codes for SDK #5540
Conversation
duobei
commented
Mar 29, 2024
- generate Golang code of Record and Ref Type
- generate Golang code of Enum Type
- generate file headers
- generate api messages and errors
ac0a8ed
to
30434a1
Compare
30434a1
to
3110ed1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two big issues I've seen:
-
I haven't seen any justification for adding the file ocaml/sdk-gen/go/go_file_headers.ml, it looks like it should be instead autogenerated from the datamodel and not committed.
-
All the api messages have changed and this causes a lot of churn. I understand you want to have a way to collect all of them and expose them. Don't other language SDKs do this? If not we can look for other ways of doing this (maybe a ppx?) the method should be reused for all other alnguages
fcf2dad
to
944f300
Compare
It seems there are some duplications between Update: |
944f300
to
f68bfd7
Compare
1b8a051
to
455d344
Compare
File heders are autogenerated now. |
5f004f2
to
32e165a
Compare
In the beginning, I wanted to reuse
Surprisingly, the transition between Yojson and mustache JSON is simple through pattern matching. |
abf107a
to
05d07ed
Compare
90c2764
to
09fb034
Compare
Signed-off-by: Luca Zhang <[email protected]>
CP-47350: Add mustache template for Record/Ref/Class Types CP-47365: Add mustache template for API messages/errors CP-47363: Add mustache template for file header Signed-off-by: Luca Zhang <[email protected]>
Signed-off-by: Luca Zhang <[email protected]>
Signed-off-by: Luca Zhang <[email protected]>
Signed-off-by: Luca Zhang <[email protected]>
Signed-off-by: Luca Zhang <[email protected]>
Signed-off-by: Luca Zhang <[email protected]>
…ed JSON is wanted Signed-off-by: Luca Zhang <[email protected]>
…mmonFunctions` Signed-off-by: Luca Zhang <[email protected]>
09fb034
to
69da32f
Compare
Not a blocker for this PR, it can go in a new one) but it may be a good idea at some point to add a sanity build in |
Cool. We will add that in the following PR. |
…files Signed-off-by: Luca Zhang <[email protected]>
Signed-off-by: Luca Zhang <[email protected]>
Before we got the enums alongside objs, the readability of code is so poor. We separate to get them now. Signed-off-by: Luca Zhang <[email protected]>
Just check the fields only we need instead of generalized recursive functions Signed-off-by: Luca Zhang <[email protected]>
Signed-off-by: Luca Zhang <[email protected]>
69da32f
to
1351856
Compare
pytype_reporter extracted 50 problem reports from pytype output. You can check the results of the job here |