We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I came across some module-code that implements Ansible parameter-validation for items inside a dict
Example:
extended_query=dict(type='dict', options=dict( attributes=dict(type='list', elements='str', required=True), where=dict( type='list', elements='dict', options={ 'attribute': dict(type='str'), 'is': dict(type='str', choices=["==", "!=", ">", "<", "in", "eq", "not", "more", "less"]), 'value': dict(type='raw'), 'or': dict(type='list', elements='dict', options={ 'attribute': dict(type='str', required=True), 'is': dict(type='str', choices=["==", "!=", ">", "<", "in", "eq", "not", "more", "less"], required=True), 'value': dict(type='raw', required=True), }), }, required_together=[('attribute', 'is', 'value')], mutually_exclusive=[('attribute', 'or')], required_one_of=[('attribute', 'or')], ), )),
This could make the validation in multi modules simpler and therefor cleaner.
multi
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Link to API
Description
I came across some module-code that implements Ansible parameter-validation for items inside a dict
Example:
This could make the validation in
multi
modules simpler and therefor cleaner.The text was updated successfully, but these errors were encountered: