{
"some_asset_type": [
{
"value": "some_value",
"metadata": {
"some": "metadata",
"more": "metadata"
},
"action": "add|remove",
"priority": 99
}
]
}
A discovery.json
file contains an array of asset types, indexed by name.
Each asset type contains an array of asset objects.
Each asset object can be represented this way:
{
"value": "some_value",
"metadata": {
"some": "metadata",
"more": "metadata"
},
"action": "add|remove",
"priority": 99
}
{}
): an array of metadata attached to the asset.0
): The priority of the asset. Assets with higher priorities are returned first.An asset object can be represented by a simple string.
So
{
"some_asset_type": [
{
"value": "some_value"
}
]
}
can be simplified into:
{
"some_asset_type": [
"some_value"
]
}
Furthermore, if the asset type array contains only one value, you can skip the array and simply provide the value:
{
"some_asset_type": "some_value"
}
Found a typo? Something is wrong in this documentation? Just fork and edit it!