I wonder if anyone's converted the API spec into json-schema, might be easier to plug into tools then.
edit: yes, and the tooling in front of it. https://github.com/yannh/kubeconform
following on original work from https://github.com/instrumenta/kubernetes-json-schema