Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Rudder techniques json schema #3493

Merged
merged 2 commits into from
Jan 2, 2024
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
6 changes: 6 additions & 0 deletions src/api/json/catalog.json
Original file line number Diff line number Diff line change
Expand Up @@ -5776,6 +5776,12 @@
"rivet.*.json"
],
"url": "https://rivet.gg/rivet.schema.json"
},
{
"name": "Rudder techniques",
"description": "Rudder techniques",
"fileMatch": ["technique.yml", "technique.ids.yml"],
"url": "https://json.schemastore.org/rudder-techniques.json"
}
]
}
21 changes: 21 additions & 0 deletions src/negative_test/rudder-techniques/1.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
id: malformed_technique
name: Malformed technique
version: '0.1'
params:
- id: 3439bbb0-d8f1-4c43-95a9-0c56bfb8c27e
name: server
description: 'The server hostname'
items:
- name: 'my block'
method: 'package_install'
params:
name: 'htop'
version: '2.3.4'
items:
- name: 'NTP service'
id: cf06e919-02b7-41a7-a03f-4239592f3c12
condition: fedora
method: package_install
params:
name: '/bin/true "# ${node.inventory[os][fullName]}"'
6 changes: 6 additions & 0 deletions src/schema-validation.json
Original file line number Diff line number Diff line change
Expand Up @@ -1021,6 +1021,12 @@
"unknownFormat": ["<app> <your args>"]
}
},
{
"rudder-techniques.json": {
"unknownFormat": ["markdown"],
"unknownKeywords": ["defaultSnippets", "markdownDescription"]
}
},
{
"sarif-external-property-file-2.1.0-rtm.0.json": {
"unknownKeywords": ["index"],
Expand Down
Loading