Code Review
/
music.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Some bug fixes and Minor Chages.
[music.git]
/
src
/
main
/
java
/
org
/
onap
/
music
/
datastore
/
jsonobjects
/
JsonLock.java
diff --git
a/src/main/java/org/onap/music/datastore/jsonobjects/JsonLock.java
b/src/main/java/org/onap/music/datastore/jsonobjects/JsonLock.java
index
88e1c3f
..
f353c01
100644
(file)
--- a/
src/main/java/org/onap/music/datastore/jsonobjects/JsonLock.java
+++ b/
src/main/java/org/onap/music/datastore/jsonobjects/JsonLock.java
@@
-29,12
+29,16
@@
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
-@ApiModel(value = "Json
Table", description = "model for leased lock
")
+@ApiModel(value = "Json
Lock Type", description = "Model for Lock Type
")
@JsonIgnoreProperties(ignoreUnknown = true)
public class JsonLock {
private LockType locktype;
@JsonIgnoreProperties(ignoreUnknown = true)
public class JsonLock {
private LockType locktype;
- @ApiModelProperty(value = "Type of music lock")
+ @ApiModelProperty(
+ value = "Type of music lock",
+ name = "lockType",
+ allowEmptyValue = false,
+ allowableValues = "READ|WRITE")
public LockType getLocktype() {
return this.locktype;
}
public LockType getLocktype() {
return this.locktype;
}