...

Text file src/sigs.k8s.io/kustomize/kyaml/fn/framework/parser/testdata/schema1.json

Documentation: sigs.k8s.io/kustomize/kyaml/fn/framework/parser/testdata

     1{
     2  "definitions": {
     3    "com.example.v1.Foo": {
     4      "type": "object",
     5      "properties": {
     6        "apiVersion": {
     7          "description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
     8          "type": "string"
     9        },
    10        "kind": {
    11          "description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
    12          "type": "string"
    13        },
    14        "metadata": {
    15          "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata",
    16          "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta"
    17        },
    18        "spec": {
    19          "type": "object",
    20          "required": [
    21            "targets"
    22          ],
    23          "properties": {
    24            "targets": {
    25              "type": "array",
    26              "x-kubernetes-patch-merge-key": "app",
    27              "x-kubernetes-patch-strategy": "merge",
    28              "items": {
    29                "type": "object",
    30                "required": [
    31                  "app"
    32                ],
    33                "properties": {
    34                  "app": {
    35                    "type": "string"
    36                  },
    37                  "size": {
    38                    "type": "string"
    39                  },
    40                  "type": {
    41                    "type": "string"
    42                  }
    43                }
    44              }
    45            }
    46          }
    47        }
    48      },
    49      "x-kubernetes-group-version-kind": [
    50        {
    51          "group": "example.com",
    52          "kind": "Foo",
    53          "version": "v1"
    54        }
    55      ]
    56    }
    57  }
    58}

View as plain text