confusing schema validation error when mandatory subkey is missing
Bug #819009 reported by
Robert Collins
This bug report is a duplicate of:
Bug #813831: errors can be misleading when environments are specified incorrectly.
Edit
Remove
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pyjuju |
New
|
Undecided
|
Unassigned |
Bug Description
This looks very similar to bug 813831.
Something with very similar symptoms occurred to me with clint's lxc branch:
I was missing a required lxc subkey, but the error claimed:
environments.
The actual best error raised during schema validation was:
environments.
but both had path length (5) so the more specific error did not override the less specific error.
Perhaps this would be fixed by setting the path ['environments', '.', 'local', '.', 'storage-
['environments', '.', 'local', '.', 'storage-
To post a comment you must log in.
If you merge the latest trunk, and use a SelectDict instead of a OneOf in ensemble. environment. config, you should see some improvement.