Comments (3)
Hi @Wandows95 ,
I don't have time right at this moment to look into this, but thought I would point you in the right direction in case you're in a hurry.
The exceptions.hpp file comes from https://github.com/pearmaster/json-schema-codegen/blob/master/jsonschemacodegen/templates/cpp/exceptions.hpp.jinja2
While it looks like a template file, it is mostly static, and includes exception classes which are thrown when on a JSON-Schema validation error. The attempt here was to capture more information about where the validation error occurred.
from asyncapi-codegen.
You should be able to "patch" that pretty quickly. There is the source.cpp.jinja2
file:
https://github.com/pearmaster/asyncapi-codegen/blob/master/asyncapicodegen/templates/cpp/source.cpp.jinja2
On line 15 you'll see the include statement, and you can change it (hard code it) to be whatever you need it to be for you.
I've also quickly fixed the source to only include the slash when needed, but I don't have time right now to republish the package. But you should be able to find and edit source.cpp.jinja2
wherever you have it installed and it will work for you.
from asyncapi-codegen.
Thank you very much for the info and quick response, it was really helpful. I managed to grab that header and add it to my project, but unfortunately the forward slash prefix on
#include "/exceptions.hpp"
also prevents me from including the file properly when placed in the project
Thank you for your time.
from asyncapi-codegen.
Related Issues (8)
- Issue running examples
- Cpp generated code throws error for subscribe topics having more than 1 parameters
- Regex metacharacters ('\d') not validated correctly in generated code
- Class name used instead of namespace in generated code
- Python client should use message_callback_add
- Failure with pip install json-schema-codegen
- yml file in example is not available
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 asyncapi-codegen.