Bug 1507521 - Finish library per RFC 128#1
Conversation
|
Hm, actually I want to refactor this a bit so that a References can either be absolute or abstract. |
|
OK, I'm a good bit happier with that. |
Manage manifests, reference documents, schemas, and metaschemas as described in RFC 128.
| @@ -0,0 +1,35 @@ | |||
| $schema: "http://json-schema.org/draft-06/schema#" | |||
There was a problem hiding this comment.
how about:
$schema: "https://taskcluster.net/schemas/common/metadata-metaschema-v1.json#"
metadata:
- name: "metadata-metaschema"
- version: 1
;-)
There was a problem hiding this comment.
It seems like having a document be its own metaschema could lead to trouble? What's the benefit here?
There was a problem hiding this comment.
Or maybe this even works(?) I suspect not, I suspect $schema needs to be a fully qualified URI...
$schema: #/
metadata:
- name: "metadata-metaschema"
- version: 1
There was a problem hiding this comment.
Just a way of decorating this schema too with metadata, and enabling versioning of it, should we wish to add additional metadata later, for example...
There was a problem hiding this comment.
I don't think anything would read that version, though (and anyway, wouldn't it have to read the version of its metaschema, and just keep going until it looped? And what if the loop was a cycle of more than one metaschema?). Can we just keep this simple?
imbstack
left a comment
There was a problem hiding this comment.
This seems to make sense to me. I am in favor of the simplicity approach I think.
|
I've released this as v1.0.0. I'm sure there will be some patch releases.. |
Manage manifests, reference documents, schemas, and metaschemas as
described in RFC 128.
Intended uses of this library:
fromService({schemaset, builder, exchanges})method) to check their schemas and references are valid at test time/docs