Add links to relation #12

Open
tilera wants to merge 1 commit from unstable/relation-links into master

View file

@ -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.