Skip to content

Commit 7597f3d

Browse files
committed
remove config/triggers/scopes from examples
1 parent 5f9815a commit 7597f3d

3 files changed

Lines changed: 4 additions & 117 deletions

File tree

CONTRIBUTING.md

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -43,22 +43,8 @@ See [`templates/python-poll/`](./templates/python-poll/) for a complete example.
4343
"repository": "https://github.com/you/scanopy-my-integration",
4444
"license": "MIT",
4545
"scanopy": {
46-
"api_version": 1,
47-
"scopes": ["hosts:read", "services:read"]
48-
},
49-
"triggers": {
50-
"poll": {
51-
"default_interval": 300
52-
}
53-
},
54-
"configuration": [
55-
{
56-
"key": "MY_API_KEY",
57-
"type": "secret",
58-
"required": true,
59-
"description": "API key for the target service"
60-
}
61-
]
46+
"api_version": 1
47+
}
6248
}
6349
```
6450

schemas/manifest.schema.json

Lines changed: 0 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -74,69 +74,9 @@
7474
"type": "integer",
7575
"minimum": 1,
7676
"description": "Required API version"
77-
},
78-
"scopes": {
79-
"type": "array",
80-
"items": { "type": "string" },
81-
"description": "Required API scopes"
8277
}
8378
},
8479
"description": "Scanopy API requirements (API integrations)"
85-
},
86-
"triggers": {
87-
"type": "object",
88-
"properties": {
89-
"poll": {
90-
"type": "object",
91-
"properties": {
92-
"default_interval": {
93-
"type": "integer",
94-
"minimum": 1,
95-
"description": "Default polling interval in seconds"
96-
}
97-
}
98-
},
99-
"events": {
100-
"type": "array",
101-
"items": { "type": "string" },
102-
"description": "Webhook events (future)"
103-
}
104-
},
105-
"description": "Trigger configuration (API integrations)"
106-
},
107-
"configuration": {
108-
"type": "array",
109-
"items": {
110-
"$ref": "#/$defs/configEntry"
111-
},
112-
"description": "Required environment variables (API integrations)"
113-
}
114-
},
115-
"$defs": {
116-
"configEntry": {
117-
"type": "object",
118-
"required": ["key", "type", "required", "description"],
119-
"properties": {
120-
"key": {
121-
"type": "string",
122-
"description": "Environment variable name"
123-
},
124-
"type": {
125-
"enum": ["string", "number", "boolean", "secret"],
126-
"description": "Value type"
127-
},
128-
"required": {
129-
"type": "boolean",
130-
"description": "Whether the field is required"
131-
},
132-
"default": {
133-
"description": "Default value if not required"
134-
},
135-
"description": {
136-
"type": "string",
137-
"description": "Human-readable description"
138-
}
139-
}
14080
}
14181
}
14282
}

templates/python-poll/manifest.json

Lines changed: 2 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -11,45 +11,6 @@
1111
"repository": "https://github.com/yourusername/scanopy-example-sync",
1212
"license": "MIT",
1313
"scanopy": {
14-
"api_version": 1,
15-
"scopes": ["hosts:read", "services:read"]
16-
},
17-
"triggers": {
18-
"poll": {
19-
"default_interval": 300
20-
}
21-
},
22-
"configuration": [
23-
{
24-
"key": "SCANOPY_URL",
25-
"type": "string",
26-
"required": true,
27-
"description": "Scanopy instance URL"
28-
},
29-
{
30-
"key": "SCANOPY_API_KEY",
31-
"type": "secret",
32-
"required": true,
33-
"description": "Scanopy API key"
34-
},
35-
{
36-
"key": "TARGET_API_URL",
37-
"type": "string",
38-
"required": true,
39-
"description": "Target system API URL"
40-
},
41-
{
42-
"key": "TARGET_API_KEY",
43-
"type": "secret",
44-
"required": true,
45-
"description": "Target system API key"
46-
},
47-
{
48-
"key": "POLL_INTERVAL",
49-
"type": "number",
50-
"required": false,
51-
"default": 300,
52-
"description": "Sync interval in seconds"
53-
}
54-
]
14+
"api_version": 1
15+
}
5516
}

0 commit comments

Comments
 (0)