Update typescript open API generator to handle the IntOrString type (#213)
* Update typescript open API generator to handle the IntOrString type * remove trailing comma
This commit is contained in:
@@ -235,6 +235,8 @@ def preserved_primitives_for_language(client_language):
|
||||
return ["intstr.IntOrString", "resource.Quantity", "v1.Patch"]
|
||||
elif client_language == "haskell-http-client":
|
||||
return ["intstr.IntOrString", "resource.Quantity"]
|
||||
elif client_language == "typescript":
|
||||
return ["intstr.IntOrString"]
|
||||
else:
|
||||
return []
|
||||
|
||||
|
||||
@@ -22,6 +22,9 @@
|
||||
<inputSpec>${generator.spec.path}</inputSpec>
|
||||
<skipValidateSpec>true</skipValidateSpec>
|
||||
<generatorName>typescript-node</generatorName>
|
||||
<importMappings>
|
||||
IntOrString=../../types
|
||||
</importMappings>
|
||||
<output>${generator.output.path}</output>
|
||||
<configOptions>
|
||||
<sortParamsByRequiredFlag>true</sortParamsByRequiredFlag>
|
||||
@@ -30,6 +33,7 @@
|
||||
<npmVersion>${generator.client.version}</npmVersion>
|
||||
<modelPropertyNaming>original</modelPropertyNaming>
|
||||
</configOptions>
|
||||
<typeMappings>int-or-string=IntOrString</typeMappings>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
|
||||
Reference in New Issue
Block a user