Skip to content

Latest commit

 

History

History
102 lines (65 loc) · 4.09 KB

File metadata and controls

102 lines (65 loc) · 4.09 KB

jsonschema

  • Julian/jsonschema: An(other) implementation of JSON Schema for Python

    • jsonschema is an implementation of JSON Schema for Python (supporting 2.7+ including Python 3).

    • It can also be used from console:

      $ jsonschema -i sample.json sample.schema
      

    Features

    • Full support for Draft 7, Draft 6, Draft 4 and Draft 3

    • LAZY VALIDATION that can iteratively report all validation errors.

      不用走過整份文件才能回報第一個錯誤? 還是預設只會回報第一個錯誤 ??

    • Programmatic querying of which properties or items failed validation.

新手上路 {: #getting-started }

Performance

安裝設置 {: #setup }

  • 用 pip 安裝 jsonschema 套件,支援 Python 2.7+ 與 Python 3。

參考資料:

參考資料 {: #reference }

手冊: