mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 07:20:12 +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('{'):
|
if name.startswith('{'):
|
||||||
param_type = name.strip('{}')
|
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))
|
self.warn('unknown type {}\n allowed values: string, number, boolean, integer, array, file'.format(param_type))
|
||||||
try:
|
try:
|
||||||
name, desc = desc.split(maxsplit=1)
|
name, desc = desc.split(maxsplit=1)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue