Create diagram for Open API spec

This commit is contained in:
Christian Georgi
2020-11-14 21:38:18 +01:00
parent d5ef630743
commit 6d488b042c
2 changed files with 3 additions and 2 deletions

View File

@@ -30,7 +30,8 @@ async function toOpenApiDoc(service, host, cache) {
DEBUG && DEBUG ('Compiling Open API spec for', service.name)
cache[service.name] = cds.compile.to.openapi (service.model, {
service: service.name,
'openapi:url': service.path
'openapi:url': service.path,
'openapi:diagram': true
})
}
}