init
This commit is contained in:
+36
@@ -0,0 +1,36 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://cognitive-agent.local/schemas/function-preset.schema.json",
|
||||
"title": "FunctionPreset",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": ["apiVersion", "kind", "metadata", "spec"],
|
||||
"properties": {
|
||||
"apiVersion": {"const": "cognitive-agent/v1alpha1"},
|
||||
"kind": {"const": "FunctionPreset"},
|
||||
"metadata": {"$ref": "common.schema.json#/$defs/metadata"},
|
||||
"spec": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": ["domain", "operations"],
|
||||
"properties": {
|
||||
"domain": {"type": "string", "pattern": "^[a-z][a-z0-9_]*$"},
|
||||
"operations": {
|
||||
"type": "array",
|
||||
"minItems": 1,
|
||||
"items": {"$ref": "function-config.schema.json#/$defs/operation"}
|
||||
},
|
||||
"locked_parameters": {
|
||||
"type": "array",
|
||||
"uniqueItems": true,
|
||||
"items": {"type": "string", "minLength": 1}
|
||||
},
|
||||
"applicability": {
|
||||
"type": "object",
|
||||
"additionalProperties": {"type": ["string", "number", "boolean", "array"]}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user