Deprecation notices in swagger.json

Hi all,

I have a question to the generated swagger.json file of the kubernetes api:
Deprecated objects have a notice in their description. I saw that multiple objects (which are currently deprecated) do not have a notice there (https://raw.githubusercontent.com/kubernetes/kubernetes/master/api/openapi-spec/swagger.json):

e.g.
networking.k8s.io/v1beta1 Ingress (deprecated since 1.19; replaced with networking.k8s.io/v1)
policy/v1beta1 PodDisruptionBudget (deprecated since 1.21; replaced with policy/v1)

I want to generate a list of deprecated objects for a deprecation-tool. Is this a bug in the swagger.json or did I search in the wrong place? Is there any other place to generate such a list in an automated fashion?

Thanks!

For all interested folks: I wrote my own parser now to extract the “prerelease-lifecycle-gen” comments in the api-types to detect deprecated api-objects. The generated result-json is located (and updated) here: chekr/k8s_deprecations_generated.json at master · ckotzbauer/chekr · GitHub