From 045533716b4108e341e7c54dcb78758e2f9b5c7d Mon Sep 17 00:00:00 2001 From: Chauncey Date: Sun, 30 Mar 2025 11:20:02 +0800 Subject: [PATCH] [CI] xgrammar structured output supports Enum. (#15757) Signed-off-by: chaunceyjiang --- tests/v1/structured_output/test_utils.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/v1/structured_output/test_utils.py b/tests/v1/structured_output/test_utils.py index 3aa86cbec533c..554f38926269b 100644 --- a/tests/v1/structured_output/test_utils.py +++ b/tests/v1/structured_output/test_utils.py @@ -13,10 +13,6 @@ def unsupported_string_schemas(): "type": "string", "pattern": "^[a-zA-Z]+$" }, - { - "type": "string", - "enum": ["active", "inactive", "pending"] - }, { "type": "string", "minLength": 1 @@ -164,6 +160,10 @@ def supported_schema(): "type": "number" } }, + "car_type": { + "type": "string", + "enum": ["sedan", "suv", "truck"] + }, "address": { "type": "object", "properties": {