← Về thư mục
- _identifier · function · L84-L91 — def _identifier(value: Any, *, context: str) -> str
- _nullable_source_id · function · L94-L97 — def _nullable_source_id(value: Any, *, context: str) -> str | None
- _string_list · function · L100-L119 — def _string_list( value: Any, *, context: str, minimum: int, maximum: int, ) -> list[str]
- _source_id_list · function · L122-L127 — def _source_id_list(value: Any, *, context: str) -> list[str]
- manifest_content_hash · function · L130-L134 — def manifest_content_hash(document: dict[str, Any]) -> str
- _validate_document · function · L137-L159 — def _validate_document(value: Any) -> dict[str, Any]
- _validate_canvas · function · L162-L182 — def _validate_canvas(value: Any) -> tuple[dict[str, Any], float, float]
- _validate_physical_output · function · L185-L257 — def _validate_physical_output( value: Any, ) -> tuple[dict[str, Any], float, float, float, float, float, float]
- _validate_sources · function · L260-L289 — def _validate_sources(value: Any) -> dict[str, dict[str, Any]]
- _validate_requirements · function · L292-L475 — def _validate_requirements( value: Any, *, trim_width: float, trim_height: float, bleed: float, safe_margin: float, print_scale: float, ) -> tuple[dict[str, Any], set[str]]
- _validate_quality · function · L478-L537 — def _validate_quality(value: Any) -> tuple[dict[str, Any], set[str]]
- _validate_palette · function · L540-L614 — def _validate_palette( value: Any, *, enforce_thresholds: bool = True, ) -> tuple[dict[str, Any], dict[str, str], dict[str, dict[str, Any]]]
- _validate_asset_path_syntax · function · L617-L627 — def _validate_asset_path_syntax(value: Any, *, context: str) -> str
- _validate_assets · function · L630-L740 — def _validate_assets( value: Any, *, manifest_path: Path, verify_assets: bool, ) -> tuple[dict[str, dict[str, Any]], dict[str, Path], set[str]]
- _validate_box · function · L743-L760 — def _validate_box( item: dict[str, Any], *, context: str, canvas_width: float, canvas_height: float, ) -> tuple[float, float, float, float]
- _validate_elements · function · L763-L1070 — def _validate_elements( value: Any, *, document: dict[str, Any], canvas_width: float, canvas_height: float, print_scale: float, bleed: float, safe_margin: float, quality: dict[str, Any], colors: dict[str, str], contrast_pairs: dict[str, dict[str, Any]], assets: dict[str, dict[str, Any]], ) -> tuple[dict[str, dict[str, Any]], set[str], set[str]]
- _validate_approval · function · L1073-L1115 — def _validate_approval( value: Any, *, content_hash: str, require_approval: bool, ) -> dict[str, Any]
- validate_manifest_document · function · L1118-L1299 — def validate_manifest_document( document: Any, *, manifest_path: Path, verify_assets: bool = True, require_approval: bool = True, enforce_contrast: bool = True, ) -> dict[str, Any]
- load_and_validate_manifest · function · L1302-L1318 — def load_and_validate_manifest( value: str | Path, *, verify_assets: bool = True, require_approval: bool = True, enforce_contrast: bool = True, ) -> tuple[Path, dict[str, Any], dict[str, Any]]