Merge "Yang parser refactoring."
[yangtools.git] / code-generator / maven-sal-api-gen-plugin / src / main / java / org / opendaylight / yangtools / yang / wadl / generator / WadlRestconfGenerator.xtend
index 44a75322156e7790b98d91ba3dd0d0ca345860b8..586b000c5673e433831ef0fd006369fe4745be36 100644 (file)
@@ -38,7 +38,7 @@ class WadlRestconfGenerator {
                this.context = context
                for (module : modules) {
                        val dataContainers = module.childNodes.filter[it|it instanceof ContainerSchemaNode || it instanceof ListSchemaNode]
-                       if (!dataContainers.empty) {
+                       if (!dataContainers.empty || !module.rpcs.nullOrEmpty) {
                                configData = new ArrayList
                                operationalData = new ArrayList