forked from loafle/openapi-generator-original
Add support for read-only values in spring model (#4629)
This commit is contained in:
committed by
wing328
parent
6e2ee4be06
commit
78f38f1a1f
@@ -26,7 +26,7 @@ public class HasOnlyReadOnly {
|
||||
* Get bar
|
||||
* @return bar
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
@ApiModelProperty(readOnly = true, value = "")
|
||||
public String getBar() {
|
||||
return bar;
|
||||
}
|
||||
@@ -44,7 +44,7 @@ public class HasOnlyReadOnly {
|
||||
* Get foo
|
||||
* @return foo
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
@ApiModelProperty(readOnly = true, value = "")
|
||||
public String getFoo() {
|
||||
return foo;
|
||||
}
|
||||
|
||||
@@ -51,7 +51,7 @@ public class Name {
|
||||
* Get snakeCase
|
||||
* @return snakeCase
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
@ApiModelProperty(readOnly = true, value = "")
|
||||
public Integer getSnakeCase() {
|
||||
return snakeCase;
|
||||
}
|
||||
@@ -87,7 +87,7 @@ public class Name {
|
||||
* Get _123Number
|
||||
* @return _123Number
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
@ApiModelProperty(readOnly = true, value = "")
|
||||
public Integer get123Number() {
|
||||
return _123Number;
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ public class ReadOnlyFirst {
|
||||
* Get bar
|
||||
* @return bar
|
||||
**/
|
||||
@ApiModelProperty(value = "")
|
||||
@ApiModelProperty(readOnly = true, value = "")
|
||||
public String getBar() {
|
||||
return bar;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user