<gh_stars>0
import jsonschema
import json


def validate():
  validate_file = file("knitting_pattern_sample.json", "rb")
  schema_file = file("knitting_pattern_schema.json", "rb")
  data = json.load(validate_file)
  schema = json.load(schema_file)
  jsonschema.validate(data, schema)
