OpenAPITools / OpenAPITools/openapi-generator
[REQ] Access the full json object generated before it gets passed to the tpl engine.
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 26.8k
- Forks
- 7.7k
- PR merge metrics
- PR metrics pending
Description
Is your feature request related to a problem? Please describe.
Moustache is not a very feature rich tpl engine and the syntax is not pretty.
I am not a java developer.
I want to use another tpl engine and inject a few extra customised bits but not interested in learning java to do it. I would just like to grab hold of the json and do what i want with it.
Seems like this lib is the perfect engine, to output into a json output would expand the audience of codegen to the likes of.. well.. developers in any language that can parse json.
Describe the solution you'd like
Pass output json flag eg --output-json to dump to terminal, or pass and output to write to disk instead of passing it to the tpl engine directly.
Describe alternatives you've considered
Using the alternate libs out there on npm, but as the community is more actively maintaining this, it feels like the cleaner solution.
Additional context
None.. with this small feature i would be free to do a lot of things with this tool with more freedom to explore.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the command-line handling for the proposed --output-json option and trace how the generated JSON object is handed to the template engine. Define whether the flag writes to the terminal or a file, then verify that the complete object can be consumed without invoking the template engine.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- cli, tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100