We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents da48a75 + b0b15e5 commit 132d9ccCopy full SHA for 132d9cc
modules/swagger-models/src/main/java/com/wordnik/swagger/models/properties/StringProperty.java
@@ -87,7 +87,8 @@ public void setDefault(String _default) {
87
88
//TODO: implement additional formats
89
public static boolean isType(String type, String format) {
90
- if("string".equals(type) && (format == null || "uri".equals(format) || "byte".equals(format)))
+ boolean formatMatchStringType = "uri".equals(format) || "byte".equals(format) || "url".equals(format);
91
+ if("string".equals(type) && (format == null || formatMatchStringType))
92
return true;
93
else return false;
94
}
0 commit comments