Haxe and json schemas

Hi,
Maybe anyone could guide me in correct direction, regarding json schemas.
I have library that describes json files using schemas, and I would like to make parser for these files, what would be the best way to sync typings between parser and json provider?

I see multiple possibilities, one would be to create schema → type generator, I think I saw lib that do opposite already, maybe it could be utilised :smiley:

Other would be to just use macro and parse schema on fly but that would mean to copy schemas every time to lib.

Any suggestions are welcome :slight_smile:
Thank you