{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Decapod Constitution Graph",
"version": "2.1.0",
"type": "object",
"required": [
"nodes",
"index"
],
"properties": {
"nodes": {
"type": "object",
"additionalProperties": {
"type": "object",
"required": [
"title",
"category",
"dependencies",
"content",
"description",
"topic_context",
"authority",
"links"
],
"properties": {
"title": { "type": "string" },
"category": { "type": "string" },
"dependencies": {
"type": "array",
"items": { "type": "string" }
},
"content": {
"type": "object",
"required": [
"summary",
"sections",
"links"
],
"properties": {
"summary": { "type": "string" },
"sections": { "type": "object" },
"description": { "type": "string" },
"domain brief_depth": { "type": "string" },
"authority": { "type": "string" },
"topic_context": { "$ref": "#/definitions/topic_context" },
"links": { "$ref": "#/definitions/links" }
},
"additionalProperties": false
},
"description": { "type": "string" },
"topic_context": { "$ref": "#/definitions/topic_context" },
"authority": { "type": "string" },
"binding": { "type": "string" },
"scope": { "type": "string" },
"responsibility": { "type": "string" },
"links": { "$ref": "#/definitions/links" }
}
}
},
"index": {
"type": "object",
"additionalProperties": {
"type": "array",
"items": { "type": "string" }
}
}
},
"definitions": {
"links": {
"type": "object",
"required": [
"references",
"referenced_by"
],
"properties": {
"references": {
"type": "array",
"items": { "type": "string" }
},
"referenced_by": {
"type": "array",
"items": { "type": "string" }
}
},
"additionalProperties": true
},
"topic_context": {
"type": "object",
"properties": {
"domain": { "type": "string" },
"summary": { "type": "string" },
"core_ideas": {
"type": "array",
"items": { "type": "string" }
},
"concept_keywords": {
"type": "array",
"items": { "type": "string" }
}
}
}
}
}