Code Review
/
aai
/
schema-service.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Generated AAI Swagger file has schema violations
[aai/schema-service.git]
/
aai-schema-gen
/
src
/
main
/
java
/
org
/
onap
/
aai
/
schemagen
/
genxsd
/
XSDElement.java
diff --git
a/aai-schema-gen/src/main/java/org/onap/aai/schemagen/genxsd/XSDElement.java
b/aai-schema-gen/src/main/java/org/onap/aai/schemagen/genxsd/XSDElement.java
index
fa00b5e
..
7cddc7b
100644
(file)
--- a/
aai-schema-gen/src/main/java/org/onap/aai/schemagen/genxsd/XSDElement.java
+++ b/
aai-schema-gen/src/main/java/org/onap/aai/schemagen/genxsd/XSDElement.java
@@
-268,8
+268,6
@@
public class XSDElement implements Element {
&& this.getAttribute("description").length() > 0) {
sbParameter.append(" description: ").append(this.getAttribute("description"))
.append("\n");
&& this.getAttribute("description").length() > 0) {
sbParameter.append(" description: ").append(this.getAttribute("description"))
.append("\n");
- } else {
- sbParameter.append((" description: n/a\n"));
}
sbParameter.append((" required: false\n"));
if (("java.lang.String").equals(this.getAttribute("type"))) {
}
sbParameter.append((" required: false\n"));
if (("java.lang.String").equals(this.getAttribute("type"))) {
@@
-335,10
+333,6
@@
public class XSDElement implements Element {
if (("java.lang.Boolean").equals(this.getAttribute("type"))) {
sbParameter.append(" type: boolean\n");
}
if (("java.lang.Boolean").equals(this.getAttribute("type"))) {
sbParameter.append(" type: boolean\n");
}
- if (StringUtils.isNotBlank(this.getAttribute("name"))) {
- sbParameter.append(" example: " + "__")
- .append(this.getAttribute("name").toUpperCase()).append("__").append("\n");
- }
return sbParameter.toString();
}
return sbParameter.toString();
}
@@
-522,11
+516,6
@@
public class XSDElement implements Element {
" *This property can be used as a filter to find the start node for a dsl query\n");
}
}
" *This property can be used as a filter to find the start node for a dsl query\n");
}
}
- String elementAlsoRequiresProperty = this.getRequiresProperty();
- if (StringUtils.isNotEmpty(elementAlsoRequiresProperty)) {
- sbProperties.append(" also requires: ").append(elementAlsoRequiresProperty)
- .append("\n");
- }
return sbProperties.toString();
}
return sbProperties.toString();
}