From 0553c8b8e694bad1a069ddef6f2745a32d8ddf47 Mon Sep 17 00:00:00 2001 From: Henry Andrews Date: Tue, 27 Nov 2018 13:34:25 -0800 Subject: [PATCH] Add a bit about conditional links This is a common question, so make a note of it where we introduce link validity. There are some other ways of doing this like "templateRequired" which I think are already covered well enough. A higher-level guide on various techniques is, I think, outside the scope of the specification. --- jsonschema-hyperschema.xml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/jsonschema-hyperschema.xml b/jsonschema-hyperschema.xml index 4c979548..5ee98637 100644 --- a/jsonschema-hyperschema.xml +++ b/jsonschema-hyperschema.xml @@ -215,7 +215,10 @@ A valid link for an instance is one that is applicable to that instance and does not fail any requirement imposed by the keywords - in the Link Description Object. + in the Link Description Object. Note that invalid links can + occur when using keywords such as "if" or "oneOf" (from the + Core specification) to describe links that are conditional on + the representation's structure or value. A user agent which can be used to interact with any resource, from