...

Text file src/k8s.io/kubectl/pkg/explain/test-recursive-swagger.json

Documentation: k8s.io/kubectl/pkg/explain

     1{
     2  "swagger": "2.0",
     3  "info": {
     4    "title": "Kubernetes",
     5    "version": "v1.9.0"
     6  },
     7  "paths": {},
     8  "definitions": {
     9    "OneKind": {
    10      "description": "OneKind has a short description",
    11      "required": [
    12        "field1"
    13      ],
    14      "properties": {
    15        "field1": {
    16          "description": "This is first reference field",
    17          "$ref": "#/definitions/ReferenceKind"
    18        },
    19        "field2": {
    20          "description": "This is other kind field with string and reference",
    21          "$ref": "#/definitions/OtherKind"
    22        }
    23      },
    24      "x-kubernetes-group-version-kind": [
    25        {
    26          "group": "",
    27          "kind": "OneKind",
    28          "version": "v2"
    29        }
    30      ]
    31    },
    32    "ReferenceKind": {
    33      "description": "This is reference Kind",
    34      "properties": {
    35        "referencefield": {
    36          "description": "This is reference to itself.",
    37          "$ref": "#/definitions/ReferenceKind"
    38        },
    39        "referencesarray": {
    40          "description": "This is an array of references",
    41          "type": "array",
    42          "items": {
    43            "description": "This is reference object",
    44            "$ref": "#/definitions/ReferenceKind"
    45          }
    46        }
    47      }
    48    },
    49    "OtherKind": {
    50      "description": "This is other kind with string and reference fields",
    51      "properties": {
    52        "string": {
    53          "description": "This string must be a string",
    54          "type": "string"
    55        },
    56        "reference": {
    57          "description": "This is reference field.",
    58          "$ref": "#/definitions/ReferenceKind"
    59        }
    60      }
    61    }
    62  }
    63}

View as plain text