fixed openapi schema type int ==> integer

This commit is contained in:
smilerz
2024-02-19 07:34:32 -06:00
parent 0725fb0f2b
commit e766df947e
3 changed files with 36 additions and 3868 deletions

View File

@@ -44,12 +44,12 @@ class TreeSchema(AutoSchema):
"name": 'root', "in": "query", "required": False,
"description": 'Return first level children of {obj} with ID [int]. Integer 0 will return root {obj}s.'.format(
obj=api_name),
'schema': {'type': 'int', },
'schema': {'type': 'integer', },
})
parameters.append({
"name": 'tree', "in": "query", "required": False,
"description": 'Return all self and children of {} with ID [int].'.format(api_name),
'schema': {'type': 'int', },
'schema': {'type': 'integer', },
})
return parameters