Skip to content

Commit 7058a36

Browse files
authored
Allow gpu.name as string in json schema (#3027)
1 parent 2a5b06e commit 7058a36

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/dstack/_internal/core/models/resources.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,10 @@ def schema_extra(schema: Dict[str, Any]):
225225
schema["properties"]["count"],
226226
extra_types=[{"type": "integer"}, {"type": "string"}],
227227
)
228+
add_extra_schema_types(
229+
schema["properties"]["name"],
230+
extra_types=[{"type": "string"}],
231+
)
228232
add_extra_schema_types(
229233
schema["properties"]["memory"],
230234
extra_types=[{"type": "integer"}, {"type": "string"}],

0 commit comments

Comments
 (0)