addonscript-spec/docs/schema/relation.md

849 B

Relation Object

{
  "id": "namespace:othermod",
  "version": "[1.0,)",
  "flags": [],
  "conditions": {}
}

Required properties

id

This is the ID or namespaced ID of the addon this relation refers to.

version

This is a maven version range of supported versions of this relation.

Optional properties

flags

This is an array of flags for this relation. If this property is not present in a relation object, the relation will have the flags which are set as default for relations or, if no default was set, it will inherit the flags which are applicable for relations from the associated version.

conditions

This is a conditions object. It can only be used, if the optional flag was set.