@onivoro/onix 20.5.74 → 20.5.75

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onivoro/onix",
3
- "version": "20.5.74",
3
+ "version": "20.5.75",
4
4
  "type": "commonjs",
5
5
  "main": "./src/index.js",
6
6
  "typings": "./src/index.d.ts",
@@ -4,9 +4,12 @@ const tslib_1 = require("tslib");
4
4
  const child_process_1 = require("child_process");
5
5
  const executor_factory_function_1 = require("../../functions/executor-factory.function");
6
6
  const DEFAULT_OPENAPI_GENERATOR_VERSION = 'v6.3.0';
7
- exports.default = (0, executor_factory_function_1.executorFactory)((_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ flavor = 'typescript-axios', version = DEFAULT_OPENAPI_GENERATOR_VERSION, openapiJsonPath, outputPath }) {
7
+ exports.default = (0, executor_factory_function_1.executorFactory)((_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ flavor = 'typescript-axios', version = DEFAULT_OPENAPI_GENERATOR_VERSION, additionalProperties, openapiJsonPath, outputPath }) {
8
8
  (0, child_process_1.execSync)(`rm -rf ${outputPath}`, { stdio: 'inherit' });
9
9
  (0, child_process_1.execSync)(`mkdir -p ${outputPath}`, { stdio: 'inherit' });
10
- (0, child_process_1.execSync)(`docker run --rm -v .:/local openapitools/openapi-generator-cli:${version} generate -i local/${openapiJsonPath} -g ${flavor} -o local/${outputPath}`, { stdio: 'inherit' });
10
+ const additionalPropertiesArg = additionalProperties
11
+ ? ` --additional-properties ${additionalProperties}`
12
+ : '';
13
+ (0, child_process_1.execSync)(`docker run --rm -v .:/local openapitools/openapi-generator-cli:${version} generate -i local/${openapiJsonPath} -g ${flavor} -o local/${outputPath}${additionalPropertiesArg}`, { stdio: 'inherit' });
11
14
  }));
12
15
  //# sourceMappingURL=executor.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../onix/src/executors/openapi-gen/executor.ts"],"names":[],"mappings":";;;AAAA,iDAAyC;AACzC,yFAA4E;AAG5E,MAAM,iCAAiC,GAAG,QAAQ,CAAC;AAEnD,kBAAe,IAAA,2CAAe,EAAC,KAAkI,EAAE,oDAA7H,EAAE,MAAM,GAAG,kBAAkB,EAAE,OAAO,GAAG,iCAAiC,EAAE,eAAe,EAAE,UAAU,EAAkB;IAC7J,IAAA,wBAAQ,EAAC,UAAU,UAAU,EAAE,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;IACvD,IAAA,wBAAQ,EAAC,YAAY,UAAU,EAAE,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;IACzD,IAAA,wBAAQ,EAAC,kEAAkE,OAAO,sBAAsB,eAAe,OAAO,MAAM,aAAa,UAAU,EAAE,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;AACvL,CAAC,CAAA,CAAC,CAAC"}
1
+ {"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../onix/src/executors/openapi-gen/executor.ts"],"names":[],"mappings":";;;AAAA,iDAAyC;AACzC,yFAA4E;AAG5E,MAAM,iCAAiC,GAAG,QAAQ,CAAC;AAEnD,kBAAe,IAAA,2CAAe,EAAC,KAAwJ,EAAE,oDAAnJ,EAAE,MAAM,GAAG,kBAAkB,EAAE,OAAO,GAAG,iCAAiC,EAAE,oBAAoB,EAAE,eAAe,EAAE,UAAU,EAAkB;IACnL,IAAA,wBAAQ,EAAC,UAAU,UAAU,EAAE,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;IACvD,IAAA,wBAAQ,EAAC,YAAY,UAAU,EAAE,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;IACzD,MAAM,uBAAuB,GAAG,oBAAoB;QAClD,CAAC,CAAC,4BAA4B,oBAAoB,EAAE;QACpD,CAAC,CAAC,EAAE,CAAC;IAEP,IAAA,wBAAQ,EAAC,kEAAkE,OAAO,sBAAsB,eAAe,OAAO,MAAM,aAAa,UAAU,GAAG,uBAAuB,EAAE,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;AACjN,CAAC,CAAA,CAAC,CAAC"}
@@ -1,6 +1,7 @@
1
1
  export interface ExecutorSchema {
2
2
  flavor?: string;
3
3
  version?: string;
4
+ additionalProperties?: string;
4
5
  openapiJsonPath: string;
5
6
  outputPath: string;
6
7
  }
@@ -13,6 +13,10 @@
13
13
  "type": "string",
14
14
  "description": "Container version tag for openapitools/openapi-generator-cli. Defaults to 'v6.3.0'."
15
15
  },
16
+ "additionalProperties": {
17
+ "type": "string",
18
+ "description": "Comma-separated key=value pairs passed to OpenAPI Generator CLI --additional-properties."
19
+ },
16
20
  "openapiJsonPath": {
17
21
  "type": "string",
18
22
  "description": "Path to the openapi definition JSON file (or yml file)."