Replies: 2 comments
-
This is how python-jsonschema reports errors, we do not have much control over the effective errors but you are more than welcomed to improve the schema validator at https://github.com/python-jsonschema/jsonschema I was able to spot the root cause of the validation error as being passing a list of dictionaries to
Before working on a fix, we need to ensure that there is a valid use-case for passing a list of dictionaries instead of a dictionary. If we do not have, we will not allow it, even if ansible does. I did not see any example on ansible documentation that is using the list-of-dictionaries... |
Beta Was this translation helpful? Give feedback.
-
We got the answer, ansible-core 2.15 already deprecated passing lists-of-dicts, so our schema is correct and you need to switch to using a dictionary. We are also investigating ways to improve the messaging for this but it is tricky due to the way the library doing the validation works. |
Beta Was this translation helpful? Give feedback.
-
versions:
ansible-lint 6.16.0
My playbook has the following format:
I am getting the following error
any help would be appreciated
Beta Was this translation helpful? Give feedback.
All reactions