Skip to content

Commit cbd8723

Browse files
author
X
committed
Update response type in get_all_tables to allow None values in dictionary
1 parent ed2c799 commit cbd8723

File tree

1 file changed

+1
-1
lines changed
  • backend/plugin/code_generator/api/v1

1 file changed

+1
-1
lines changed

backend/plugin/code_generator/api/v1/code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
@router.get('/tables', summary='获取数据库表')
2020
async def get_all_tables(
2121
table_schema: Annotated[str, Query(description='数据库名')] = 'fba',
22-
) -> ResponseSchemaModel[list[dict[str, str]]]:
22+
) -> ResponseSchemaModel[list[dict[str, str | None]]]:
2323
data = await gen_service.get_tables(table_schema=table_schema)
2424
return response_base.success(data=data)
2525

0 commit comments

Comments
 (0)