json-gate icon indicating copy to clipboard operation
json-gate copied to clipboard

Support extends

Open ghost opened this issue 12 years ago • 4 comments

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

ghost avatar Dec 04 '12 15:12 ghost

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?

oferei avatar Jan 08 '13 12:01 oferei

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.

ferson2020 avatar May 22 '13 15:05 ferson2020

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

the-t-in-rtf avatar Sep 17 '14 12:09 the-t-in-rtf

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

oferei avatar Sep 17 '14 13:09 oferei