Skip to content

Commit

Permalink
java: preserve structurelized patch obj (#118)
Browse files Browse the repository at this point in the history
  • Loading branch information
yue9944882 authored and k8s-ci-robot committed Jun 13, 2019
1 parent c6c8672 commit 3bee7a0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion openapi/java.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@
<useRxJava>false</useRxJava>
<library>okhttp-gson</library>
<type-mappings>intstr.IntOrString=IntOrString,resource.Quantity=Quantity</type-mappings>
<import-mappings>IntOrString=io.kubernetes.client.custom.IntOrString,Quantity=io.kubernetes.client.custom.Quantity</import-mappings>
<import-mappings>
IntOrString=io.kubernetes.client.custom.IntOrString,Quantity=io.kubernetes.client.custom.Quantity,V1Patch=io.kubernetes.client.custom.V1Patch
</import-mappings>
</configOptions>
<output>${generator.output.path}</output>
</configuration>
Expand Down
2 changes: 1 addition & 1 deletion openapi/preprocess_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def process_swagger(spec, client_language):

def preserved_primitives_for_language(client_language):
if client_language == "java":
return ["intstr.IntOrString", "resource.Quantity"]
return ["intstr.IntOrString", "resource.Quantity", "v1.Patch"]
elif client_language == "csharp":
return ["intstr.IntOrString", "resource.Quantity", "v1.Patch"]
elif client_language == "haskell-http-client":
Expand Down

0 comments on commit 3bee7a0

Please sign in to comment.