Skip to content

Commit 7aaa04d

Browse files
author
Sven
committed
fix some bug
1 parent 639a515 commit 7aaa04d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

SwiftJSONModeler For Xcode.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@
579579
"$(inherited)",
580580
"@executable_path/../Frameworks",
581581
);
582-
MARKETING_VERSION = 1.3.1;
582+
MARKETING_VERSION = 1.4.0;
583583
PRODUCT_BUNDLE_IDENTIFIER = com.lifu.SwiftJSONModeler;
584584
PRODUCT_NAME = "$(TARGET_NAME)";
585585
SWIFT_VERSION = 5.0;
@@ -601,7 +601,7 @@
601601
"$(inherited)",
602602
"@executable_path/../Frameworks",
603603
);
604-
MARKETING_VERSION = 1.3.1;
604+
MARKETING_VERSION = 1.4.0;
605605
PRODUCT_BUNDLE_IDENTIFIER = com.lifu.SwiftJSONModeler;
606606
PRODUCT_NAME = "$(TARGET_NAME)";
607607
SWIFT_VERSION = 5.0;

SwiftJSONModeler For Xcode/YApi/YApiCreator.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ class YApiCreator {
118118
comment = "/// \(objectDes)\(isShowMock && !object.mock.isEmpty ? "\tMock:\(object.mock)" : "")"
119119
}
120120
if swiftType == "<#Undefined#>" {
121-
swiftType = object.typeRaw
121+
swiftType = "<#\(object.typeRaw)#>"
122122
}
123123
var line = "var \(object.key!): \(swiftType)"
124124
let isOptional = !config.isNotOptional
@@ -168,7 +168,7 @@ class YApiCreator {
168168
}
169169
let lines = yapiLines.map{ "\t\($0)" }
170170
objctLines.append(contentsOf: lines)
171-
if (commandIdentifier == classFromRAWCommand && commandIdentifier == classFromYApiIdCommand), parent.contains("HandyJSON") {
171+
if keyword == keyClass , parent.contains("HandyJSON") {
172172
objctLines.append("")
173173
objctLines.append("\trequired init() { }")
174174
}

0 commit comments

Comments
 (0)