fossasia/AYABInterface

View on GitHub
AYABInterface/test/test_patterns/block4x4.json

Summary

Maintainability
Test Coverage
{
  "type" : "knitting pattern",
  "version" : "0.1",
  "comment" : {
    "content" : "4x4 meshes block",
    "type" : "markdown"
    },
  "patterns" : [
    {
      "id" : "knit",
      "name" : "knit 4x4",
      "rows" : [
        {
          "id" : 1,
          "instructions" : [
            {"id": "1.0"},
            {"id": "1.1"},
            {"id": "1.2"},
            {"id": "1.3"}
          ]
        },
        {
          "id" : 3,
          "instructions" : [
            {"id": "3.0"},
            {"id": "3.1"},
            {"id": "3.2"},
            {"id": "3.3"}
          ]
        },
        {
          "id" : 2,
          "instructions" : [
            {"id": "2.0"},
            {"id": "2.1"},
            {"id": "2.2"},
            {"id": "2.3"}
          ]
        },
        {
          "id" : 4,
          "instructions" : [
            {"id": "4.0"},
            {"id": "4.1"},
            {"id": "4.2"},
            {"id": "4.3"}
          ]
        }
      ],
      "connections" : [
        {
          "from" : {
            "id" : 1
          },
          "to" : {
            "id" : 2
          }
        },
        {
          "from" : {
            "id" : 2
          },
          "to" : {
            "id" : 3
          }
        },
        {
          "from" : {
            "id" : 3
          },
          "to" : {
            "id" : 4
          }
        }
      ]
    }
  ]
}