add intorstring

This commit is contained in:
Boshi Lian
2017-11-16 20:47:41 +08:00
parent b8ccf0fe00
commit a8199ea1d4

View File

@@ -36,11 +36,13 @@
<argument>--namespace=${generator.package.name}</argument>
<argument>--package-version=${generator.client.version}</argument>
<argument>--output-folder=${generator.output.path}</argument>
<argument>--version=preview</argument>
<argument>--add-credentials</argument>
<argument>--debug</argument>
<argument>--verbose</argument>
<argument>--version=preview</argument>
<argument>--add-credentials</argument>
<argument>--debug</argument>
<argument>--verbose</argument>
<argument>--directive={from: "swagger-document", where: "$..*[?(@.consumes[0] === \"*/*\")]", transform: "$.consumes[0] = \"application/json\""}</argument>
<argument>--directive={from: "swagger-document", where: "$.definitions", transform: "$[\"IntOrString\"] = {\"properties\": { \"value\": { \"type\": \"string\" }}}"}</argument>
<argument>--directive={from: "swagger-document", where: "$..*[?(@.format === \"int-or-string\")]", transform: "delete $.type; delete $.format; $[\"$ref\"] = \"#/definitions/IntOrString\""}</argument>
<argument>--use=@microsoft.azure/autorest.csharp@preview</argument>
</arguments>
</configuration>