[CI] xgrammar structured output supports Enum. (#15757)

Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
This commit is contained in:
Chauncey 2025-03-30 11:20:02 +08:00 committed by GitHub
parent 3c0ff914ac
commit 045533716b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -13,10 +13,6 @@ def unsupported_string_schemas():
"type": "string", "type": "string",
"pattern": "^[a-zA-Z]+$" "pattern": "^[a-zA-Z]+$"
}, },
{
"type": "string",
"enum": ["active", "inactive", "pending"]
},
{ {
"type": "string", "type": "string",
"minLength": 1 "minLength": 1
@ -164,6 +160,10 @@ def supported_schema():
"type": "number" "type": "number"
} }
}, },
"car_type": {
"type": "string",
"enum": ["sedan", "suv", "truck"]
},
"address": { "address": {
"type": "object", "type": "object",
"properties": { "properties": {