Use LJSUrl#isCollection to decide which collection should be used on the header: json-schemas or collection-schemas.