-
-
Notifications
You must be signed in to change notification settings - Fork 671
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hxb writer config #11507
Hxb writer config #11507
Conversation
Where would be put one of these fancy JSON schema things for this? (And is there a tool to generate those from a type definition?) |
json2object lib can generate them: https://github.com/elnabo/json2object/#using-the-jsonschema-writer Edit: Guess we could start storing some here in |
We have Edit: On the bright side, looks like json2object just works:
|
Those two might work for Haxe repo itself (... on vscode only) We could move all those schemas to |
Ok I see, I shouldn't have brought that up here... made a new issue! |
I'll go ahead and merge this. The foundation should be good, and if we need anything else it's easy enough to add thanks to the new internal data API here. The macro side of this isn't very well tested (read: not tested at all) but I'm sure people will get to that. |
Allows specifying
--hxb some.json
and addshaxe.macro.Compiler.getHxbConfiguration
andhaxe.macro.Compiler.setHxbConfiguration
.All the pertinent information should be in the .hx files. @PXshadow Could you check if this works for your use-case?
Closes #11490