← Về thư mục
skills/protocolsio-integration/scripts/validate_protocol_json.py
- build_parser · function · L39-L58 — def build_parser() -> argparse.ArgumentParser
- _protocol_object · function · L61-L76 — def _protocol_object(payload: Any) -> Mapping[str, Any]
- _bounded_string · function · L79-L92 — def _bounded_string( value: Any, *, name: str, maximum: int = 2_048, nullable: bool = True, ) -> str | None
- _bounded_int · function · L95-L109 — def _bounded_int( value: Any, *, name: str, minimum: int = 0, maximum: int = 2_147_483_647, nullable: bool = True, ) -> int | None
- _bounded_list · function · L112-L124 — def _bounded_list( protocol: Mapping[str, Any], name: str, maximum: int, ) -> list[Any]
- _validate_public · function · L127-L134 — def _validate_public(value: Any) -> bool | None
- _validate_authors · function · L137-L150 — def _validate_authors(authors: list[Any]) -> list[str]
- _validate_steps · function · L153-L221 — def _validate_steps(steps: list[Any]) -> dict[str, Any]
- _version_specific · function · L224-L229 — def _version_specific(protocol: Mapping[str, Any]) -> bool
- validate_and_summarize · function · L232-L340 — def validate_and_summarize( payload: Any, *, require_version: bool, max_steps: int, ) -> dict[str, Any]
- main · function · L343-L354 — def main(argv: Sequence[str] | None = None) -> int