mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-04 23:44:00 -07:00
Allow field attributes which are lists to validate the type of the list items
Starting to apply this for tags too, however it is not correcting things as would be expected.
This commit is contained in:
parent
f68223b9ed
commit
bb8d87ceb6
3 changed files with 9 additions and 2 deletions
|
@ -21,12 +21,13 @@ __metaclass__ = type
|
|||
|
||||
class Attribute:
|
||||
|
||||
def __init__(self, isa=None, private=False, default=None, required=False):
|
||||
def __init__(self, isa=None, private=False, default=None, required=False, listof=None):
|
||||
|
||||
self.isa = isa
|
||||
self.private = private
|
||||
self.default = default
|
||||
self.required = required
|
||||
self.listof = listof
|
||||
|
||||
class FieldAttribute(Attribute):
|
||||
pass
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue