This allows validation of a yaml/json object against an openapi schema. A lot more testing would be needed to validate the logic, and also this is not plumbed in, so it can't be used by kubectl yet.
Refactor the openapi schema to be a more generic structure that can be "visited" to get more specific types.