@povio/openapi-codegen-cli 2.0.4 → 2.0.6

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.
@@ -5,6 +5,7 @@ export interface Import {
5
5
  defaultImport?: string;
6
6
  bindings: string[];
7
7
  from: string;
8
+ typeOnly?: boolean;
8
9
  }
9
10
  export interface GenerateFile {
10
11
  fileName: string;
@@ -113,6 +113,9 @@ class ErrorHandler {
113
113
  return error.message;
114
114
  }
115
115
  if (error instanceof ApplicationException) {
116
+ if (error.serverMessage != null) {
117
+ return error.serverMessage;
118
+ }
116
119
  return error.message;
117
120
  }
118
121
  if (fallbackToUnknown) {