feat: import core schemas from hub-core

This commit is contained in:
2026-06-07 01:20:57 +02:00
parent 093b2b14ae
commit 70b264a37a
5 changed files with 49 additions and 57 deletions

View File

@@ -1,29 +1,7 @@
from pydantic import BaseModel
from hub_core.schemas.doi import DoICriterion, DoIReport, DoISummaryEntry
class DoICriterion(BaseModel):
id: str
label: str
tier: str
status: str # pass | fail | warn | skip
detail: str = ""
class DoIReport(BaseModel):
repo_slug: str
tier: str # none | core | standard | full
core_pass: bool
standard_pass: bool
full_pass: bool
criteria: list[DoICriterion] = []
checked_at: str
class DoISummaryEntry(BaseModel):
repo_slug: str
domain_slug: str | None
tier: str
core_pass: bool
standard_pass: bool
full_pass: bool
checked_at: str
__all__ = [
"DoICriterion",
"DoIReport",
"DoISummaryEntry",
]