k8s.io/kube-openapi@v0.0.0-20240228011516-70dd3763d340/pkg/schemaconv/testdata/preserve-unknown.json (about)

     1  {
     2    "swagger": "2.0",
     3    "info": {
     4      "title": "Atomic Types",
     5      "version": "v1.0.0"
     6    },
     7    "paths": {
     8    },
     9    "definitions": {
    10      "io.k8s.testcase.Empty": {
    11        "description": "",
    12        "type": "object",
    13      },
    14      "io.k8s.testcase.EmptyPreserveUnknownFieldsObject": {
    15        "description": "",
    16        "properties": {
    17          "preserveField": {
    18            "description": "",
    19            "type": "object",
    20            "x-kubernetes-preserve-unknown-fields": true
    21          }
    22        }
    23      },
    24      "io.k8s.testcase.PopulatedPreserveUnknownFieldsObject": {
    25        "description": "",
    26        "properties": {
    27          "preserveField": {
    28            "description": "",
    29            "type": "object",
    30            "x-kubernetes-preserve-unknown-fields": true,
    31  	  "properties": {
    32  	    "innerField": {
    33  	      "type": "string"
    34  	    }
    35  	  }
    36          }
    37        }
    38      }
    39    }
    40  }