diff --git a/.jshintignore b/.jshintignore index 93e99231..66f42480 100644 --- a/.jshintignore +++ b/.jshintignore @@ -1,4 +1,5 @@ node_modules src/main/javascript/doc.js dist -lib \ No newline at end of file +lib +.log \ No newline at end of file diff --git a/.jshintrc b/.jshintrc index 694473e8..9a1b0c8b 100644 --- a/.jshintrc +++ b/.jshintrc @@ -17,6 +17,7 @@ "strict": true, "trailing": true, "smarttabs": true, + "validthis": true, "globals": { // Libraries @@ -29,6 +30,7 @@ "SwaggerClient": false, "hljs": false, "SwaggerUi": false, + "define": false, // Global object // TODO: remove these diff --git a/.travis.yml b/.travis.yml index d2d38fd1..37245c73 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,3 +1,4 @@ +sudo: false language: node_js node_js: - '0.10' @@ -7,7 +8,3 @@ install: - sh -e /etc/init.d/xvfb start - npm i -g jshint - npm install - -script: - - jshint . - - npm test \ No newline at end of file diff --git a/README.md b/README.md index 2c2e9f33..1d729e8a 100644 --- a/README.md +++ b/README.md @@ -91,11 +91,13 @@ validatorUrl | By default, Swagger-UI attempts to validate specs against swagger dom_id | The id of a dom element inside which SwaggerUi will put the user interface for swagger. booleanValues | SwaggerUI renders boolean data types as a dropdown. By default it provides a 'true' and 'false' string as the possible choices. You can use this parameter to change the values in dropdown to be something else, for example 0 and 1 by setting booleanValues to new Array(0, 1). docExpansion | Controls how the API listing is displayed. It can be set to 'none' (default), 'list' (shows operations for each resource), or 'full' (fully expanded: shows operations and their details). -sorter | Apply a sort to the API list. It can be 'alpha' (sort paths alphanumerically) or 'method' (sort operations by HTTP method). Default is the order returned by the server unchanged. +apisSorter | Apply a sort to the API/tags list. It can be 'alpha' (sort by name) or a function (see Array.prototype.sort() to know how sort function works). Default is the order returned by the server unchanged. +operationsSorter | Apply a sort to the operation list of each API. It can be 'alpha' (sort by paths alphanumerically), 'method' (sort by HTTP method) or a function (see Array.prototype.sort() to know how sort function works). Default is the order returned by the server unchanged. onComplete | This is a callback function parameter which can be passed to be notified of when SwaggerUI has completed rendering successfully. onFailure | This is a callback function parameter which can be passed to be notified of when SwaggerUI encountered a failure was unable to render. highlightSizeThreshold | Any size response below this threshold will be highlighted syntactically, attempting to highlight large responses can lead to browser hangs, not including a threshold will default to highlight all returned responses. supportedSubmitMethods | An array of of the HTTP operations that will have the 'Try it out!` option. An empty array disables all operations. This does not filter the operations from the display. +oauth2RedirectUrl | OAuth redirect URL * All other parameters are explained in greater detail below diff --git a/dist/index.html b/dist/index.html index 160a3112..03bb098e 100644 --- a/dist/index.html +++ b/dist/index.html @@ -10,7 +10,6 @@ - @@ -18,14 +17,11 @@ - - - @@ -18,14 +17,11 @@ - - -