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.
1 parent ab6a40d commit ced7cb7Copy full SHA for ced7cb7
modules/swagger-models/src/main/java/com/wordnik/swagger/models/RefModel.java
@@ -7,6 +7,7 @@
7
import java.util.*;
8
9
public class RefModel extends AbstractModel {
10
+ // internally, the ref value is never fully qualified
11
private String ref;
12
private String description;
13
private Map<String, Property> properties;
@@ -45,10 +46,13 @@ public String getSimpleRef() {
45
46
}
47
48
public String get$ref() {
- return ref;
49
+ return "#/definitions/" + ref;
50
51
public void set$ref(String ref) {
- this.ref = ref;
52
+ if(ref.indexOf("#/definitions/") == 0)
53
+ this.ref = ref.substring("#/definitions/".length());
54
+ else
55
+ this.ref = ref;
56
57
58
public String getExample() {
0 commit comments