From 4e9571c3d5e814fe7e5e7c15f871da04659ad55b Mon Sep 17 00:00:00 2001 From: Timo Ley Date: Thu, 3 Mar 2022 21:35:59 +0100 Subject: [PATCH] Add links to relation --- docs/schema/relation.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/schema/relation.md b/docs/schema/relation.md index b49d6f5..7335bd7 100644 --- a/docs/schema/relation.md +++ b/docs/schema/relation.md @@ -7,6 +7,7 @@ "version": "[1.0]", "repositories": ["repo1"], "flags": [], + "links": ["https://example.com/othermod.json", "./othermod.json"], "conditions": {} } ``` @@ -44,6 +45,13 @@ the namespace from all defined repositories. This is an array of [flags](../concepts/flags.md) for this relation. If this property is not present in a relation object, the relation will use the default flags. +### links + +This is an array of [links](../concepts/links.md), which are pointing to an [AddonScript JSON](addon.md) file, that contains the related addon. +When resolving relations, AddonScript should try to getthe related addon from the first link in this array. If the link doesn't work or the version +of the linked addon is not in the version range of this relation, the next link should be tried or, if there is no link left, the addon should +be resolved from the [repositories](#repositories) + ### conditions This is a [conditions object](conditions.md). It can only be used, if the [optional flag](../concepts/flags.md) was set.