Skip to content

Commit

Permalink
Add support for extended map configuration (#186)
Browse files Browse the repository at this point in the history
  • Loading branch information
frenck authored Sep 27, 2024
1 parent ac11755 commit 3f2124e
Showing 1 changed file with 38 additions and 4 deletions.
42 changes: 38 additions & 4 deletions src/config.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,44 @@
"type": "array"
},
"map": {
"items": {
"pattern": "^(addon_config|all_addon_configs|config|homeassistant_config|ssl|addons|backup|share|media)(:(rw|ro))?$"
},
"type": "array"
"type": "array",
"oneOf": [
{
"items": {
"type": "string",
"pattern": "^(addon_config|all_addon_configs|config|homeassistant_config|ssl|addons|backup|share|media)(:(rw|ro))?$"
}
},
{
"items": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"addon_config",
"all_addon_configs",
"config",
"homeassistant_config",
"ssl",
"addons",
"backup",
"share",
"media"
]
},
"read_only": {
"type": "boolean"
},
"path": {
"type": "string"
}
},
"required": ["type"],
"additionalProperties": false
}
}
]
},
"name": {
"type": "string"
Expand Down

0 comments on commit 3f2124e

Please sign in to comment.