Skip to content

Commit 4d59d4c

Browse files
committed
Validate pathname field
1 parent 066045f commit 4d59d4c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lib/parser/function_parser.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ FunctionParser.extensions = {
158158

159159
FunctionParser.definitionFields = {
160160
'name': name => typeof name === 'string',
161+
'pathname': pathname => typeof pathname === 'string',
161162
'format': format => {
162163
return format &&
163164
typeof format === 'object' &&

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.0.0",
3+
"version": "2.0.1",
44
"description": "A language and specification for turning JavaScript functions into typed HTTP APIs",
55
"author": "Keith Horwood <[email protected]>",
66
"main": "index.js",

0 commit comments

Comments
 (0)