Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Support extends #11

Open
ghost opened this Issue Dec 4, 2012 · 4 comments

Comments

Projects
None yet
3 participants
@ghost

ghost commented Dec 4, 2012

Hi,
I think "extends" based inheritance is nit supported yet, right?!
So that would be nice.
Thanks

Owner

oferei commented Jan 8, 2013

true. as I wrote in the doc, neither hyperlinking nor hyper schema is supported. I was wondering how many people would use it.
can you tell me how you would use it?

The "extends" field has nothing to do with hyper schemas or hyperlinking; it allows inheritance of schemas. The idea is you can have a base schema, and then extend that schema to create a new more complex schema on top of it.

See http://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.26 for more information.

I would personally find it useful to pass in a schema in a schema into the extends field instead of having to clone a schema and modify it every time I want to extend one.

I really liked the user friendly focus of the validation output, but lack of inheritance is a deal breaker for me.

Owner

oferei commented Sep 17, 2014

good to know. I'll see if I can get to it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment