Skip to content

Commit fe4b728

Browse files
authored
fix(openapi): examples syntax for GPU archetype endpoint (#451)
1 parent 780bbc1 commit fe4b728

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

boaviztapi/routers/component_router.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,9 @@ async def gpu_all_archetype_name():
109109

110110

111111
@component_router.get("/gpu/archetype_config", description=gpu_description)
112-
async def gpu_archetype_config(archetype: str = Query(examples=config["default_gpu"])):
112+
async def gpu_archetype_config(
113+
archetype: str = Query(examples=[config["default_gpu"]]),
114+
):
113115
return get_archetype_config(archetype, "gpu")
114116

115117

0 commit comments

Comments
 (0)