This commit is contained in:
mats committed 2026-08-22 22:33:18 +02:00
1 parent 9f578780bd
commit 5807132ac6
6 files changed
+838 -81

No files matched your search

+8
View File
@@ -53,3 +53,11 @@ func ObjectArray(desc string) json.RawMessage {
})
return b
}
// IntegerArray builds an array-of-integers schema.
func IntegerArray(desc string) json.RawMessage {
b, _ := json.Marshal(map[string]any{
"type": "array", "description": desc, "items": map[string]string{"type": "integer"},
})
return b
}