Skip to content

Commit cb6f9fc

Browse files
committed
Contact field must be filled out
1 parent afef3af commit cb6f9fc

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

lib/well-knowns.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,9 @@ const generateOpenAPISpec = (definitions, plugin, server, origin, identifier) =>
231231

232232
if (plugin.contact) {
233233
const {name, url, email} = plugin.contact;
234+
if (name || url || email) {
235+
spec.info.contact = {};
236+
}
234237
name && (spec.info.contact.name = name);
235238
url && (spec.info.contact.url = url);
236239
email && (spec.info.contact.email = email);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "functionscript",
3-
"version": "2.10.2",
3+
"version": "2.10.3",
44
"description": "An API gateway and framework for turning functions into web services",
55
"author": "Keith Horwood <keithwhor@gmail.com>",
66
"main": "index.js",

0 commit comments

Comments
 (0)