feat: add category fields for BME.

- add category for BME prorotypes.
- update validator and extractor for this change.
This commit is contained in:
2025-08-25 10:30:44 +08:00
parent 0681f0d240
commit 96a81b165b
14 changed files with 115 additions and 60 deletions

View File

@ -27,6 +27,7 @@ class ShowcaseCfg(BaseModel):
class Showcase(BaseModel):
title: str = Field(frozen=True, strict=True)
category: str = Field(frozen=True, strict=True)
icon: str = Field(frozen=True, strict=True)
type: ShowcaseType = Field(frozen=True)
cfgs: list[ShowcaseCfg] = Field(frozen=True, strict=True)