adding more internal refs - refs -issue
@@ -44,6 +44,7 @@ import io.swagger.models.properties.PropertyBuilder;
import io.swagger.models.properties.RefProperty;
import io.swagger.models.properties.StringProperty;
import io.swagger.models.properties.UntypedProperty;
+import io.swagger.models.refs.RefFormat;
import io.swagger.models.resourcelisting.ApiInfo;
import io.swagger.models.resourcelisting.ApiKeyAuthorization;
import io.swagger.models.resourcelisting.ApiListingReference;
@@ -346,9 +347,9 @@ public class SwaggerCompatConverter implements SwaggerParserExtension {
am.setItems(innerType);
}
if (items.getRef() != null) {
- am.setItems(new RefProperty(items.getRef()));
+ am.setItems(new RefProperty(items.getRef(),RefFormat.INTERNAL));
} else {
- am.setItems(new RefProperty(type));
+ am.setItems(new RefProperty(type,RefFormat.INTERNAL));
}
output = am;
} else {
@@ -394,9 +395,9 @@ public class SwaggerCompatConverter implements SwaggerParserExtension {
if (innerType != null && !(innerType instanceof UntypedProperty)) {
am.setItems(innerType);
} else if (items.getRef() != null) {
- am.setItems(new RefProperty(items.getRef()));
+ am.setItems(new RefProperty(items.getRef(),RefFormat.INTERNAL));
} else {
- am.setItems(new RefProperty(type));
+ am.setItems(new RefProperty(type,RefFormat.INTERNAL));
}
output = am;
} else {
@@ -416,9 +417,9 @@ public class SwaggerCompatConverter implements SwaggerParserExtension {
output = i;
} else {
if (obj.getRef() != null) {
- output = new RefProperty(obj.getRef());
+ output = new RefProperty(obj.getRef(),RefFormat.INTERNAL);
} else if (type != null && !type.equals("void")) {
- output = new RefProperty(type);
+ output = new RefProperty(type,RefFormat.INTERNAL);
}
}
}
