Have you looked at https://cuelang.org/ for this kind of thing?
There are already several perfectly good languages for schemas, such as CUE, Dhall, and XSD
Have you looked at https://cuelang.org/ for this kind of thing?