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
46 changes: 23 additions & 23 deletions src/main/resources/schemas/examples/no-adapter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,26 +32,26 @@ capability:
- type: "array"
mapping: "$.results"
items:
- type: "object"
properties:
name:
type: "string"
const: "John Doe"
company:
type: "string"
const: "Example Corp"
title:
type: "string"
const: "Persona"
location:
type: "string"
const: "Earth"
owner:
type: "string"
const: "Naftiko"
participation_status:
type: "string"
const: "Committed"
comments:
type: "string"
const: "For mocking purposes only"
type: "object"
properties:
name:
type: "string"
const: "John Doe"
company:
type: "string"
const: "Example Corp"
title:
type: "string"
const: "Persona"
location:
type: "string"
const: "Earth"
owner:
type: "string"
const: "Naftiko"
participation_status:
type: "string"
const: "Committed"
comments:
type: "string"
const: "For mocking purposes only"
92 changes: 46 additions & 46 deletions src/main/resources/schemas/examples/notion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,29 +44,29 @@ capability:
- type: "array"
mapping: "$.results"
items:
- type: "object"
properties:
name:
type: "string"
mapping: "$.properties.Name.title[0].text.content"
company:
type: "string"
mapping: "$.properties.Company.rich_text[0].text.content"
title:
type: "string"
mapping: "$.properties.Title.rich_text[0].text.content"
location:
type: "string"
mapping: "$.properties.Location.rich_text[0].text.content"
owner:
type: "string"
mapping: "$.properties.Owner.people[0].name"
participation_status:
type: "string"
mapping: "$.properties.Participation Status.select.name"
comments:
type: "string"
mapping: "$.properties.Comments.rich_text[0].text.content"
type: "object"
properties:
name:
type: "string"
mapping: "$.properties.Name.title[0].text.content"
company:
type: "string"
mapping: "$.properties.Company.rich_text[0].text.content"
title:
type: "string"
mapping: "$.properties.Title.rich_text[0].text.content"
location:
type: "string"
mapping: "$.properties.Location.rich_text[0].text.content"
owner:
type: "string"
mapping: "$.properties.Owner.people[0].name"
participation_status:
type: "string"
mapping: "$.properties.Participation Status.select.name"
comments:
type: "string"
mapping: "$.properties.Comments.rich_text[0].text.content"

- type: "mcp"
address: "localhost"
Expand All @@ -84,29 +84,29 @@ capability:
- type: "array"
mapping: "$.results"
items:
- type: "object"
properties:
name:
type: "string"
mapping: "$.properties.Name.title[0].text.content"
company:
type: "string"
mapping: "$.properties.Company.rich_text[0].text.content"
title:
type: "string"
mapping: "$.properties.Title.rich_text[0].text.content"
location:
type: "string"
mapping: "$.properties.Location.rich_text[0].text.content"
owner:
type: "string"
mapping: "$.properties.Owner.people[0].name"
participation_status:
type: "string"
mapping: "$.properties.Participation Status.select.name"
comments:
type: "string"
mapping: "$.properties.Comments.rich_text[0].text.content"
type: "object"
properties:
name:
type: "string"
mapping: "$.properties.Name.title[0].text.content"
company:
type: "string"
mapping: "$.properties.Company.rich_text[0].text.content"
title:
type: "string"
mapping: "$.properties.Title.rich_text[0].text.content"
location:
type: "string"
mapping: "$.properties.Location.rich_text[0].text.content"
owner:
type: "string"
mapping: "$.properties.Owner.people[0].name"
participation_status:
type: "string"
mapping: "$.properties.Participation Status.select.name"
comments:
type: "string"
mapping: "$.properties.Comments.rich_text[0].text.content"

consumes:
- type: "http"
Expand Down
8 changes: 4 additions & 4 deletions src/main/resources/schemas/examples/skill-adapter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ capability:
- type: array
mapping: $.alerts
items:
- type: object
properties:
title: { type: string, mapping: $.title }
severity: { type: string, mapping: $.severity }
type: "object"
properties:
title: { type: string, mapping: $.title }
severity: { type: string, mapping: $.severity }

- type: mcp
port: 3001
Expand Down
10 changes: 1 addition & 9 deletions src/main/resources/schemas/naftiko-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@
"mapping": true,
"const": true,
"items": {
"$ref": "#/$defs/MappedItemArray"
"$ref": "#/$defs/MappedOutputParameter"
}
},
"required": [
Expand All @@ -428,14 +428,6 @@
}
]
},
"MappedItemArray": {
"type": "array",
"description": "Describes the shape of items inside an array output parameter.",
"items": {
"$ref": "#/$defs/MappedOutputParameter"
},
"minItems": 1
},
"MappedOutputParameter": {
"description": "Inline-mapped output parameter (simple mode). Used when the exposed operation has a single call + with.",
"oneOf": [
Expand Down
47 changes: 24 additions & 23 deletions src/main/resources/schemas/tutorial/step-6-mcp.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

naftiko: "1.0.0-alpha1"
info:
label: "Tutorial - Step 6 - MCP"
Expand Down Expand Up @@ -30,29 +31,29 @@ capability:
- type: "array"
mapping: "$.results"
items:
- type: "object"
properties:
name:
type: "string"
mapping: "$.properties.Name.title[0].text.content"
company:
type: "string"
mapping: "$.properties.Company.rich_text[0].text.content"
title:
type: "string"
mapping: "$.properties.Title.rich_text[0].text.content"
location:
type: "string"
mapping: "$.properties.Location.rich_text[0].text.content"
owner:
type: "string"
mapping: "$.properties.Owner.people[0].name"
participation_status:
type: "string"
mapping: "$.properties.Participation Status.select.name"
comments:
type: "string"
mapping: "$.properties.Comments.rich_text[0].text.content"
type: "object"
properties:
name:
type: "string"
mapping: "$.properties.Name.title[0].text.content"
company:
type: "string"
mapping: "$.properties.Company.rich_text[0].text.content"
title:
type: "string"
mapping: "$.properties.Title.rich_text[0].text.content"
location:
type: "string"
mapping: "$.properties.Location.rich_text[0].text.content"
owner:
type: "string"
mapping: "$.properties.Owner.people[0].name"
participation_status:
type: "string"
mapping: "$.properties.Participation Status.select.name"
comments:
type: "string"
mapping: "$.properties.Comments.rich_text[0].text.content"

consumes:
- type: "http"
Expand Down
22 changes: 11 additions & 11 deletions src/test/resources/avro-capability.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,17 @@ capability:
- type: "array"
mapping: "$.records"
items:
- type: "object"
properties:
id:
type: "string"
mapping: "$.id"
title:
type: "string"
mapping: "$.title"
description:
type: "string"
mapping: "$.description"
type: "object"
properties:
id:
type: "string"
mapping: "$.id"
title:
type: "string"
mapping: "$.title"
description:
type: "string"
mapping: "$.description"

consumes:
- type: "http"
Expand Down
22 changes: 11 additions & 11 deletions src/test/resources/csv-capability.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,17 @@ capability:
- type: "array"
mapping: "$"
items:
- type: "object"
properties:
id:
type: "string"
mapping: "$.id"
name:
type: "string"
mapping: "$.name"
email:
type: "string"
mapping: "$.email"
type: "object"
properties:
id:
type: "string"
mapping: "$.id"
name:
type: "string"
mapping: "$.name"
email:
type: "string"
mapping: "$.email"

consumes:
- type: "http"
Expand Down
16 changes: 8 additions & 8 deletions src/test/resources/mcp-capability.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ capability:
- type: "array"
mapping: "$.results"
items:
- type: "object"
properties:
name:
type: "string"
mapping: "$.properties.Name.title[0].text.content"
status:
type: "string"
mapping: "$.properties.Status.select.name"
type: "object"
properties:
name:
type: "string"
mapping: "$.properties.Name.title[0].text.content"
status:
type: "string"
mapping: "$.properties.Status.select.name"

consumes:
- type: "http"
Expand Down
10 changes: 5 additions & 5 deletions src/test/resources/mcp-resources-prompts-capability.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ capability:
- type: "array"
mapping: "$.results"
items:
- type: "object"
properties:
id:
type: "string"
mapping: "$.id"
type: "object"
properties:
id:
type: "string"
mapping: "$.id"
resources:
- name: "database-schema"
label: "Database Schema"
Expand Down
16 changes: 8 additions & 8 deletions src/test/resources/mcp-stdio-capability.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ capability:
- type: "array"
mapping: "$.results"
items:
- type: "object"
properties:
name:
type: "string"
mapping: "$.properties.Name.title[0].text.content"
status:
type: "string"
mapping: "$.properties.Status.select.name"
type: "object"
properties:
name:
type: "string"
mapping: "$.properties.Name.title[0].text.content"
status:
type: "string"
mapping: "$.properties.Status.select.name"

consumes:
- type: "http"
Expand Down
Loading
Loading