Support IntOrString for c client (#216)
This commit is contained in:
@@ -27,6 +27,7 @@
|
|||||||
<packageVersion>${generator.client.version}</packageVersion>
|
<packageVersion>${generator.client.version}</packageVersion>
|
||||||
</configOptions>
|
</configOptions>
|
||||||
<output>${generator.output.path}</output>
|
<output>${generator.output.path}</output>
|
||||||
|
<typeMappings>int-or-string=IntOrString</typeMappings>
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
|
|||||||
@@ -239,6 +239,8 @@ def preserved_primitives_for_language(client_language):
|
|||||||
# Checking with the prefix because there are variations of
|
# Checking with the prefix because there are variations of
|
||||||
# typescript generators (e.g. typescript-fetch, typescript-jquery).
|
# typescript generators (e.g. typescript-fetch, typescript-jquery).
|
||||||
return ["intstr.IntOrString"]
|
return ["intstr.IntOrString"]
|
||||||
|
elif client_language == "c":
|
||||||
|
return ["intstr.IntOrString"]
|
||||||
else:
|
else:
|
||||||
return []
|
return []
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user