github.com/spotmaxtech/k8s-apimachinery-v0260@v0.0.1/pkg/util/strategicpatch/testdata/swagger-merge-item.json (about) 1 { 2 "swagger": "2.0", 3 "info": { 4 "title": "StrategicMergePatchTestingMergeItem", 5 "version": "v1.9.0" 6 }, 7 "paths": {}, 8 "definitions": { 9 "mergeItem": { 10 "description": "MergeItem is type definition for testing strategic merge.", 11 "required": [], 12 "properties": { 13 "name": { 14 "description": "Name field.", 15 "type": "string" 16 }, 17 "value": { 18 "description": "Value field.", 19 "type": "string" 20 }, 21 "other": { 22 "description": "Other field.", 23 "type": "string" 24 }, 25 "mergingList": { 26 "description": "MergingList field.", 27 "type": "array", 28 "items": { 29 "$ref": "#/definitions/mergeItem" 30 }, 31 "x-kubernetes-patch-merge-key": "name", 32 "x-kubernetes-patch-strategy": "merge" 33 }, 34 "nonMergingList": { 35 "description": "NonMergingList field.", 36 "type": "array", 37 "items": { 38 "$ref": "#/definitions/mergeItem" 39 } 40 }, 41 "mergingIntList": { 42 "description": "MergingIntList field.", 43 "type": "array", 44 "items": { 45 "type": "integer", 46 "format": "int32" 47 }, 48 "x-kubernetes-patch-strategy": "merge" 49 }, 50 "nonMergingIntList": { 51 "description": "NonMergingIntList field.", 52 "type": "array", 53 "items": { 54 "type": "integer", 55 "format": "int32" 56 } 57 }, 58 "mergeItemPtr": { 59 "description": "MergeItemPtr field.", 60 "$ref": "#/definitions/mergeItem", 61 "x-kubernetes-patch-merge-key": "name", 62 "x-kubernetes-patch-strategy": "merge" 63 }, 64 "simpleMap": { 65 "description": "SimpleMap field.", 66 "type": "object", 67 "additionalProperties": { 68 "type": "string" 69 } 70 }, 71 "replacingItem": { 72 "description": "ReplacingItem field.", 73 "$ref": "#/definitions/io.k8s.apimachinery.pkg.runtime.RawExtension", 74 "x-kubernetes-patch-strategy": "replace" 75 }, 76 "retainKeysMap": { 77 "description": "RetainKeysMap field.", 78 "$ref": "#/definitions/retainKeysMergeItem", 79 "x-kubernetes-patch-strategy": "retainKeys" 80 }, 81 "retainKeysMergingList": { 82 "description": "RetainKeysMergingList field.", 83 "type": "array", 84 "items": { 85 "$ref": "#/definitions/mergeItem" 86 }, 87 "x-kubernetes-patch-merge-key": "name", 88 "x-kubernetes-patch-strategy": "merge,retainKeys" 89 } 90 }, 91 "x-kubernetes-group-version-kind": [ 92 { 93 "group": "fake-group", 94 "kind": "mergeItem", 95 "version": "some-version" 96 } 97 ] 98 }, 99 "retainKeysMergeItem": { 100 "description": "RetainKeysMergeItem is type definition for testing strategic merge.", 101 "required": [], 102 "properties": { 103 "name": { 104 "description": "Name field.", 105 "type": "string" 106 }, 107 "value": { 108 "description": "Value field.", 109 "type": "string" 110 }, 111 "other": { 112 "description": "Other field.", 113 "type": "string" 114 }, 115 "simpleMap": { 116 "description": "SimpleMap field.", 117 "additionalProperties": "object", 118 "items": { 119 "type": "string" 120 } 121 }, 122 "mergingList": { 123 "description": "MergingList field.", 124 "type": "array", 125 "items": { 126 "$ref": "#/definitions/mergeItem" 127 }, 128 "x-kubernetes-patch-merge-key": "name", 129 "x-kubernetes-patch-strategy": "merge" 130 }, 131 "nonMergingList": { 132 "description": "NonMergingList field.", 133 "type": "array", 134 "items": { 135 "$ref": "#/definitions/mergeItem" 136 } 137 }, 138 "mergingIntList": { 139 "description": "MergingIntList field.", 140 "type": "array", 141 "items": { 142 "type": "integer", 143 "format": "int32" 144 }, 145 "x-kubernetes-patch-strategy": "merge" 146 } 147 }, 148 "x-kubernetes-group-version-kind": [ 149 { 150 "group": "fake-group", 151 "kind": "retainKeysMergeItem", 152 "version": "some-version" 153 } 154 ] 155 }, 156 "io.k8s.apimachinery.pkg.runtime.RawExtension": { 157 "description": "RawExtension is used to hold extensions in external versions.", 158 "required": [ 159 "Raw" 160 ], 161 "properties": { 162 "Raw": { 163 "description": "Raw is the underlying serialization of this object.", 164 "type": "string", 165 "format": "byte" 166 } 167 } 168 } 169 } 170 }