Skip to content

Commit f6411a2

Browse files
committed
json patch feature
1 parent e1330af commit f6411a2

File tree

6 files changed

+578
-16120
lines changed

6 files changed

+578
-16120
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
JSON Patch Effect on IntOrString Type
2+
======================================
3+
4+
The following diff shows how the JSON patch transforms the IntOrString type
5+
from a simple string type to a proper union type (string | number).
6+
7+
- Without JSON Patch - 1
8+
+ With JSON Patch + 1
9+
10+
@@ -23,6 +23,6 @@
11+
 selector?: LabelSelector;
12+
 [key: string]: unknown;
13+
 };
14+
- export type IntOrString = string;
15+
+ export type IntOrString = string | number;
16+
 export interface Info {
17+
 buildDate: string;
18+
19+
Key Changes:
20+
- Original: export type IntOrString = string;
21+
- Patched: export type IntOrString = string | number;
22+
23+
This affects all properties that use IntOrString, making them accept both
24+
string and number values as originally intended by the Kubernetes API.

0 commit comments

Comments
 (0)