validate-modules - allow raw module return type (#78231)

pull/78248/head
Jordan Borean 2 years ago committed by GitHub
parent 2bc2153c01
commit 75de4a37bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,2 @@
minor_changes:
- 'validate-modules - Allow ``type: raw`` on a module return type definition for values that have a dynamic type'

@ -674,7 +674,7 @@ def return_contains(v):
def return_schema(for_collection, plugin_type='module'):
if plugin_type == 'module':
return_types = Any('bool', 'complex', 'dict', 'float', 'int', 'list', 'str')
return_types = Any('bool', 'complex', 'dict', 'float', 'int', 'list', 'raw', 'str')
element_types = Any(None, 'bits', 'bool', 'bytes', 'dict', 'float', 'int', 'json', 'jsonarg', 'list', 'path', 'raw', 'sid', 'str')
else:
return_types = Any(None, 'boolean', 'bool', 'integer', 'int', 'float', 'list', 'dict', 'dictionary', 'path', 'str', 'string', 'raw')

Loading…
Cancel
Save