if (includeDataStore) {
doc = generateDataStoreApiDoc(uriInfo, urlPrefix, deviceName);
addFields(doc.getPaths() ,openApiObject.getPaths().fields());
- addFields(doc.getDefinitions() ,openApiObject.getDefinitions().fields());
+ addFields(doc.getComponents().getSchemas(), openApiObject.getComponents().getSchemas().fields());
doc.getInfo().setTitle(openApiObject.getInfo().getTitle());
} else {
doc = openApiObject;
context, deviceName, pathsObject);
declaration.setPaths(pathsObject);
- declaration.setDefinitions(JsonNodeFactory.instance.objectNode());
return declaration;
}