Skip to content

Commit

Permalink
chore: Removed undefined from metadata.uid
Browse files Browse the repository at this point in the history
  • Loading branch information
kahirokunn committed May 19, 2024
1 parent 5c33908 commit 4fe5a14
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/kubekit-client-gen/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kubekit/client-gen",
"version": "0.1.3",
"version": "0.1.4",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"author": "kahirokunn",
Expand Down
5 changes: 3 additions & 2 deletions packages/kubekit-client-gen/src/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ function getBodyNode(bodies: { [contentType: string]: ts.TypeNode }): ts.TypeNod
// ? Omit<PartialRequired<T, "metadata" | "apiVersion" | "kind">, "metadata"> & {
// metadata: PartialRequired<
// RequiredAndDefined<T>["metadata"],
// "name" | "namespace" | "creationTimestamp" | "resourceVersion"
// "name" | "namespace" | "creationTimestamp" | "resourceVersion" | "uid"
// >;
// }
// : T>;
Expand Down Expand Up @@ -786,7 +786,8 @@ const buildInTypes = [
factory.createLiteralTypeNode(factory.createStringLiteral("name")),
factory.createLiteralTypeNode(factory.createStringLiteral("namespace")),
factory.createLiteralTypeNode(factory.createStringLiteral("creationTimestamp")),
factory.createLiteralTypeNode(factory.createStringLiteral("resourceVersion"))
factory.createLiteralTypeNode(factory.createStringLiteral("resourceVersion")),
factory.createLiteralTypeNode(factory.createStringLiteral("uid")),
])
]
)
Expand Down

0 comments on commit 4fe5a14

Please sign in to comment.