Skip to content

Commit cd694fc

Browse files
author
Bolobanov Nikolay
committed
swagger-api#1973 make TYPE and FORMAT constants public
1 parent 80f5b65 commit cd694fc

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

modules/swagger-models/src/main/java/io/swagger/models/properties/BinaryProperty.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import java.util.List;
66

77
public class BinaryProperty extends AbstractProperty implements Property {
8-
private static final String TYPE = "string";
8+
public static final String TYPE = "string";
99
protected List<String> _enum;
1010
protected Integer minLength = null, maxLength = null;
1111
protected String pattern = null;

modules/swagger-models/src/main/java/io/swagger/models/properties/DoubleProperty.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import java.util.List;
77

88
public class DoubleProperty extends DecimalProperty {
9-
private static final String FORMAT = "double";
9+
public static final String FORMAT = "double";
1010
protected Double _default;
1111
protected List<Double> _enum;
1212

modules/swagger-models/src/main/java/io/swagger/models/properties/FloatProperty.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import java.util.List;
77

88
public class FloatProperty extends DecimalProperty {
9-
private static final String FORMAT = "float";
9+
public static final String FORMAT = "float";
1010
protected List<Float> _enum;
1111

1212
protected Float _default;

modules/swagger-models/src/main/java/io/swagger/models/properties/IntegerProperty.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import java.util.List;
77

88
public class IntegerProperty extends BaseIntegerProperty {
9-
private static final String FORMAT = "int32";
9+
public static final String FORMAT = "int32";
1010
protected Integer _default;
1111
protected List<Integer> _enum;
1212

modules/swagger-models/src/main/java/io/swagger/models/properties/LongProperty.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import java.util.List;
77

88
public class LongProperty extends BaseIntegerProperty {
9-
private static final String FORMAT = "int64";
9+
public static final String FORMAT = "int64";
1010
protected Long _default;
1111
protected List<Long> _enum;
1212

modules/swagger-models/src/main/java/io/swagger/models/properties/PasswordProperty.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import java.util.List;
77

88
public class PasswordProperty extends AbstractProperty implements Property {
9-
private static final String TYPE = "string";
9+
public static final String TYPE = "string";
1010

1111
private static final String FORMAT = "password";
1212

modules/swagger-models/src/main/java/io/swagger/models/properties/RefProperty.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import io.swagger.models.refs.RefType;
77

88
public class RefProperty extends AbstractProperty implements Property {
9-
private static final String TYPE = "ref";
9+
public static final String TYPE = "ref";
1010
private GenericRef genericRef;
1111

1212
public RefProperty() {

0 commit comments

Comments
 (0)