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

262 Коммитов

Автор SHA1 Сообщение Дата
Amar Zavery 720d5f317a skipping 2 more tests. total 23 as of now. 2018-01-31 17:50:17 -08:00
Amar Zavery 27c50438a1 update package lock file. 2018-01-31 17:38:35 -08:00
Amar Zavery 6055d87f15 browserify changes 2018-01-31 17:38:19 -08:00
Amar Zavery fa8f3e5e98 skip failing tests for now 2018-01-31 17:38:00 -08:00
Amar Zavery 347108298f satisfy linter 2018-01-31 17:31:15 -08:00
Amar Zavery ec4e324e99 enable ci for validation branch 2018-01-31 17:30:30 -08:00
Amar Zavery 919f65f953 integrated upstream master on 1/31/2018 @2.:43 PM PST 2018-01-31 14:43:48 -08:00
Amar Zavery 7004b89c86
Merge pull request #20 from vladbarosan/regexCaseInsensitive
Add parameter to allow case insensitive matches
2018-01-30 19:23:14 -08:00
Vlad Barosan e61f3efbd3 Add parameter to allow case insensitive matches 2018-01-30 19:11:26 -08:00
Amar Zavery a76decb5fc
Merge pull request #19 from mcardosos/query
Added query fix
2018-01-26 16:34:23 -08:00
mcardosos 9305193853 Added query fix 2018-01-26 16:32:29 -08:00
Jeremy Whitlock d2f577e206 Add support for registering custom formats
This commit basically makes it where you can pass in a list of custom
formats when creating the `SwaggerApi` object and/or you can call
`SwaggerApi#registerFormat(name, validator)`.  This just proxies through
to `ZSchema#registerFormat(name, validator)` so any value that is
permitted there is permitted here.

This is the bare minimum as there are no features around getting a list
of known formats, being warned if you are re-registering a format, etc.
But since those features were not asked for, this should do what is
required.

Fixes #74
2018-01-21 17:31:55 -07:00
Jeremy Whitlock 18604e262d Rewrite the document walker function 2018-01-21 14:05:11 -07:00
Amar Zavery 68bb956fcb
Merge pull request #18 from mcardosos/file
File support
2018-01-16 15:43:55 -08:00
mcardosos 930e07e3c3 Retro 2018-01-16 15:40:48 -08:00
mcardosos 879ca03e8d Blank space 2018-01-16 13:33:12 -08:00
mcardosos 5c7909924a More fixes for file 2018-01-16 13:23:11 -08:00
Amar Zavery aad5367089
Merge pull request #17 from mcardosos/query
Check individual query parameter instead of all of them
2018-01-11 19:13:26 -08:00
mcardosos 73e519c8b0 Spacing 2018-01-11 19:12:22 -08:00
mcardosos 0f693822a8 Fix dumb code 2018-01-11 15:22:50 -08:00
mcardosos 77996fd381 Feedback 2018-01-11 15:08:46 -08:00
mcardosos 8e8fd58fdf Check individual query parameter instead of all of them 2018-01-11 14:11:35 -08:00
Amar Zavery fdc7c40ea6
Merge pull request #16 from mcardosos/file
Added support for files
2018-01-10 15:30:46 -08:00
mcardosos 76f676655f Added support for files 2018-01-10 15:09:09 -08:00
Amar Zavery b3029abb4f
Merge pull request #15 from mcardosos/decode
Decode queries
2018-01-09 17:43:12 -08:00
mcardosos 9ba13aa39a Decode queries 2018-01-09 15:46:34 -08: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
Amar Zavery 3eb975c383
Merge pull request #14 from amarzavery/xmsparamhost
Add support for  processing 'x-ms-parameterized-host' extension.
2017-11-21 12:10:49 -08:00
Amar Zavery b49c833d87 creating a private function that builds the regexp object 2017-11-21 12:09:05 -08:00
Amar Zavery 5d63ce93d1 Add support for processing 'x-ms-parameterized-host' extension. 2017-11-20 13:52:25 -08:00
Amar Zavery b54dceada9
Merge pull request #13 from amarzavery/upd
Merge the changes from apigee/master into our validation branch
2017-11-19 12:02:13 -08:00
Amar Zavery 46971fec58 Merge branch 'master' of github.com:apigee-127/sway into upd 2017-11-14 15:10:36 -08:00
Amar Zavery d495bd6657
Merge pull request #12 from amarzavery/updatedep
update package dependencies
2017-11-14 14:30:54 -08:00
Amar Zavery fd166c8570 update package dependencies 2017-11-14 14:27:48 -08:00
Amar Zavery 8725d08de4 Merge pull request #11 from vishrutshah/remove-polymorphic
Removing in-memory polymorphic manipulation from sway
2017-10-18 14:17:21 -07:00
Vishrut Shah 23c268efea Removing in-memory polymorphic manipulation from sway 2017-10-18 14:02:49 -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
Amar Zavery 503145065e Merge pull request #9 from amarzavery/regex
Whenever the path property is set, the regexp should also be updated accordingly.
2017-09-14 15:18:52 -07:00
Amar Zavery 609637675b Whenever the path property is set, the regexp should also be updated accordingly. 2017-09-14 14:40:47 -07: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