Unverified Commit 04553371 authored by Chauncey's avatar Chauncey Committed by GitHub
Browse files

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


Signed-off-by: default avatarchaunceyjiang <chaunceyjiang@gmail.com>
parent 3c0ff914
...@@ -13,10 +13,6 @@ def unsupported_string_schemas(): ...@@ -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(): ...@@ -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": {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment