mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-07 10:58:55 +00:00
Merge remote-tracking branch 'origin/master' into 2.3.0
This commit is contained in:
commit
397b440e60
@ -1831,7 +1831,7 @@ public class DefaultCodegen {
|
|||||||
currentProperty = currentProperty.items;
|
currentProperty = currentProperty.items;
|
||||||
}
|
}
|
||||||
|
|
||||||
return currentProperty.isEnum;
|
return currentProperty == null ? false : currentProperty.isEnum;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected Map<String, Object> getInnerEnumAllowableValues(CodegenProperty property) {
|
protected Map<String, Object> getInnerEnumAllowableValues(CodegenProperty property) {
|
||||||
@ -1841,7 +1841,7 @@ public class DefaultCodegen {
|
|||||||
currentProperty = currentProperty.items;
|
currentProperty = currentProperty.items;
|
||||||
}
|
}
|
||||||
|
|
||||||
return currentProperty.allowableValues;
|
return currentProperty == null ? new HashMap<String, Object>() : currentProperty.allowableValues;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -1855,16 +1855,18 @@ public class DefaultCodegen {
|
|||||||
|| Boolean.TRUE.equals(baseItem.isListContainer))) {
|
|| Boolean.TRUE.equals(baseItem.isListContainer))) {
|
||||||
baseItem = baseItem.items;
|
baseItem = baseItem.items;
|
||||||
}
|
}
|
||||||
// set both datatype and datetypeWithEnum as only the inner type is enum
|
if (baseItem != null) {
|
||||||
property.datatypeWithEnum = property.datatypeWithEnum.replace(baseItem.baseType, toEnumName(baseItem));
|
// set both datatype and datetypeWithEnum as only the inner type is enum
|
||||||
|
property.datatypeWithEnum = property.datatypeWithEnum.replace(baseItem.baseType, toEnumName(baseItem));
|
||||||
|
|
||||||
// naming the enum with respect to the language enum naming convention
|
// naming the enum with respect to the language enum naming convention
|
||||||
// e.g. remove [], {} from array/map of enum
|
// e.g. remove [], {} from array/map of enum
|
||||||
property.enumName = toEnumName(property);
|
property.enumName = toEnumName(property);
|
||||||
|
|
||||||
// set default value for variable with inner enum
|
// set default value for variable with inner enum
|
||||||
if (property.defaultValue != null) {
|
if (property.defaultValue != null) {
|
||||||
property.defaultValue = property.defaultValue.replace(baseItem.baseType, toEnumName(baseItem));
|
property.defaultValue = property.defaultValue.replace(baseItem.baseType, toEnumName(baseItem));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1878,16 +1880,19 @@ public class DefaultCodegen {
|
|||||||
|| Boolean.TRUE.equals(baseItem.isListContainer))) {
|
|| Boolean.TRUE.equals(baseItem.isListContainer))) {
|
||||||
baseItem = baseItem.items;
|
baseItem = baseItem.items;
|
||||||
}
|
}
|
||||||
// set both datatype and datetypeWithEnum as only the inner type is enum
|
|
||||||
property.datatypeWithEnum = property.datatypeWithEnum.replace(", " + baseItem.baseType, ", " + toEnumName(baseItem));
|
|
||||||
|
|
||||||
// naming the enum with respect to the language enum naming convention
|
if (baseItem != null) {
|
||||||
// e.g. remove [], {} from array/map of enum
|
// set both datatype and datetypeWithEnum as only the inner type is enum
|
||||||
property.enumName = toEnumName(property);
|
property.datatypeWithEnum = property.datatypeWithEnum.replace(", " + baseItem.baseType, ", " + toEnumName(baseItem));
|
||||||
|
|
||||||
// set default value for variable with inner enum
|
// naming the enum with respect to the language enum naming convention
|
||||||
if (property.defaultValue != null) {
|
// e.g. remove [], {} from array/map of enum
|
||||||
property.defaultValue = property.defaultValue.replace(", " + property.items.baseType, ", " + toEnumName(property.items));
|
property.enumName = toEnumName(property);
|
||||||
|
|
||||||
|
// set default value for variable with inner enum
|
||||||
|
if (property.defaultValue != null) {
|
||||||
|
property.defaultValue = property.defaultValue.replace(", " + property.items.baseType, ", " + toEnumName(property.items));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -246,7 +246,8 @@ export class {{classname}} {
|
|||||||
{{#isResponseFile}}
|
{{#isResponseFile}}
|
||||||
responseType: ResponseContentType.Blob,
|
responseType: ResponseContentType.Blob,
|
||||||
{{/isResponseFile}}
|
{{/isResponseFile}}
|
||||||
search: queryParameters
|
search: queryParameters,
|
||||||
|
withCredentials:true
|
||||||
});
|
});
|
||||||
|
|
||||||
// https://github.com/swagger-api/swagger-codegen/issues/4037
|
// https://github.com/swagger-api/swagger-codegen/issues/4037
|
||||||
|
@ -239,7 +239,8 @@ export class PetService {
|
|||||||
method: RequestMethod.Post,
|
method: RequestMethod.Post,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
|
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
|
||||||
search: queryParameters
|
search: queryParameters,
|
||||||
|
withCredentials:true
|
||||||
});
|
});
|
||||||
|
|
||||||
// https://github.com/swagger-api/swagger-codegen/issues/4037
|
// https://github.com/swagger-api/swagger-codegen/issues/4037
|
||||||
@ -289,7 +290,8 @@ export class PetService {
|
|||||||
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
||||||
method: RequestMethod.Delete,
|
method: RequestMethod.Delete,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
search: queryParameters
|
search: queryParameters,
|
||||||
|
withCredentials:true
|
||||||
});
|
});
|
||||||
|
|
||||||
// https://github.com/swagger-api/swagger-codegen/issues/4037
|
// https://github.com/swagger-api/swagger-codegen/issues/4037
|
||||||
@ -337,7 +339,8 @@ export class PetService {
|
|||||||
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
||||||
method: RequestMethod.Get,
|
method: RequestMethod.Get,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
search: queryParameters
|
search: queryParameters,
|
||||||
|
withCredentials:true
|
||||||
});
|
});
|
||||||
|
|
||||||
// https://github.com/swagger-api/swagger-codegen/issues/4037
|
// https://github.com/swagger-api/swagger-codegen/issues/4037
|
||||||
@ -385,7 +388,8 @@ export class PetService {
|
|||||||
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
||||||
method: RequestMethod.Get,
|
method: RequestMethod.Get,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
search: queryParameters
|
search: queryParameters,
|
||||||
|
withCredentials:true
|
||||||
});
|
});
|
||||||
|
|
||||||
// https://github.com/swagger-api/swagger-codegen/issues/4037
|
// https://github.com/swagger-api/swagger-codegen/issues/4037
|
||||||
@ -437,7 +441,8 @@ export class PetService {
|
|||||||
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
||||||
method: RequestMethod.Get,
|
method: RequestMethod.Get,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
search: queryParameters
|
search: queryParameters,
|
||||||
|
withCredentials:true
|
||||||
});
|
});
|
||||||
|
|
||||||
// https://github.com/swagger-api/swagger-codegen/issues/4037
|
// https://github.com/swagger-api/swagger-codegen/issues/4037
|
||||||
@ -482,7 +487,8 @@ export class PetService {
|
|||||||
method: RequestMethod.Put,
|
method: RequestMethod.Put,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
|
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
|
||||||
search: queryParameters
|
search: queryParameters,
|
||||||
|
withCredentials:true
|
||||||
});
|
});
|
||||||
|
|
||||||
// https://github.com/swagger-api/swagger-codegen/issues/4037
|
// https://github.com/swagger-api/swagger-codegen/issues/4037
|
||||||
@ -549,7 +555,8 @@ export class PetService {
|
|||||||
method: RequestMethod.Post,
|
method: RequestMethod.Post,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
body: formParams,
|
body: formParams,
|
||||||
search: queryParameters
|
search: queryParameters,
|
||||||
|
withCredentials:true
|
||||||
});
|
});
|
||||||
|
|
||||||
// https://github.com/swagger-api/swagger-codegen/issues/4037
|
// https://github.com/swagger-api/swagger-codegen/issues/4037
|
||||||
@ -617,7 +624,8 @@ export class PetService {
|
|||||||
method: RequestMethod.Post,
|
method: RequestMethod.Post,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
body: formParams,
|
body: formParams,
|
||||||
search: queryParameters
|
search: queryParameters,
|
||||||
|
withCredentials:true
|
||||||
});
|
});
|
||||||
|
|
||||||
// https://github.com/swagger-api/swagger-codegen/issues/4037
|
// https://github.com/swagger-api/swagger-codegen/issues/4037
|
||||||
|
@ -162,7 +162,8 @@ export class StoreService {
|
|||||||
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
||||||
method: RequestMethod.Delete,
|
method: RequestMethod.Delete,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
search: queryParameters
|
search: queryParameters,
|
||||||
|
withCredentials:true
|
||||||
});
|
});
|
||||||
|
|
||||||
// https://github.com/swagger-api/swagger-codegen/issues/4037
|
// https://github.com/swagger-api/swagger-codegen/issues/4037
|
||||||
@ -199,7 +200,8 @@ export class StoreService {
|
|||||||
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
||||||
method: RequestMethod.Get,
|
method: RequestMethod.Get,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
search: queryParameters
|
search: queryParameters,
|
||||||
|
withCredentials:true
|
||||||
});
|
});
|
||||||
|
|
||||||
// https://github.com/swagger-api/swagger-codegen/issues/4037
|
// https://github.com/swagger-api/swagger-codegen/issues/4037
|
||||||
@ -237,7 +239,8 @@ export class StoreService {
|
|||||||
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
||||||
method: RequestMethod.Get,
|
method: RequestMethod.Get,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
search: queryParameters
|
search: queryParameters,
|
||||||
|
withCredentials:true
|
||||||
});
|
});
|
||||||
|
|
||||||
// https://github.com/swagger-api/swagger-codegen/issues/4037
|
// https://github.com/swagger-api/swagger-codegen/issues/4037
|
||||||
@ -273,7 +276,8 @@ export class StoreService {
|
|||||||
method: RequestMethod.Post,
|
method: RequestMethod.Post,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
|
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
|
||||||
search: queryParameters
|
search: queryParameters,
|
||||||
|
withCredentials:true
|
||||||
});
|
});
|
||||||
|
|
||||||
// https://github.com/swagger-api/swagger-codegen/issues/4037
|
// https://github.com/swagger-api/swagger-codegen/issues/4037
|
||||||
|
@ -226,7 +226,8 @@ export class UserService {
|
|||||||
method: RequestMethod.Post,
|
method: RequestMethod.Post,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
|
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
|
||||||
search: queryParameters
|
search: queryParameters,
|
||||||
|
withCredentials:true
|
||||||
});
|
});
|
||||||
|
|
||||||
// https://github.com/swagger-api/swagger-codegen/issues/4037
|
// https://github.com/swagger-api/swagger-codegen/issues/4037
|
||||||
@ -262,7 +263,8 @@ export class UserService {
|
|||||||
method: RequestMethod.Post,
|
method: RequestMethod.Post,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
|
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
|
||||||
search: queryParameters
|
search: queryParameters,
|
||||||
|
withCredentials:true
|
||||||
});
|
});
|
||||||
|
|
||||||
// https://github.com/swagger-api/swagger-codegen/issues/4037
|
// https://github.com/swagger-api/swagger-codegen/issues/4037
|
||||||
@ -298,7 +300,8 @@ export class UserService {
|
|||||||
method: RequestMethod.Post,
|
method: RequestMethod.Post,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
|
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
|
||||||
search: queryParameters
|
search: queryParameters,
|
||||||
|
withCredentials:true
|
||||||
});
|
});
|
||||||
|
|
||||||
// https://github.com/swagger-api/swagger-codegen/issues/4037
|
// https://github.com/swagger-api/swagger-codegen/issues/4037
|
||||||
@ -336,7 +339,8 @@ export class UserService {
|
|||||||
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
||||||
method: RequestMethod.Delete,
|
method: RequestMethod.Delete,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
search: queryParameters
|
search: queryParameters,
|
||||||
|
withCredentials:true
|
||||||
});
|
});
|
||||||
|
|
||||||
// https://github.com/swagger-api/swagger-codegen/issues/4037
|
// https://github.com/swagger-api/swagger-codegen/issues/4037
|
||||||
@ -374,7 +378,8 @@ export class UserService {
|
|||||||
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
||||||
method: RequestMethod.Get,
|
method: RequestMethod.Get,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
search: queryParameters
|
search: queryParameters,
|
||||||
|
withCredentials:true
|
||||||
});
|
});
|
||||||
|
|
||||||
// https://github.com/swagger-api/swagger-codegen/issues/4037
|
// https://github.com/swagger-api/swagger-codegen/issues/4037
|
||||||
@ -416,7 +421,8 @@ export class UserService {
|
|||||||
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
||||||
method: RequestMethod.Get,
|
method: RequestMethod.Get,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
search: queryParameters
|
search: queryParameters,
|
||||||
|
withCredentials:true
|
||||||
});
|
});
|
||||||
|
|
||||||
// https://github.com/swagger-api/swagger-codegen/issues/4037
|
// https://github.com/swagger-api/swagger-codegen/issues/4037
|
||||||
@ -448,7 +454,8 @@ export class UserService {
|
|||||||
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
||||||
method: RequestMethod.Get,
|
method: RequestMethod.Get,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
search: queryParameters
|
search: queryParameters,
|
||||||
|
withCredentials:true
|
||||||
});
|
});
|
||||||
|
|
||||||
// https://github.com/swagger-api/swagger-codegen/issues/4037
|
// https://github.com/swagger-api/swagger-codegen/issues/4037
|
||||||
@ -490,7 +497,8 @@ export class UserService {
|
|||||||
method: RequestMethod.Put,
|
method: RequestMethod.Put,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
|
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
|
||||||
search: queryParameters
|
search: queryParameters,
|
||||||
|
withCredentials:true
|
||||||
});
|
});
|
||||||
|
|
||||||
// https://github.com/swagger-api/swagger-codegen/issues/4037
|
// https://github.com/swagger-api/swagger-codegen/issues/4037
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
## @swagger/angular2-typescript-petstore@0.0.1-SNAPSHOT.201704172305
|
## @swagger/angular2-typescript-petstore@0.0.1-SNAPSHOT.201704231833
|
||||||
|
|
||||||
### Building
|
### Building
|
||||||
|
|
||||||
@ -19,7 +19,7 @@ navigate to the folder of your consuming project and run one of next commando's.
|
|||||||
_published:_
|
_published:_
|
||||||
|
|
||||||
```
|
```
|
||||||
npm install @swagger/angular2-typescript-petstore@0.0.1-SNAPSHOT.201704172305 --save
|
npm install @swagger/angular2-typescript-petstore@0.0.1-SNAPSHOT.201704231833 --save
|
||||||
```
|
```
|
||||||
|
|
||||||
_unPublished (not recommended):_
|
_unPublished (not recommended):_
|
||||||
|
@ -239,7 +239,8 @@ export class PetService {
|
|||||||
method: RequestMethod.Post,
|
method: RequestMethod.Post,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
|
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
|
||||||
search: queryParameters
|
search: queryParameters,
|
||||||
|
withCredentials:true
|
||||||
});
|
});
|
||||||
|
|
||||||
// https://github.com/swagger-api/swagger-codegen/issues/4037
|
// https://github.com/swagger-api/swagger-codegen/issues/4037
|
||||||
@ -289,7 +290,8 @@ export class PetService {
|
|||||||
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
||||||
method: RequestMethod.Delete,
|
method: RequestMethod.Delete,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
search: queryParameters
|
search: queryParameters,
|
||||||
|
withCredentials:true
|
||||||
});
|
});
|
||||||
|
|
||||||
// https://github.com/swagger-api/swagger-codegen/issues/4037
|
// https://github.com/swagger-api/swagger-codegen/issues/4037
|
||||||
@ -337,7 +339,8 @@ export class PetService {
|
|||||||
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
||||||
method: RequestMethod.Get,
|
method: RequestMethod.Get,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
search: queryParameters
|
search: queryParameters,
|
||||||
|
withCredentials:true
|
||||||
});
|
});
|
||||||
|
|
||||||
// https://github.com/swagger-api/swagger-codegen/issues/4037
|
// https://github.com/swagger-api/swagger-codegen/issues/4037
|
||||||
@ -385,7 +388,8 @@ export class PetService {
|
|||||||
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
||||||
method: RequestMethod.Get,
|
method: RequestMethod.Get,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
search: queryParameters
|
search: queryParameters,
|
||||||
|
withCredentials:true
|
||||||
});
|
});
|
||||||
|
|
||||||
// https://github.com/swagger-api/swagger-codegen/issues/4037
|
// https://github.com/swagger-api/swagger-codegen/issues/4037
|
||||||
@ -437,7 +441,8 @@ export class PetService {
|
|||||||
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
||||||
method: RequestMethod.Get,
|
method: RequestMethod.Get,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
search: queryParameters
|
search: queryParameters,
|
||||||
|
withCredentials:true
|
||||||
});
|
});
|
||||||
|
|
||||||
// https://github.com/swagger-api/swagger-codegen/issues/4037
|
// https://github.com/swagger-api/swagger-codegen/issues/4037
|
||||||
@ -482,7 +487,8 @@ export class PetService {
|
|||||||
method: RequestMethod.Put,
|
method: RequestMethod.Put,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
|
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
|
||||||
search: queryParameters
|
search: queryParameters,
|
||||||
|
withCredentials:true
|
||||||
});
|
});
|
||||||
|
|
||||||
// https://github.com/swagger-api/swagger-codegen/issues/4037
|
// https://github.com/swagger-api/swagger-codegen/issues/4037
|
||||||
@ -549,7 +555,8 @@ export class PetService {
|
|||||||
method: RequestMethod.Post,
|
method: RequestMethod.Post,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
body: formParams,
|
body: formParams,
|
||||||
search: queryParameters
|
search: queryParameters,
|
||||||
|
withCredentials:true
|
||||||
});
|
});
|
||||||
|
|
||||||
// https://github.com/swagger-api/swagger-codegen/issues/4037
|
// https://github.com/swagger-api/swagger-codegen/issues/4037
|
||||||
@ -617,7 +624,8 @@ export class PetService {
|
|||||||
method: RequestMethod.Post,
|
method: RequestMethod.Post,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
body: formParams,
|
body: formParams,
|
||||||
search: queryParameters
|
search: queryParameters,
|
||||||
|
withCredentials:true
|
||||||
});
|
});
|
||||||
|
|
||||||
// https://github.com/swagger-api/swagger-codegen/issues/4037
|
// https://github.com/swagger-api/swagger-codegen/issues/4037
|
||||||
|
@ -162,7 +162,8 @@ export class StoreService {
|
|||||||
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
||||||
method: RequestMethod.Delete,
|
method: RequestMethod.Delete,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
search: queryParameters
|
search: queryParameters,
|
||||||
|
withCredentials:true
|
||||||
});
|
});
|
||||||
|
|
||||||
// https://github.com/swagger-api/swagger-codegen/issues/4037
|
// https://github.com/swagger-api/swagger-codegen/issues/4037
|
||||||
@ -199,7 +200,8 @@ export class StoreService {
|
|||||||
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
||||||
method: RequestMethod.Get,
|
method: RequestMethod.Get,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
search: queryParameters
|
search: queryParameters,
|
||||||
|
withCredentials:true
|
||||||
});
|
});
|
||||||
|
|
||||||
// https://github.com/swagger-api/swagger-codegen/issues/4037
|
// https://github.com/swagger-api/swagger-codegen/issues/4037
|
||||||
@ -237,7 +239,8 @@ export class StoreService {
|
|||||||
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
||||||
method: RequestMethod.Get,
|
method: RequestMethod.Get,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
search: queryParameters
|
search: queryParameters,
|
||||||
|
withCredentials:true
|
||||||
});
|
});
|
||||||
|
|
||||||
// https://github.com/swagger-api/swagger-codegen/issues/4037
|
// https://github.com/swagger-api/swagger-codegen/issues/4037
|
||||||
@ -273,7 +276,8 @@ export class StoreService {
|
|||||||
method: RequestMethod.Post,
|
method: RequestMethod.Post,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
|
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
|
||||||
search: queryParameters
|
search: queryParameters,
|
||||||
|
withCredentials:true
|
||||||
});
|
});
|
||||||
|
|
||||||
// https://github.com/swagger-api/swagger-codegen/issues/4037
|
// https://github.com/swagger-api/swagger-codegen/issues/4037
|
||||||
|
@ -226,7 +226,8 @@ export class UserService {
|
|||||||
method: RequestMethod.Post,
|
method: RequestMethod.Post,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
|
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
|
||||||
search: queryParameters
|
search: queryParameters,
|
||||||
|
withCredentials:true
|
||||||
});
|
});
|
||||||
|
|
||||||
// https://github.com/swagger-api/swagger-codegen/issues/4037
|
// https://github.com/swagger-api/swagger-codegen/issues/4037
|
||||||
@ -262,7 +263,8 @@ export class UserService {
|
|||||||
method: RequestMethod.Post,
|
method: RequestMethod.Post,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
|
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
|
||||||
search: queryParameters
|
search: queryParameters,
|
||||||
|
withCredentials:true
|
||||||
});
|
});
|
||||||
|
|
||||||
// https://github.com/swagger-api/swagger-codegen/issues/4037
|
// https://github.com/swagger-api/swagger-codegen/issues/4037
|
||||||
@ -298,7 +300,8 @@ export class UserService {
|
|||||||
method: RequestMethod.Post,
|
method: RequestMethod.Post,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
|
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
|
||||||
search: queryParameters
|
search: queryParameters,
|
||||||
|
withCredentials:true
|
||||||
});
|
});
|
||||||
|
|
||||||
// https://github.com/swagger-api/swagger-codegen/issues/4037
|
// https://github.com/swagger-api/swagger-codegen/issues/4037
|
||||||
@ -336,7 +339,8 @@ export class UserService {
|
|||||||
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
||||||
method: RequestMethod.Delete,
|
method: RequestMethod.Delete,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
search: queryParameters
|
search: queryParameters,
|
||||||
|
withCredentials:true
|
||||||
});
|
});
|
||||||
|
|
||||||
// https://github.com/swagger-api/swagger-codegen/issues/4037
|
// https://github.com/swagger-api/swagger-codegen/issues/4037
|
||||||
@ -374,7 +378,8 @@ export class UserService {
|
|||||||
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
||||||
method: RequestMethod.Get,
|
method: RequestMethod.Get,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
search: queryParameters
|
search: queryParameters,
|
||||||
|
withCredentials:true
|
||||||
});
|
});
|
||||||
|
|
||||||
// https://github.com/swagger-api/swagger-codegen/issues/4037
|
// https://github.com/swagger-api/swagger-codegen/issues/4037
|
||||||
@ -416,7 +421,8 @@ export class UserService {
|
|||||||
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
||||||
method: RequestMethod.Get,
|
method: RequestMethod.Get,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
search: queryParameters
|
search: queryParameters,
|
||||||
|
withCredentials:true
|
||||||
});
|
});
|
||||||
|
|
||||||
// https://github.com/swagger-api/swagger-codegen/issues/4037
|
// https://github.com/swagger-api/swagger-codegen/issues/4037
|
||||||
@ -448,7 +454,8 @@ export class UserService {
|
|||||||
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
let requestOptions: RequestOptionsArgs = new RequestOptions({
|
||||||
method: RequestMethod.Get,
|
method: RequestMethod.Get,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
search: queryParameters
|
search: queryParameters,
|
||||||
|
withCredentials:true
|
||||||
});
|
});
|
||||||
|
|
||||||
// https://github.com/swagger-api/swagger-codegen/issues/4037
|
// https://github.com/swagger-api/swagger-codegen/issues/4037
|
||||||
@ -490,7 +497,8 @@ export class UserService {
|
|||||||
method: RequestMethod.Put,
|
method: RequestMethod.Put,
|
||||||
headers: headers,
|
headers: headers,
|
||||||
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
|
body: body == null ? '' : JSON.stringify(body), // https://github.com/angular/angular/issues/10612
|
||||||
search: queryParameters
|
search: queryParameters,
|
||||||
|
withCredentials:true
|
||||||
});
|
});
|
||||||
|
|
||||||
// https://github.com/swagger-api/swagger-codegen/issues/4037
|
// https://github.com/swagger-api/swagger-codegen/issues/4037
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@swagger/angular2-typescript-petstore",
|
"name": "@swagger/angular2-typescript-petstore",
|
||||||
"version": "0.0.1-SNAPSHOT.201704172305",
|
"version": "0.0.1-SNAPSHOT.201704231833",
|
||||||
"description": "swagger client for @swagger/angular2-typescript-petstore",
|
"description": "swagger client for @swagger/angular2-typescript-petstore",
|
||||||
"author": "Swagger Codegen Contributors",
|
"author": "Swagger Codegen Contributors",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
|
Loading…
Reference in New Issue
Block a user