How should a schema link be provided to the client for a hypermedia/restful json array endpoint
<p>i have a hypermedia/restful service that exposes collections as (page-able) endpoints. these are serialized as json arrays. </p>

<p>i have a(n automatically generated) json schema for each endpoint and wish to communicate the location of these schemas to the client, but because the endpoints are json arrays, i cannot include a '$schema' property that contains a link to the corresponding schema.</p>

<p>there are a few options i can think of:</p>

<ol>
<li><p>wrap the array in a json object that contains the json array alongside the schema link (and any other properties specific to the collection)</p></li>
<li><p>provide the schema link as a custom http header parameter</p></li>
<li><p>assume the client just 'knows' how to get the schema for an endpoint, without needing to be explicitly told</p></li>
<li><p>provide to the client the general format of the schema url at the root level which the client then remembers and uses to generate all the schema links itself</p></li>
</ol>

<p>what is the best way to provide json schema links to the client?</p>