Code Review
/
netconf.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Bug 8622: convert sal-rest-docgen to Jackson
[netconf.git]
/
restconf
/
sal-rest-docgen
/
src
/
main
/
java
/
org
/
opendaylight
/
netconf
/
sal
/
rest
/
doc
/
swagger
/
ApiDeclaration.java
diff --git
a/restconf/sal-rest-docgen/src/main/java/org/opendaylight/netconf/sal/rest/doc/swagger/ApiDeclaration.java
b/restconf/sal-rest-docgen/src/main/java/org/opendaylight/netconf/sal/rest/doc/swagger/ApiDeclaration.java
index 3d735ac2f6898e49729cf6b7729a7052b9389593..00c6de8fe3d7818d3e5adb88fe18077843f8ab7d 100644
(file)
--- a/
restconf/sal-rest-docgen/src/main/java/org/opendaylight/netconf/sal/rest/doc/swagger/ApiDeclaration.java
+++ b/
restconf/sal-rest-docgen/src/main/java/org/opendaylight/netconf/sal/rest/doc/swagger/ApiDeclaration.java
@@
-7,8
+7,8
@@
*/
package org.opendaylight.netconf.sal.rest.doc.swagger;
*/
package org.opendaylight.netconf.sal.rest.doc.swagger;
+import com.fasterxml.jackson.databind.node.ObjectNode;
import java.util.List;
import java.util.List;
-import org.json.JSONObject;
/**
* Implementation of swagger spec (see <a href=
/**
* Implementation of swagger spec (see <a href=
@@
-23,13
+23,13
@@
public class ApiDeclaration {
private String resourcePath;
private List<String> produces;
private List<Api> apis;
private String resourcePath;
private List<String> produces;
private List<Api> apis;
- private
JSONObject
models;
+ private
ObjectNode
models;
- public
JSONObject
getModels() {
+ public
ObjectNode
getModels() {
return models;
}
return models;
}
- public void setModels(
JSONObject
models) {
+ public void setModels(
ObjectNode
models) {
this.models = models;
}
this.models = models;
}
@@
-86,6
+86,6
@@
public class ApiDeclaration {
}
public boolean hasModel() {
}
public boolean hasModel() {
- return (models != null && models.
length
() > 0);
+ return (models != null && models.
size
() > 0);
}
}
}
}