addonscript-spec/docs/schema/index.md

26 lines
721 B
Markdown
Raw Normal View History

2021-06-23 22:06:21 +02:00
# Index Object
```json
{
"versions": {
"1.0": "https://example.json/mymod-1.0.json"
},
"addons": {
"othermod": "https://example.com/othermod.json"
}
}
```
## Optional Properties
### versions
This is an object, with version numbers as keys and [URLs](../url.md) to AddonScript files as values. The AddonScript file which the URL
2021-07-18 12:32:57 +02:00
points to must include the version number, which is the key in the map, and its addon ID must match the addon ID of the AddonScript
file which includes the index object.
2021-06-23 22:06:21 +02:00
### addons
This is an object, with addon IDs as keys and [URLs](../url.md) to AddonScript files as values. The addon ID of the AddonScript file, to
2021-06-23 22:06:21 +02:00
which the URL points, must match the key in the map.