Giter VIP home page Giter VIP logo

Comments (5)

Dr-Emann avatar Dr-Emann commented on May 30, 2024

I've written up a JSON Schema for the haxelib.json file here. I've used examples I've found, and the haxelib source code to get my best guess at what is available/required, etc. If I'm missing anything or anything is wrong, corrections gladly accepted.

As a note: the haxelib program does not seem to require a description, but it does require a releasenote. I didn't think that was right, so I made both required.

from haxelib.

jasononeil avatar jasononeil commented on May 30, 2024

Looks good, left my comment on the gist.

from haxelib.

Dr-Emann avatar Dr-Emann commented on May 30, 2024

Maybe we should include the schema into the haxelib repo, that way if/when we make changes, the changes to the schema will be tracked with git too.

from haxelib.

jasononeil avatar jasononeil commented on May 30, 2024

That sounds like a good idea to me.

It would be nice to have a Haxe validator. An alternative approach to
porting the JS version would be to re-do the schema as typedefs (and some
metadata for anything that can't be expressed in plain Haxe syntax), and
then you have a macro validator that gives you a strongly typed object on
the other side.

A man can dream :) For now, I'll include the file in the repo.

Jason

On Wed, Jun 12, 2013 at 8:25 PM, Zachary Dremann
[email protected]:

Maybe we should include the schema into the haxelib repo, that way if/when
we make changes, the changes to the schema will be tracked with git too.


Reply to this email directly or view it on GitHubhttps://github.com//issues/38#issuecomment-19322117
.

from haxelib.

jasononeil avatar jasononeil commented on May 30, 2024

It's in the repo. I'm still a fan of the macro validator, but maybe next time.

from haxelib.

Related Issues (20)

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.