Giter Site home page Giter Site logo

Comments (3)

pearmaster avatar pearmaster commented on September 1, 2024 4

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.

pearmaster avatar pearmaster commented on September 1, 2024 1

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.

Wandows95 avatar Wandows95 commented on September 1, 2024

@pearmaster

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.