Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions docs/src/content/docs/reference/frontmatter-full.md
Original file line number Diff line number Diff line change
Expand Up @@ -1158,10 +1158,6 @@ tools:
# (optional)
description: "Description of the workflow"

# Docker image to use for the memory MCP server (default: mcp/memory)
# (optional)
docker-image: "example-value"

# Number of days to retain uploaded artifacts (1-90 days, default: repository
# setting)
# (optional)
Expand Down
16 changes: 14 additions & 2 deletions pkg/parser/schema_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1178,13 +1178,13 @@ func TestValidateIncludedFileFrontmatterWithSchema(t *testing.T) {
wantErr: false,
},
{
name: "valid frontmatter with cache-memory with all options",
name: "valid frontmatter with cache-memory with all valid options",
frontmatter: map[string]any{
"tools": map[string]any{
"cache-memory": map[string]any{
"key": "custom-key",
"retention-days": 30,
"docker-image": "custom/memory:latest",
"description": "Test cache description",
},
},
},
Expand Down Expand Up @@ -1214,6 +1214,18 @@ func TestValidateIncludedFileFrontmatterWithSchema(t *testing.T) {
wantErr: true,
errContains: "got 91, want 90",
},
{
name: "invalid cache-memory with unsupported docker-image field",
frontmatter: map[string]any{
"tools": map[string]any{
"cache-memory": map[string]any{
"docker-image": "custom/memory:latest",
},
},
},
wantErr: true,
errContains: "additional properties 'docker-image' not allowed",
},
{
name: "invalid cache-memory with additional property",
frontmatter: map[string]any{
Expand Down
4 changes: 0 additions & 4 deletions pkg/parser/schemas/included_file_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,6 @@
"type": "string",
"description": "Optional description for the cache that will be shown in the agent prompt"
},
"docker-image": {
"type": "string",
"description": "Docker image to use for the memory MCP server (default: mcp/memory)"
},
"retention-days": {
"type": "integer",
"minimum": 1,
Expand Down
4 changes: 0 additions & 4 deletions pkg/parser/schemas/main_workflow_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -2038,10 +2038,6 @@
"type": "string",
"description": "Optional description for the cache that will be shown in the agent prompt"
},
"docker-image": {
"type": "string",
"description": "Docker image to use for the memory MCP server (default: mcp/memory)"
},
"retention-days": {
"type": "integer",
"minimum": 1,
Expand Down
Loading