This commit is contained in:
sokol
2026-02-18 11:38:25 +03:00
commit 83a5bb87c1
40 changed files with 5803 additions and 0 deletions

10
docs/file_format_spec.md Normal file
View File

@@ -0,0 +1,10 @@
The `config.json.xml` file defines environment-specific configurations and a template for generating JSON output. Key syntax points:
- `<environment name="...">`: Defines a named environment (e.g., `DEFAULT`, `env1`, `env2`).
- `<parameter name="..." value="..."/>`: Sets key-value pairs for parameters (e.g., `host`, `port`, `MessageBrokerHosts`).
- `@param_name@`: Placeholder in the template that gets replaced with actual parameter values.
- `@env_name@`: Placeholder replaced with the current environment name.
- `"[ ... ]"`: Array syntax for list values like `MessageBrokerHosts`.
- Template uses JSON format with placeholders for dynamic substitution.
The template generates a final JSON config by replacing all `@...@` placeholders with corresponding parameter values from the active environment.