addonscript-spec/docs/schema/root.md

58 lines
1.2 KiB
Markdown
Raw Normal View History

2021-06-23 22:06:21 +02:00
# Addon Object
``` json
{
2021-07-18 12:32:57 +02:00
"addonscript": {},
"id": "myaddon",
2021-11-13 20:47:21 +01:00
"namespace": "com.example",
"version": "1.0",
"files": [],
"relations": [],
"flags": ["server", "client"],
2021-07-18 12:32:57 +02:00
"repositories": [],
"meta": {}
2021-06-23 22:06:21 +02:00
}
```
## Required properties
### addonscript
This is an [AddonScript object](addonscript.md) containing information about the version of AddonScript used in this file.
### id
2021-11-13 20:47:21 +01:00
This is the ID of the addon. It should only contain **lowercase letters, numbers and dashes**.
### version
This is the version number of this version. It must follow [semver version naming conventions](https://semver.org/spec/v2.0.0.html),
as they are used to compare versions.
2021-06-23 22:06:21 +02:00
## Optional properties
2021-11-13 20:47:21 +01:00
### namespace
2021-06-23 22:06:21 +02:00
2021-11-13 20:47:21 +01:00
This is the namespace of the addon.
2021-06-23 22:06:21 +02:00
2021-11-13 20:47:21 +01:00
### files
2021-06-23 22:06:21 +02:00
2021-11-13 20:47:21 +01:00
This is an array of [file objects](file.md) including the files belonging to this version.
2021-06-23 22:06:21 +02:00
2021-11-13 20:47:21 +01:00
### relations
This is an array of [relation objects](relation.md) which represents related addons.
2021-06-23 22:06:21 +02:00
### flags
2021-11-13 20:47:21 +01:00
This is an array of [flags](../flags.md) for this version.
### repositories
This is an array of [repository objects](repository.md). Each repository object defines one repository from which files or
addons can be retrieved.
2021-06-23 22:06:21 +02:00
### meta
This is a [meta object](meta.md).