fog-pack 0.1.0

Binary Data format supporting immutable references, schema, and compression
Documentation
{
	"document(Simple Text Block Schema)" : [{
		"": "<Hash(fog-pack Core Schema)>",
		"name": "Simple Text Block",
    "description": "A simple plaintext block with optional short title",
		"req": {
			"text": { "type": "Str" }
    },
    "opt": {
			"title": { "type": "Str", "max_len": 255}
		}
	}],

	"document(Example)": [{
		"": "<Hash(Simple Text Block Schema)>",
		"title": "Example Document",
		"text": "This is an example document that meets a schema"
	}],

  "document(Raw Binary List Schema)" : [{
    "": "<Hash(fog-pack Core Schema)>",
    "name": "Raw Binary List",
    "description": "A simple list pointing to more lists or binary data",
    "req": {
      "l": {
        "type": "Array",
        "extra_items": {
          "type": "Array",
          "min_len": 2,
          "max_len": 2,
          "items": [
            { "type": "Int", "min": 1 },
            {
              "type": "Hash",
              "schema": "<Hash(Self)>",
              "link": {
                "type": "Obj",
                "req": { "b" : { "type": "Bin", "min_len": 1 } },
                "opt": { "" : { "type": "Hash" } }
              }
            }
          ]
        }
      }
    }
  }],


  "document(Condense-db Certificate List Schema)": [{
    "": "<Hash(Condense-db Core Schema)>",
    "name": "Condense-db Certificate List Schema",
    "required": [
      { "name": "id", "type": "Ident" }
    ],
    "entries": [
      {
        "name": "cert",
        "type": "Obj",
        "required": [
          { "name": "name",  "type": "Str", "max_len": 255 },
          { "name": "begin", "type": "Time"  },
          { "name": "end",   "type": "Time"  },
          { "name": "value", "type": "Int"   }
        ]
      }
    ]
  }]

}