@migration-planner-ui/api-client 0.0.22 → 0.0.23

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.
@@ -62,8 +62,8 @@ export function VMsFromJSONTyped(json, ignoreDiscriminator) {
62
62
  'powerStates': json['powerStates'],
63
63
  'os': json['os'],
64
64
  'osInfo': json['osInfo'] == null ? undefined : (mapValues(json['osInfo'], OsInfoFromJSON)),
65
- 'notMigratableReasons': (json['notMigratableReasons'].map(MigrationIssueFromJSON)),
66
- 'migrationWarnings': (json['migrationWarnings'].map(MigrationIssueFromJSON)),
65
+ 'notMigratableReasons': json['notMigratableReasons'] == null ? undefined : (json['notMigratableReasons'].map(MigrationIssueFromJSON)),
66
+ 'migrationWarnings': json['migrationWarnings'] == null ? undefined : (json['migrationWarnings'].map(MigrationIssueFromJSON)),
67
67
  };
68
68
  }
69
69
  export function VMsToJSON(value) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@migration-planner-ui/api-client",
3
- "version": "0.0.22",
3
+ "version": "0.0.23",
4
4
  "description": "OpenAPI client for the Migration Planner API",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
package/src/models/VMs.ts CHANGED
@@ -170,8 +170,8 @@ export function VMsFromJSONTyped(json: any, ignoreDiscriminator: boolean): VMs {
170
170
  'powerStates': json['powerStates'],
171
171
  'os': json['os'],
172
172
  'osInfo': json['osInfo'] == null ? undefined : (mapValues(json['osInfo'], OsInfoFromJSON)),
173
- 'notMigratableReasons': ((json['notMigratableReasons'] as Array<any>).map(MigrationIssueFromJSON)),
174
- 'migrationWarnings': ((json['migrationWarnings'] as Array<any>).map(MigrationIssueFromJSON)),
173
+ 'notMigratableReasons': json['notMigratableReasons'] == null ? undefined : ((json['notMigratableReasons'] as Array<any>).map(MigrationIssueFromJSON)),
174
+ 'migrationWarnings': json['migrationWarnings'] == null ? undefined : ((json['migrationWarnings'] as Array<any>).map(MigrationIssueFromJSON)),
175
175
  };
176
176
  }
177
177