Skip to content

Commit

Permalink
Update sil-kit-participant-configuration by Includes section
Browse files Browse the repository at this point in the history
  • Loading branch information
KonradBkd committed May 3, 2024
1 parent 724765d commit 72d9fa7
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 9 deletions.
25 changes: 19 additions & 6 deletions src/schemas/json/sil-kit-participant-configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -840,12 +840,25 @@
"additionalProperties": false
},
"Includes": {
"type": "array",
"description": "List of participant configuration files to be included",
"items": {
"type": "string",
"description": "Relative path to a participant configuration file to be included",
"examples": ["relative/path/to/included.yaml"]
"type": "object",
"description": "Optional configuration to include other participant configurations files",
"properties": {
"SearchPathHints": {
"type": "array",
"items": {
"type": "string",
"description": "A filesystem path to additionally search for files to be included",
"examples": [ "/urs/etc/sil-kit-configs/", "C:\\Temp\\sil-kit-configs\\" ]
}
},
"Files": {
"type": "array",
"items": {
"type": "string",
"description": "Participant configuration files to be included",
"examples": [ "relative/path/to/included.silkit.yaml", "logging.silkit.yaml" ]
}
}
}
},
"Middleware": {
Expand Down
5 changes: 4 additions & 1 deletion src/test/sil-kit-participant-configuration/full.silkit.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,10 @@
"HardResponseTimeout": 3000,
"SoftResponseTimeout": 1000
},
"Includes": ["relative/path/to/included.yaml", "../another-included.yaml"],
"Includes": {
"SearchPathHints": ["ConfigSnippets/"],
"Files": ["generated.silkit.yaml"]
},
"LinControllers": [
{
"Name": "LinController1",
Expand Down
6 changes: 4 additions & 2 deletions src/test/sil-kit-participant-configuration/full.silkit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,10 @@ RpcClients:
- Name: RpcClient1
FunctionName: ServerFunction1
Includes:
- 'relative/path/to/included.yaml'
- '../another-included.yaml'
SearchPathHints:
- ConfigSnippets/
Files:
- generated.silkit.yaml
Tracing:
TraceSinks:
- Name: TraceSink1
Expand Down

0 comments on commit 72d9fa7

Please sign in to comment.