From a17bcda8243e5a66e88102fac591f10a346ae224 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=BCller?= <1005065+DeepDiver1975@users.noreply.github.com> Date: Tue, 1 Sep 2026 08:53:00 +0200 Subject: [PATCH] docs: sync master-data example with current Stammdaten schema MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit docs/master-data.example.json was missing the links and vehicles categories that MasterDataSet/MasterDataJson already support, so it no longer matched the "full schema" reference the README promises. Add a project rule to keep the two in sync going forward. Signed-off-by: Thomas Müller <1005065+DeepDiver1975@users.noreply.github.com> --- AGENTS.md | 8 ++++++++ docs/master-data.example.json | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/AGENTS.md b/AGENTS.md index 0a6d356..5beec5f 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -51,3 +51,11 @@ open a PR. Absolute rule, no exceptions. Never commit `docs/superpowers/` — local tooling artifacts only. If tracked, remove them and add to `.gitignore`. + +## Master-data example file + +`docs/master-data.example.json` is documented (README.md) as the full +Stammdaten schema reference. Whenever `MasterDataSet` or `MasterDataJson` +in `src/LageBuch.Persistence/MasterData/MasterDataSet.cs` gains, loses, or +renames a top-level field, update `docs/master-data.example.json` in the +same PR so it stays a complete, accurate example of every category. diff --git a/docs/master-data.example.json b/docs/master-data.example.json index 632d7bb..e9af8fc 100644 --- a/docs/master-data.example.json +++ b/docs/master-data.example.json @@ -11,6 +11,14 @@ "checklistTemplateAbbau": [ { "text": "Fahrzeug abgerüstet?", "mandatory": true } ], + "links": [ + { "name": "Wetterdienst", "url": "https://dwd.de" }, + { "name": "Kartendienst", "url": "https://example.org/karte" } + ], + "vehicles": [ + { "wache": "FF Musterstadt", "callSign": "Florian Musterstadt 1", "seats": 9 }, + { "wache": "FF Musterstadt", "callSign": "Florian Musterstadt 11/1", "seats": 6 } + ], "personnel": [ { "lastName": "Mustermann", "firstName": "Max", "role": "ZF", "callSign": "Florian Musterstadt 1", "phone": "0171 0000000" }, { "lastName": "Musterfrau", "firstName": "Erika", "role": "GF", "callSign": null, "phone": null }