Skip to content

Commit b5cfe0c

Browse files
committed
Fix docs path for OpenAPI
1 parent e2f16a8 commit b5cfe0c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/lib/openapi.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ function load(spec) {
100100
],
101101
},
102102
paths: `${_config.path}/openapi/${tmp}`,
103-
docsPath: "/spec.json",
103+
docsPath: "/openapi.json",
104104
});
105105
} catch (err) {
106106
console.error(err);

src/routes/openapi.js

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ router.post("/openapi", (req, res) => {
1515
req.body,
1616
Joi.object({
1717
"x-nuc-action": Joi.string().required(),
18+
"x-nuc-functions": Joi.array().optional(),
1819
"x-nuc-port": Joi.number().optional(),
1920
})
2021
.required()

0 commit comments

Comments
 (0)