HF RL Explorer

model json schema fails with empty enum

model json schema fails with empty enum: a task in MiMo-V2.6-RL-harbor-code: MiMo-V2.6-RL Code (Harbor) (Harbor dataset). When a field is annotated as an enum and that enum has no members then model json schema fails. MRE and traceback below. In pydantic v1 this produces {"title": "MyModel"…

The task

When a field is annotated as an enum and that enum has no members then `model_json_schema` fails. MRE and traceback below. In pydantic v1 this produces `{"title": "MyModel", "type": "object", "properties": {"e": {"title": "E", "enum": []}}, "required": ["e"]}` (using `schema_json`).

Part of FineEnvs/MiMo-V2.6-RL-harbor-code.