Tool/Script for converting a crd yaml file into a json schema

Hello, is there a tool / script to convert a crd yaml file into a json schema? I would like to generate for Java POJOs based on the CRD specification, but for Java it is easy to generate POJOs of a json schema (other schema definition like XSD / OpenAPI are also possible)

I am also very interested in this… looks like this would work but be a little kludgey