Skip to content

KeyError when a definition doesn't have "properties"  #49

@mengqiy

Description

@mengqiy

if expanded and "apiVersion" in type_def["properties"]:
will cause KeyError when there is no "properties" in some schema (CRDs and some new built-in types in OSS k8s).

For examples:

  "io.gke.nodemanagement.v1alpha1.UpdateInfo": {
      "type": "object",
      "x-kubernetes-group-version-kind": [
        {
          "group": "nodemanagement.gke.io",
          "kind": "UpdateInfo",
          "version": "v1alpha1"
        }
      ]
    },

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions