Spaces:
Running
Running
File size: 250 Bytes
33bb385 | 1 2 3 4 5 6 7 8 9 | from pydantic import BaseModel, Field
from typing import Optional
import json
class A(BaseModel):
answer: Optional[str] = Field(None, json_schema_extra={"type": "string", "maxLength": 100000})
print(json.dumps(A.model_json_schema(), indent=2))
|