Skip to content

Commit

Permalink
Added support for markdown in the type section.
Browse files Browse the repository at this point in the history
  • Loading branch information
rottmann committed May 7, 2015
1 parent 8d20758 commit 8714ff5
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/parsers/api_error.js
Original file line number Diff line number Diff line change
@@ -16,5 +16,5 @@ module.exports = {
parse : parse,
path : path,
method : apiParser.method,
markdownFields: [ 'description' ]
markdownFields: [ 'description', 'type' ]
};
4 changes: 2 additions & 2 deletions lib/parsers/api_param.js
Original file line number Diff line number Diff line change
@@ -21,7 +21,7 @@ var regExp = {
},
oType: { // optional type: {string}
b: '\\s*(?:\\{\\s*', // starting with '{', optional surrounding spaces
type: '([a-zA-Z0-9\\.\\/\\\\\\[\\]_-]+)', // 2
type: '([a-zA-Z0-9\(\)#:\\.\\/\\\\\\[\\]_-]+)', // 2
oSize: { // optional size within type: {string{1..4}}
b: '\\s*(?:\\{\\s*', // starting with '{', optional surrounding spaces
size: '(.+?)', // 3
@@ -132,5 +132,5 @@ module.exports = {
path : path,
method : 'push',
getGroup : getGroup,
markdownFields: [ 'description' ]
markdownFields: [ 'description', 'type' ]
};
2 changes: 1 addition & 1 deletion lib/parsers/api_success.js
Original file line number Diff line number Diff line change
@@ -16,5 +16,5 @@ module.exports = {
parse : parse,
path : path,
method : apiParser.method,
markdownFields: [ 'description' ]
markdownFields: [ 'description', 'type' ]
};

0 comments on commit 8714ff5

Please sign in to comment.