{"action":"created","issue":{"url":"https://api.github.com/repos/json-schema-org/json-schema-spec/issues/140","repository_url":"https://api.github.com/repos/json-schema-org/json-schema-spec","labels_url":"https://api.github.com/repos/json-schema-org/json-schema-spec/issues/140/labels{/name}","comments_url":"https://api.github.com/repos/json-schema-org/json-schema-spec/issues/140/comments","events_url":"https://api.github.com/repos/json-schema-org/json-schema-spec/issues/140/events","html_url":"https://github.com/json-schema-org/json-schema-spec/issues/140","id":188179853,"number":140,"title":"Hyper-schema: Link subject/anchor","user":{"login":"awwright","id":437517,"avatar_url":"https://avatars3.githubusercontent.com/u/437517?v=4","gravatar_id":"","url":"https://api.github.com/users/awwright","html_url":"https://github.com/awwright","followers_url":"https://api.github.com/users/awwright/followers","following_url":"https://api.github.com/users/awwright/following{/other_user}","gists_url":"https://api.github.com/users/awwright/gists{/gist_id}","starred_url":"https://api.github.com/users/awwright/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awwright/subscriptions","organizations_url":"https://api.github.com/users/awwright/orgs","repos_url":"https://api.github.com/users/awwright/repos","events_url":"https://api.github.com/users/awwright/events{/privacy}","received_events_url":"https://api.github.com/users/awwright/received_events","type":"User","site_admin":false},"labels":[{"id":606146230,"url":"https://api.github.com/repos/json-schema-org/json-schema-spec/labels/hypermedia","name":"hypermedia","color":"d4c5f9","default":false},{"id":500636962,"url":"https://api.github.com/repos/json-schema-org/json-schema-spec/labels/Priority:%20Critical","name":"Priority: Critical","color":"e11d21","default":false},{"id":228372227,"url":"https://api.github.com/repos/json-schema-org/json-schema-spec/labels/Type:%20Enhancement","name":"Type: Enhancement","color":"84b6eb","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/json-schema-org/json-schema-spec/milestones/5","html_url":"https://github.com/json-schema-org/json-schema-spec/milestone/5","labels_url":"https://api.github.com/repos/json-schema-org/json-schema-spec/milestones/5/labels","id":2523389,"number":5,"title":"draft-07 (wright-*-02)","description":"This is the milestone for work corresponding to the following proposed drafts:\r\n\r\ndraft-wright-json-schema-02\r\ndraft-wright-json-schema-validation-02\r\ndraft-wright-json-schema-hyperschema-03\r\n\r\nand the following corresponding meta-schemas:\r\n\r\nhttp://json-schema.org/draft-07/schema#\r\nhttp://json-schema.org/draft-07/hyper-schema#\r\n\r\nThe deadline on the milestone is simply the expiration date of the wright-*-01 drafts, and is not set in stone.","creator":{"login":"handrews","id":2358015,"avatar_url":"https://avatars2.githubusercontent.com/u/2358015?v=4","gravatar_id":"","url":"https://api.github.com/users/handrews","html_url":"https://github.com/handrews","followers_url":"https://api.github.com/users/handrews/followers","following_url":"https://api.github.com/users/handrews/following{/other_user}","gists_url":"https://api.github.com/users/handrews/gists{/gist_id}","starred_url":"https://api.github.com/users/handrews/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/handrews/subscriptions","organizations_url":"https://api.github.com/users/handrews/orgs","repos_url":"https://api.github.com/users/handrews/repos","events_url":"https://api.github.com/users/handrews/events{/privacy}","received_events_url":"https://api.github.com/users/handrews/received_events","type":"User","site_admin":false},"open_issues":33,"closed_issues":1,"state":"open","created_at":"2017-05-16T08:05:46Z","updated_at":"2017-08-18T18:24:46Z","due_on":"2017-10-23T07:00:00Z","closed_at":null},"comments":8,"created_at":"2016-11-09T07:05:45Z","updated_at":"2017-08-19T09:11:33Z","closed_at":null,"body":"JSON Schema should be able to define the subject (anchor, or source) of a link relation.\r\n\r\n---\r\n\r\nSuppose I define a link right here (HTML):\r\n\r\n    <link rel=\"prev\" href=\"139\" />\r\n\r\nWe can express the information links convey in a format called N-Triples (a subset of the more general grammar Turtle). Since links by default have a subject of the current document, it would look like:\r\n\r\n    <https://github.com/json-schema-org/json-schema-spec/issues/140> iana:prev <https://github.com/json-schema-org/json-schema-spec/issues/139> .\r\n\r\nBut it might be the case we want to use JSON Schema to let documents make links about other documents to different other documents. A subject that's not `<https://github.com/json-schema-org/json-schema-spec/issues/140>`\r\n\r\nWell in that case we need to allow JSON Schema to define what that \"subject\"/\"source\"/\"anchor\" is."},"comment":{"url":"https://api.github.com/repos/json-schema-org/json-schema-spec/issues/comments/323511580","html_url":"https://github.com/json-schema-org/json-schema-spec/issues/140#issuecomment-323511580","issue_url":"https://api.github.com/repos/json-schema-org/json-schema-spec/issues/140","id":323511580,"user":{"login":"handrews","id":2358015,"avatar_url":"https://avatars2.githubusercontent.com/u/2358015?v=4","gravatar_id":"","url":"https://api.github.com/users/handrews","html_url":"https://github.com/handrews","followers_url":"https://api.github.com/users/handrews/followers","following_url":"https://api.github.com/users/handrews/following{/other_user}","gists_url":"https://api.github.com/users/handrews/gists{/gist_id}","starred_url":"https://api.github.com/users/handrews/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/handrews/subscriptions","organizations_url":"https://api.github.com/users/handrews/orgs","repos_url":"https://api.github.com/users/handrews/repos","events_url":"https://api.github.com/users/handrews/events{/privacy}","received_events_url":"https://api.github.com/users/handrews/received_events","type":"User","site_admin":false},"created_at":"2017-08-19T09:11:32Z","updated_at":"2017-08-19T09:11:32Z","body":"Hmm... now I'm realizing my point about naming subschemas isn't as useful as I thought.\r\n\r\nWriting up a PR, I was quickly reminded that the context URI is an instance URI, so naming subschemas is irrelevant.\r\n\r\nPer the `\"rel\"` spec (hmm... need to fix those dangling propositions, and align this with the \"context\" terminology from RFC 5988):\r\n\r\n>   The relation to the target is interpreted as from the instance that\r\n   the schema (or sub-schema) applies to, not any larger document that\r\n   the instance may have been found in.\r\n\r\nThere's another implication here:\r\n\r\n  Using JSON Pointer-style URI fragments for \"anchor\" at all is dubious, as `application/json` does not technically support such fragments.  While `\"anchor\"` still has uses (as discussed by @awwright earlier), the traditional URI Reference approach of `\"anchor\"` to change the context within the document does not work because JSON has no fragment addressing defined.\r\n\r\n  `\"anchorPointer\"` would in this sense be easier and more flexible, as it is **not** a URI Reference, so its resolution rules can be specified within JSON Hyper-Schema."}}
{"actor":{"display_login":"handrews"}}