Comments (4)
Thanks for your interest, and sorry for a long wait with the response and the review. I assume what you were asking for here, you managed to fix in #60, or is there something else I'm missing here? Also, let me know if there's anything else I can help with - issues and PRs are very welcome!
from gtad.
No the Idea was, that it would help in development of templates and config, when there was an option to output the model, the template was filled with. My current method for this is to open a debugger (in my case gdb), set the breakpoint to the line, the template is filled with the model (main.cpp:13) and the print the contents of the model-variable (p model). Needless to say, this method is very indirect and difficult to scale for larger specs. It would be much easier, when it was possible to serialize the model-variable into json or yaml and place this file besides the generated sources.
from gtad.
Ah, yes, indeed, that's what I'm doing myself...
from gtad.
FYI: This proved to be harder than I hoped: the Mustache library used by GTAD doesn't give away the context on which it runs. Either the library has to be changed, or each piece of the context should be recorded at the moment of building it. I tend to the latter so far.
from gtad.
Related Issues (20)
- OpenAPI 3.0 support
- Support variadics aka 'exploding'
- Support oneOf
- Switch to Mustache 4.0
- Support Matrix CS API 0.4.0
- Support response structure inlining
- There's no way to stop inheriting higher-level values down to inner structures
- The order of imports is unstable HOT 1
- A combination of allOf and type: object under schema shouldn't break inlining
- Drop Qt in favor of standard/lighter deps
- Support default values for schema fields
- Remove hardcoded import logic HOT 1
- Nested `+set/+on` blocks don't merge
- Support overwriting field definitions
- Enable early substitution of "allOf with $ref" schemas
- Qt 6 support
- Canonicalise include paths before passing to Mustache HOT 1
- Put all required fields in structures before non-required ones HOT 1
- Support local $ref objects
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gtad.