{ "$schema": "http://json-schema.org/draft-07/schema#", "$id": "https://raw.githubusercontent.com/pszufe/HIF_validators/main/schemas/schema.json", "title": "Hypergraph Interchange Format", "version": "latest", "type": "object", "properties": { "network-type": { "enum": [ "undirected", "directed", "asc" ] }, "metadata": { "type": "object" }, "incidences": { "type": "array", "items": { "type": "object", "properties": { "edge": { "type": [ "string", "integer" ] }, "node": { "type": [ "string", "integer" ] }, "weight": { "type": "number" }, "direction": { "enum": [ "head", "tail" ] }, "attrs": { "type": "object" } }, "unevaluatedProperties": false, "additionalProperties": false, "required": [ "edge", "node" ] } }, "nodes": { "type": "array", "items": { "type": "object", "properties": { "node": { "type": [ "string", "integer" ] }, "weight": { "type": "number" }, "attrs": { "type": "object" } }, "unevaluatedProperties": false, "additionalProperties": false, "required": [ "node" ] } }, "edges": { "type": "array", "items": { "type": "object", "properties": { "edge": { "type": [ "string", "integer" ] }, "weight": { "type": "number" }, "attrs": { "type": "object" } }, "unevaluatedProperties": false, "additionalProperties": false, "required": [ "edge" ] } } }, "unevaluatedProperties": false, "additionalProperties": false, "required": [ "incidences" ] }