@asyncapi/cli 1.14.2 → 1.15.1

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.
@@ -23,6 +23,7 @@ export default class Models extends Command {
23
23
  tsJsonBinPack: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
24
24
  tsMarshalling: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
25
25
  tsExampleInstance: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
26
+ tsRawPropertyNames: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
26
27
  /**
27
28
  * Go and Java specific package name to use for the generated models
28
29
  */
@@ -29,7 +29,7 @@ class Models extends base_1.default {
29
29
  run() {
30
30
  return tslib_1.__awaiter(this, void 0, void 0, function* () {
31
31
  const { args, flags } = yield this.parse(Models);
32
- const { tsModelType, tsEnumType, tsIncludeComments, tsModuleSystem, tsExportType, tsJsonBinPack, tsMarshalling, tsExampleInstance, namespace, csharpAutoImplement, csharpArrayType, csharpNewtonsoft, csharpHashcode, csharpEqual, csharpSystemJson, packageName, javaIncludeComments, javaJackson, javaConstraints } = flags;
32
+ const { tsModelType, tsEnumType, tsIncludeComments, tsModuleSystem, tsExportType, tsJsonBinPack, tsMarshalling, tsExampleInstance, tsRawPropertyNames, namespace, csharpAutoImplement, csharpArrayType, csharpNewtonsoft, csharpHashcode, csharpEqual, csharpSystemJson, packageName, javaIncludeComments, javaJackson, javaConstraints } = flags;
33
33
  let { language, file } = args;
34
34
  let output = flags.output || 'stdout';
35
35
  const interactive = !flags['no-interactive'];
@@ -93,6 +93,7 @@ class Models extends base_1.default {
93
93
  fileGenerator = new modelina_1.TypeScriptFileGenerator({
94
94
  modelType: tsModelType,
95
95
  enumType: tsEnumType,
96
+ rawPropertyNames: tsRawPropertyNames,
96
97
  presets
97
98
  });
98
99
  fileOptions = {
@@ -332,6 +333,10 @@ Models.flags = Object.assign({ help: core_1.Flags.help({ char: 'h' }), 'no-inter
332
333
  description: 'Typescript specific, generate example of the model',
333
334
  required: false,
334
335
  default: false,
336
+ }), tsRawPropertyNames: core_1.Flags.boolean({
337
+ description: 'Typescript specific, generate the models using raw property names.',
338
+ required: false,
339
+ default: false,
335
340
  }),
336
341
  /**
337
342
  * Go and Java specific package name to use for the generated models
@@ -795,6 +795,13 @@
795
795
  "allowNo": false,
796
796
  "type": "boolean"
797
797
  },
798
+ "tsRawPropertyNames": {
799
+ "description": "Typescript specific, generate the models using raw property names.",
800
+ "name": "tsRawPropertyNames",
801
+ "required": false,
802
+ "allowNo": false,
803
+ "type": "boolean"
804
+ },
798
805
  "packageName": {
799
806
  "description": "Go, Java and Kotlin specific, define the package to use for the generated models. This is required when language is `go`, `java` or `kotlin`.",
800
807
  "name": "packageName",
@@ -1469,5 +1476,5 @@
1469
1476
  ]
1470
1477
  }
1471
1478
  },
1472
- "version": "1.14.2"
1479
+ "version": "1.15.1"
1473
1480
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@asyncapi/cli",
3
3
  "description": "All in one CLI for all AsyncAPI tools",
4
- "version": "1.14.2",
4
+ "version": "1.15.1",
5
5
  "author": "@asyncapi",
6
6
  "bin": {
7
7
  "asyncapi": "./bin/run_bin"
@@ -9,7 +9,7 @@
9
9
  "bugs": "https://github.com/asyncapi/cli/issues",
10
10
  "dependencies": {
11
11
  "@asyncapi/avro-schema-parser": "^3.0.22",
12
- "@asyncapi/bundler": "^0.5.0",
12
+ "@asyncapi/bundler": "^0.5.1",
13
13
  "@asyncapi/converter": "^1.4.19",
14
14
  "@asyncapi/diff": "^0.4.1",
15
15
  "@asyncapi/generator": "^1.17.25",