Support for generating non python code #1657
Replies: 1 comment 8 replies
-
Yes, if it is considered valuable enough. I have been thinking about something similar for years. First of all, I created this tool to create a
From the beginning, formatting has been optional at the method level, so it can easily be disabled by command options or output format. Of course, the module structure is different from Python, so some refactoring is required to support other languages.
This tool parses the schema and generates an abstract object called This project started as a small tool for me, and even after the number of users increased, I did not do any major refactoring for compatibility. What do you think of the above thoughts? |
Beta Was this translation helpful? Give feedback.
-
I’m looking for a way to generate C++ code and other code and documentation from json schemas. I saw that this project allows for custom Jinja templates. So I thought that I might be able to use your generator. However it seems that the way things are now, the templates must generate python code at a formatter is handling the generated code. Also field variable type_ hint is a derived pydantic type.
Would it be feasible to change the generator into a more generic generator which could be used to generate arbitrary transformations of JSON schemas?
I want to make C++ code, Rust code, documentation and even UI’s from a schema.
Any thoughts on this?
Beta Was this translation helpful? Give feedback.
All reactions