Skip to content

Commit 132d9cc

Browse files
committed
Merge pull request swagger-api#1054 from tomaszszlek/develop_2.0
Added handling url format as a string type swagger-api#1045
2 parents da48a75 + b0b15e5 commit 132d9cc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/swagger-models/src/main/java/com/wordnik/swagger/models/properties/StringProperty.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ public void setDefault(String _default) {
8787

8888
//TODO: implement additional formats
8989
public static boolean isType(String type, String format) {
90-
if("string".equals(type) && (format == null || "uri".equals(format) || "byte".equals(format)))
90+
boolean formatMatchStringType = "uri".equals(format) || "byte".equals(format) || "url".equals(format);
91+
if("string".equals(type) && (format == null || formatMatchStringType))
9192
return true;
9293
else return false;
9394
}

0 commit comments

Comments
 (0)