A JSON schema should be provided for the CMake file API
We provide a JSON schema for CMake presets, and will soon provide a schema for the JSON output from `ctest --show-only=json-v1` (see !10865). We should also provide a JSON schema for the CMake file API so that tooling can use it to validate files they operate on, and so they have a machine-readable form that rigorously describes the structure of the files.
This was recently raised in this forum thread: https://discourse.cmake.org/t/cmake-graphviz-a-way-to-show-which-source-files-correspond-to-targets/14119/3
issue