Граф коммитов

203 Коммитов

Автор SHA1 Сообщение Дата
Jeremy Whitlock 18604e262d Rewrite the document walker function 2018-01-21 14:05:11 -07:00
Jeremy Whitlock 6d833908ac Fix bug in reference resolution
Reference resolution is a two step process: Resolve remotes and then
locals.  The problem is there was a bug where this wasn't working as
expected and so the second pass, all references were resolved again.

Fixes #123
2017-12-01 20:42:48 -07:00
Jeremy Whitlock 43e33d8d53 Support req.originalUrl for Sway#getPath and Parameter#getValue
Fixes #156
2017-12-01 20:13:53 -07:00
Jeremy Whitlock 94ba34fe80 Make type coercion for arrays in query parameters better
Prior to this fix, `JSON.parse` was used on query parameter values that
were marked as type `array` so if you had a singular value in there and
it was not a JSON string representing an array, you could inadvertently
coerce a string value to a non-string value when the string
representation was coercable to a non-string type, like a boolean or
number.
2017-12-01 19:53:33 -07:00
Jeremy Whitlock 09dec1c2e0 Support finding operations by operationId
`Sway#getOperation` and `Path#getOperation` have been updated to find
operations by their `operationId`.

Fixes #152
2017-10-10 23:07:48 -06:00
Jeremy Whitlock 545bde7813 Adding security vulnerability checking 2017-10-10 22:36:21 -06:00
Jeremy Whitlock 8d6018254b Updating dependencies 2017-10-10 22:33:39 -06:00
Jeremy Whitlock 5dfaf17d6e Update release notes for PR #153 2017-09-22 17:37:13 -06:00
Mike Ralphson da0c1c3b7c perf: lazily instantiate faker (#153) 2017-09-22 17:26:59 -06:00
Jeremy Whitlock 8be8328979 Update release notes for PR #139
There was also a minor refactoring of the related code, not
related to the PR itself but in its surrounding logic.
2017-09-19 08:56:56 -06:00
vinassefranche 7fc45a584f Using default value for array if no default value is defined for items (#139)
* Using default value for array if no default value is defined for items

The global array's default value will only be used if there would be none without it.

If the items in the array have default values, they will still be used.

Fixes #132
2017-09-19 08:39:32 -06:00
Jeremy Whitlock c8d1d11d56 Update browser binaries and release notes for recent PRs 2017-09-13 10:08:50 -06:00
Noah Dietz 61a09527fc allow missing optional params (#148)
Do not treat missing optional file parameters as an error
2017-09-13 09:58:07 -06:00
Noah Dietz 15d51ed414 Make path regexp case-sensitive (#149)
Per RFC3986 6.2.2.1, it seems that all URI components other than scheme and host are suppose to be case-sensitive.
2017-09-13 09:51:30 -06:00
Noah Dietz b635ebd311 Remove method check for operation consumes validation (#151)
Support request validation for all HTTP verbs _(even if they aren't applicable)_.
2017-09-13 09:46:47 -06:00
Jeremy Whitlock 9cfcb38f5a Update release notes for PR #145 2017-09-13 08:52:54 -06:00
Nikolai Kotchetkov dd6fa083de Fix global security definition resolution
* Testing operation has taken global security

Operation takes global security definitions.

Fixes #120
2017-09-13 08:46:55 -06:00
Jeremy Whitlock 6a5182bdf0 Fix TravisCI (and minor docs fix) 2017-07-07 22:29:55 -06:00
Jeremy Whitlock 85ebf329c6 Update dependencies
Fixes #141
2017-07-07 22:20:31 -06:00
Jeremy Whitlock cbc1dd184a Do not version VS Code files 2016-12-22 20:15:11 -07:00
Lukas Spieß 4c63138d93 Use definitionsFullyResolved to look up consumes/produces
Use definitionsFullyResolved when lookup up consumes/produces properties

* Add .DS_Store to .gitignore
* Run test-operation on swagger-relative-refs.yaml
* Fix test for relative references support

Fixes #92
2016-12-22 20:13:33 -07:00
Jeremy Whitlock ec8e11ff85 Merge pull request #113 from TheToolbox/master
Attempting to add Typings
2016-12-13 15:04:38 -07:00
Toolbox 62c1d145c3 Attempting to add Typings 2016-12-07 21:02:30 -05:00
Jeremy Whitlock 2a7e521374 Merge pull request #104 from TheToolbox/master
Updating z-schema
2016-09-21 10:14:05 -06:00
Toolbox 534ad59ae3 Updating z-schema 2016-09-20 23:25:10 -04:00
Jeremy Whitlock e53e529dc4 Merge pull request #80 from WangBoxue/master
upgrade json-schema-faker to 0.3.2
2016-05-16 10:41:11 -06:00
wangboxue 75966f561d upgrade json-schema-faker to 0.3.2 2016-05-13 17:39:08 +08:00
Jeremy Whitlock 59e9b1f1b5 v1.0.0 2016-04-04 16:12:13 -06:00
Jeremy Whitlock 7c6e7f8337 Preparing for release 2016-04-04 16:12:00 -06:00
Jeremy Whitlock 1acdfd0112 Support mixed-case header names
Fixes #67
2016-04-04 15:56:38 -06:00
Jeremy Whitlock a3d8783001 Do not stop on first JSON Schema validation error
Fixes #63
2016-04-04 14:57:22 -06:00
Jeremy Whitlock 9e40471e0f Merge pull request #70 from SandyChapman/master
Always validate date and date-time strings before converting to...
2016-04-04 11:30:32 -06:00
Sandy Chapman 670a05fc97 Always validate date and date-time strings before converting to a JavaScript Date object. Added unit test coverage for a wider sampling of valid and invalid dates and date-times. 2016-04-01 15:25:59 -03:00
Jeremy Whitlock 66a86ad09b Updated dependencies 2016-03-23 11:54:40 -06:00
Jeremy Whitlock a6dcb68be6 Merge pull request #69 from ghermeto/master
fix issue with encoded slashes in path
2016-03-23 10:18:40 -06:00
Guilherme Hermeto 1b7acd9743 fix issues with encoded slashes in path
path variables with encoded slashes were failing because the URI
component were being decoded too soon. Added test to verify fix.
2016-03-23 00:57:10 -07:00
Jeremy Whitlock 460d8613c4 Updating browser builds for PR merge 2016-02-29 14:05:15 -07:00
Jeremy Whitlock bd588dc110 Merge pull request #64 from APIs-guru/master
Small cleanups
2016-02-29 13:55:25 -07:00
Ivan Goncharov 4aade81430 Use 'swagger-methods' package to get list of HTTP verbs 2016-02-27 05:51:55 +02:00
Ivan Goncharov 6a269df094 Switch to using official Swagger schema package 2016-02-25 22:29:48 +02:00
Ivan Goncharov bfd6c24f2a Remove outdated copy of Draft-04 schema.
z-schema already add this schema, see:
https://github.com/zaggino/z-schema/blob/master/src/ZSchema.js#L68-L69
+ it was outdate, see:
ebd207685a
2016-02-25 22:29:48 +02:00
Ivan Goncharov 35589c644f Update dependencies 2016-02-25 22:29:39 +02:00
Ivan Goncharov d01e5081d0 README: replace absolute links 2016-02-25 18:57:48 +02:00
Jeremy Whitlock 9e063f9302 Fix Path#getOperation not handling uppercase method 2016-02-13 14:10:09 -07:00
Jeremy Whitlock c057f210de Pass through `params` and `schemaId` for validation errors
We've always normalized JSON Schema errors provided by z-schema but this
is unnecessary and in some cases not wanted.  This change will no longer
remove the `params` property of a validation error and will only remove
the `schemaId` property if its value is `undefined`.

Fixes #61
2016-02-13 11:54:20 -07:00
Jeremy Whitlock 7b8cf5d257 Properly identify optional parameters
Fixes #60
2016-02-05 10:55:13 -07:00
Jeremy Whitlock b921c8dfdd Changed debug logging 2016-02-02 18:22:00 -07:00
Jeremy Whitlock bda1a880bf Fix failing build (karma-phantomjs-launcher upgrade) 2016-02-02 17:36:45 -07:00
Jeremy Whitlock ba2598ced4 Upgrade json-refs for upstream bug fixes 2016-02-02 16:59:55 -07:00
Jeremy Whitlock f5f31f90da Updated json-refs for more bug fixes 2016-01-23 23:27:18 -07:00