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 https://stackoverflow.com/questions/71089827/is-there-any-easy-way-to-convert-crd-customresourcedefinition-to-json-schema