mirror of
https://github.com/wekan/wekan.git
synced 2025-12-15 23:10:13 +01:00
openapi: also consider Object type as valid
Not sure if this will end up in a correct openapi file, but the docs are correctly generated, so... meh.
This commit is contained in:
parent
431d884e83
commit
e1ffe943c8
1 changed files with 4 additions and 1 deletions
|
|
@ -249,7 +249,10 @@ class EntryPoint(object):
|
|||
|
||||
if name.startswith('{'):
|
||||
param_type = name.strip('{}')
|
||||
if param_type not in ['string', 'number', 'boolean', 'integer', 'array', 'file']:
|
||||
if param_type == 'Object':
|
||||
# hope for the best
|
||||
param_type = 'object'
|
||||
elif param_type not in ['string', 'number', 'boolean', 'integer', 'array', 'file']:
|
||||
self.warn('unknown type {}\n allowed values: string, number, boolean, integer, array, file'.format(param_type))
|
||||
try:
|
||||
name, desc = desc.split(maxsplit=1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue