[Feature][V1] Add xgrammar to support minLength, maxLength with test (#16516)

Signed-off-by: Leon Seidel <leon.seidel@fau.de>
This commit is contained in:
leon-seidel
2025-04-12 08:22:07 +02:00
committed by GitHub
parent bd6028d6b0
commit e92d7085bf
3 changed files with 48 additions and 10 deletions

View File

@@ -13,14 +13,6 @@ def unsupported_string_schemas():
"type": "string",
"pattern": "^[a-zA-Z]+$"
},
{
"type": "string",
"minLength": 1
},
{
"type": "string",
"maxLength": 100
},
{
"type": "string",
"format": "email"
@@ -164,6 +156,14 @@ def supported_schema():
"type": "string",
"enum": ["sedan", "suv", "truck"]
},
"short_description": {
"type": "string",
"maxLength": 50
},
"long_description": {
"type": "string",
"minLength": 50
},
"address": {
"type": "object",
"properties": {