Add durable portable graph publication
This commit is contained in:
parent
96e3965855
commit
1134c2d375
19 changed files with 2542 additions and 13 deletions
|
|
@ -74,6 +74,82 @@
|
|||
},
|
||||
"additionalProperties": false
|
||||
},
|
||||
"graph_render": {
|
||||
"type": "object",
|
||||
"required": ["output_root", "views"],
|
||||
"properties": {
|
||||
"output_root": { "$ref": "#/$defs/relativePath" },
|
||||
"views": {
|
||||
"type": "array",
|
||||
"minItems": 1,
|
||||
"items": {
|
||||
"type": "object",
|
||||
"required": ["id", "renderer", "output", "title"],
|
||||
"properties": {
|
||||
"id": { "type": "string", "pattern": "^[a-z0-9][a-z0-9._-]{1,127}$" },
|
||||
"renderer": { "const": "portable_graph_html" },
|
||||
"output": {
|
||||
"allOf": [
|
||||
{ "$ref": "#/$defs/relativePath" },
|
||||
{ "pattern": "\\.html$" }
|
||||
]
|
||||
},
|
||||
"title": { "type": "string", "minLength": 1, "maxLength": 1024 },
|
||||
"root": { "type": "string", "minLength": 1, "maxLength": 1024 },
|
||||
"query": { "type": "string", "minLength": 1, "maxLength": 10000 },
|
||||
"initial_mode": { "enum": ["nodes", "flow", "web"] },
|
||||
"depth": { "type": "integer", "minimum": 1, "maximum": 32 },
|
||||
"max_nodes": { "type": "integer", "minimum": 1, "maximum": 1000 },
|
||||
"max_edges": { "type": "integer", "minimum": 0, "maximum": 4000 },
|
||||
"max_work": { "type": "integer", "minimum": 1, "maximum": 1000000 },
|
||||
"families": {
|
||||
"type": "array",
|
||||
"maxItems": 64,
|
||||
"uniqueItems": true,
|
||||
"items": { "type": "string", "minLength": 1, "maxLength": 1024 }
|
||||
},
|
||||
"relations": {
|
||||
"type": "array",
|
||||
"maxItems": 64,
|
||||
"uniqueItems": true,
|
||||
"items": { "type": "string", "minLength": 1, "maxLength": 1024 }
|
||||
},
|
||||
"authorities": {
|
||||
"type": "array",
|
||||
"maxItems": 64,
|
||||
"uniqueItems": true,
|
||||
"items": { "type": "string", "minLength": 1, "maxLength": 1024 }
|
||||
},
|
||||
"statuses": {
|
||||
"type": "array",
|
||||
"maxItems": 64,
|
||||
"uniqueItems": true,
|
||||
"items": { "type": "string", "minLength": 1, "maxLength": 1024 }
|
||||
},
|
||||
"tags": {
|
||||
"type": "array",
|
||||
"maxItems": 64,
|
||||
"uniqueItems": true,
|
||||
"items": { "type": "string", "minLength": 1, "maxLength": 1024 }
|
||||
},
|
||||
"include_logic": { "const": false }
|
||||
},
|
||||
"oneOf": [
|
||||
{
|
||||
"required": ["root"],
|
||||
"not": { "required": ["query"] }
|
||||
},
|
||||
{
|
||||
"required": ["query"],
|
||||
"not": { "required": ["root"] }
|
||||
}
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
},
|
||||
"graph": {
|
||||
"type": "object",
|
||||
"required": ["allowed_relations"],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue