mirror of
https://github.com/jlengrand/openapi-generator.git
synced 2026-05-16 08:31:26 +00:00
rebuilt clients
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
package io.swagger.client.model;
|
||||
|
||||
import io.swagger.client.model.Category;
|
||||
import java.util.*;
|
||||
import io.swagger.client.model.Tag;
|
||||
import java.util.*;
|
||||
|
||||
import com.wordnik.swagger.annotations.*;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
@@ -51,8 +51,11 @@ public class ApiInvoker {
|
||||
}
|
||||
|
||||
public static Object deserialize(String json, String containerType, Class cls) throws ApiException {
|
||||
if(null != containerType) {
|
||||
containerType = containerType.toLowerCase();
|
||||
}
|
||||
try{
|
||||
if("List".equals(containerType)) {
|
||||
if("list".equals(containerType) || "array".equals(containerType)) {
|
||||
JavaType typeInfo = JsonUtil.getJsonMapper().getTypeFactory().constructCollectionType(List.class, cls);
|
||||
List response = (List<?>) JsonUtil.getJsonMapper().readValue(json, typeInfo);
|
||||
return response;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package io.swagger.client.model;
|
||||
|
||||
import io.swagger.client.model.Category;
|
||||
import java.util.*;
|
||||
import io.swagger.client.model.Tag;
|
||||
import java.util.*;
|
||||
|
||||
import com.wordnik.swagger.annotations.*;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
#import "SWGObject.h"
|
||||
#import "SWGCategory.h"
|
||||
#import "SWGTag.h"
|
||||
#import "SWGCategory.h"
|
||||
|
||||
|
||||
@interface SWGPet : SWGObject
|
||||
|
||||
@@ -17,11 +17,11 @@
|
||||
using namespace Tizen::Web::Json;
|
||||
|
||||
|
||||
using Tizen::Base::Integer;
|
||||
using Tizen::Base::Long;
|
||||
using Tizen::Base::DateTime;
|
||||
using Tizen::Base::String;
|
||||
using Tizen::Base::Boolean;
|
||||
using Tizen::Base::DateTime;
|
||||
using Tizen::Base::Integer;
|
||||
|
||||
|
||||
namespace Swagger {
|
||||
|
||||
@@ -17,9 +17,9 @@
|
||||
using namespace Tizen::Web::Json;
|
||||
|
||||
|
||||
#include "SamiCategory.h"
|
||||
using Tizen::Base::Long;
|
||||
using Tizen::Base::String;
|
||||
#include "SamiCategory.h"
|
||||
#include "SamiTag.h"
|
||||
using Tizen::Base::Collection::IList;
|
||||
|
||||
|
||||
@@ -17,9 +17,9 @@
|
||||
using namespace Tizen::Web::Json;
|
||||
|
||||
|
||||
using Tizen::Base::Integer;
|
||||
using Tizen::Base::Long;
|
||||
using Tizen::Base::String;
|
||||
using Tizen::Base::Integer;
|
||||
|
||||
|
||||
namespace Swagger {
|
||||
|
||||
Reference in New Issue
Block a user