the latest on Extending and Referencing

2 views
Skip to first unread message

Lloyd Hilaiel

unread,
Dec 13, 2009, 12:55:40 PM12/13/09
to JSON Schema
hi again,

what is the status of the "Extending and Referencing" ideas here:
http://json-schema.org/

as related to the published draft: http://tools.ietf.org/html/draft-zyp-json-schema-01#section-5.24

Is it that the ideas expressed in the former are wholly non-normative
conventions on top of the latter?

lloyd

Kris Zyp

unread,
Dec 14, 2009, 10:52:06 AM12/14/09
to json-...@googlegroups.com
The Internet Draft does supercede the prior draft that is at
http://json-schema.org/ (actually I should copy the I-D to
http://json-schema.org/), but the intention is that conventions from the
prior draft at http://json-schema.org/ should now become normative with
the JSON schema link definitions in combination with the normative
meta-schema definition at http://json-schema.org/hyper-schema, which
extends http://json-schema.org/json-ref, which contains the link
definitions that are used by schemas. This probably should be spelled
out more clearly in the Internet Draft, so one does not need to actually
follow all these links to understand how in-place links are used in schemas.

Also, I know there has frequently been confusion that "extends" and
"schema" are not URI-valued properties, instead use JSON referencing:
{"extends": {"$ref":"http://somesite.com/some-schema"}}
JSON schema does have the ability to self-describe this property as a
URI link it self, so it would be pretty easy to update meta-schema so
you could write:
{"extends": "http://somesite.com/some-schema"}
Would that be preferable?
Kris
Reply all
Reply to author
Forward
0 new messages