-
-
Notifications
You must be signed in to change notification settings - Fork 211
-
-
Notifications
You must be signed in to change notification settings - Fork 211
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
Java POJO generation #159
Comments
Us too! If we could have something like this in Node.js, that'd be perfect. |
I started a bit of work on this, might have more later this week. |
I wonder if it would be possible to leverage https://github.com/quicktype/quicktype for JSON Schema messages? OpenAPI has a similar need for this as well, but leveraging existing code generation for JSON Schema messages seems like it would make a lot of sense instead of rebuilding from scratch. |
Totally agree. Quicktype seems to be perfect but I've seen they lack a stable/public API. Also, it seems the company behind is not interested in maintaining it beyond their needs. Maybe a good chance for a fork? 🤔 |
I threw together a prototype using a Quicktype filter that spits out Java mappings but haven't played around to see how robust the results are. I wondered about exploring the use of hooks or some other plugin-like approach to allow a project like generator-quicktype-models, but I haven't given it a lot of thought! |
Can you share this prototype code? I'm curious. |
Have a gander: nickspacek/generator@08520bc |
Nice! It looks easy! I see we can probably expose the parsed AsyncAPI document in the |
This issue has been automatically marked as stale because it has not had recent activity 😴 |
@typekpb @nickspacek @bbrenne hi folks, you might be interested in #216. It would be awesome to hear your opinion. |
Folks, have a look at https://www.asyncapi.com/tools/modelina |
closing as modelina is doing it already https://github.com/asyncapi/modelina |
I'd be interested in using the generator for generating the Java POJOs based on the payload definition in the particular messages.
The text was updated successfully, but these errors were encountered: