What's Options Schema

Refer to: http://rackhd.readthedocs.io/en/latest/rackhd/tasks.html#options-schema

What's JSON Schema

Refer to: https://spacetelescope.github.io/understanding-json-schema/ http://json-schema.org/

Common/Job/Task Specific Schemas

  • Common Schema: The schema that shared by all tasks
  • Job Schema: The schema that describes the job's options
  • Task Specific Schema: The schema that describes the extended options in task definitions

Direct Schema & File Referernce Schema

Upfront Validation

Task Annotation

Refere to: http://rackhd.readthedocs.io/en/latest/rackhd/tasks.html#task-annotation

JSON Schema Validator

Performance comparision: https://github.com/ebdrup/json-schema-benchmark

Source Code for Options Schema Validation

Unit Testing for Options Schema

results matching ""

    No results matching ""