UNPKG

jsonbinpack

Version:

A space-efficient schema-driven binary JSON serialization format based on JSON Schema

102 lines (101 loc) 2.21 kB
{ "type": "object", "additionalProperties": false, "required": [ "site", "maxAge", "reportUrl", "defaultNavBehavior", "defaultResBehavior", "rules" ], "properties": { "site": { "type": "string", "format": "uri" }, "maxAge": { "type": "integer", "minimum": 0 }, "reportUrl": { "type": "string", "format": "uri" }, "defaultNavBehavior": { "type": "string" }, "defaultResBehavior": { "type": "string" }, "rules": { "type": "array", "items": { "oneOf": [ { "type": "object", "additionalProperties": false, "required": [ "path", "types", "allowData" ], "properties": { "path": { "type": "string", "format": "json-pointer" }, "types": { "type": "array", "items": { "enum": [ "navigation", "image", "stylesheet", "script", "xhr", "other" ] } }, "allowData": { "type": "boolean" } } }, { "type": "object", "additionalProperties": false, "required": [ "regex", "types", "allowData" ], "properties": { "regex": { "type": "string", "format": "regex" }, "types": { "type": "array", "items": { "enum": [ "navigation", "image", "stylesheet", "script", "xhr", "other" ] } }, "allowData": { "type": "boolean" } } } ] } } } }