Replies: 5 comments 4 replies
-
|
I think you can do this with js-yaml, you either write a script for this or use their CLI. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
If you want to generate code from AsyncAPI, forget about Quicktype as it's not maintained. Better give Modelina a try. |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
Hi
Thanks for the reply. The reason I am using quicktype cli tools is that it
gives me automatic code generation that converts the input Json to C++
struct and vice versa.
I used Modelina and indeed it gives me the C++ struct to use. But it does
not give me automatic code to convert this C++ struct to json and vice
versa. Something that quicktype does (using nlohmann::json)
Any suggestion how I can create auto generated code to convert Modelina
output struct to json and vice versa ?
Thanks
…On Fri, Jun 23, 2023 at 11:55 AM Fran Méndez ***@***.***> wrote:
If you want to generate code from AsyncAPI, forget about Quicktype as it's
not maintained. Better give Modelina <https://modelina.org/> a try.
—
Reply to this email directly, view it on GitHub
<#763 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABTT2E77NKYFXDMAJVAIZV3XMVKYBANCNFSM6AAAAAAZRHUZVM>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
2 replies
-
|
Thanks!
Is there a link to the nlohmann::json preset implementation ?
…On Fri, Jun 23, 2023 at 6:26 PM Jonas Lagoni ***@***.***> wrote:
Might want to join this issue 🙂 asyncapi/modelina#1384
<asyncapi/modelina#1384>
Modelina gives you all the tools you need to extend the generated models
to your liking, i.e. so they implement nlohmann::json, this is done through
presets: https://github.com/asyncapi/modelina/blob/master/docs/presets.md
If you get stuck I am happy to help you move forward
—
Reply to this email directly, view it on GitHub
<#763 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABTT2E5XLO5GWMHMU4QZOXDXMWYSDANCNFSM6AAAAAAZRHUZVM>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
-
|
ok, thanks!! 😊
…On Fri, Jun 23, 2023 at 7:20 PM Jonas Lagoni ***@***.***> wrote:
@oavitzur <https://github.com/oavitzur> there are currently no
implementation, what I ma saying is that Modelina enables you to write it
🙂
—
Reply to this email directly, view it on GitHub
<#763 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABTT2E4NOFC3JMDWK2GXLMDXMW65ZANCNFSM6AAAAAAZRHUZVM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi
I'm looking for a way to convert the asyncapi.yml to json format. The reason I want this is to convert the yml to json and from json to use quicktype utility to convert to any language I prefer
Any tools to convert the yml to json ?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions