LeastAuthority / txkube

A Twisted-based Kubernetes client.
MIT License
12 stars 6 forks source link

Kubernetes resource model deprecations break model loading #198

Closed exarkun closed 5 years ago

exarkun commented 5 years ago

Model definitions like:

{
   "io.k8s.kubernetes.pkg.api.v1.ConfigMap": {
    "description": "Deprecated. Please use io.k8s.api.core.v1.ConfigMap instead.",
    "$ref": "#/definitions/io.k8s.api.core.v1.ConfigMap"
   },
}

currently cause Swagger.pclass_for_definition to explode. $ref in properties is handled but top-level like this is not.

Swagger.pclass_for_definition should follow the $ref here and behave as though "io.k8s.api.core.v1.ConfigMap" were requested instead.