-
Notifications
You must be signed in to change notification settings - Fork 600
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Validation does not support deeply nested objects #2560
Comments
Can confirm that the depth limit of 2 exists since last year. I rewrote my json configs with jq to be able to get all settings for a addon (Poeschl/Hassio-Addons@ccfd9e6). |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
"options": {
"tunnels": [],
"log_level": "info"
},
"schema": {
"tunnels": [
{
"enabled":"bool",
"credentials": {
"AccountTag":"str",
"TunnelSecret": "str",
"TunnelID":"str",
"TunnelName": "str"
},
"ingress": [
{
"hostname":"str?",
"service":"str?",
"path":"str?"
}
]
}
],
"log_level": "list(trace|debug|info|warn|error|fatal|panic)"
} Argh. Just written my first addon and found this exact issue with regard to deep nesting. (which lets be fair, in the grand scheme of things is hardly "deep"). Should really be fixed; the limitation feels unnatural and unnecessary. |
You should open a new issue. Closed issues are not recognized in my experience. |
Describe the issue you are experiencing
After the recent schema change I talked to frenck on Discord, who suggested that the nested depth limitation in the docs isn't an actual limitation and just a recommendation. I tried writing a schema for this and was met with errors. Take this sample schema:
Adding this into an add-on will cause it to fail to load (see supervisor logs below). The same happens for nested arrays, e.g.:
I would expect any level of nesting to work, especially since there are no other options left for configuration.
What is the used version of the Supervisor?
supervisor-2021.02.6
What type of installation are you running?
Home Assistant Supervised
Which operating system are you running on?
Debian
What is the version of your installed operating system?
9.13
What version of Home Assistant Core is installed?
core-2021.2.1
Steps to reproduce the issue
...
Anything in the Supervisor logs that might be useful for us?
This issue is aftermath of #2540, more info for this specific add-on can be found at mKeRix/room-assistant#501. This problem is preventing me from restoring the same functionality that my add-on had before the schema change.
The text was updated successfully, but these errors were encountered: