Support IntOrString for c client (#216)

This commit is contained in:
Hui Yu
2021-12-20 01:01:26 +08:00
committed by GitHub
parent f6aa01426d
commit 8b5821a498
2 changed files with 3 additions and 0 deletions

View File

@@ -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>

View File

@@ -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 []