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

340 Коммитов

Автор SHA1 Сообщение Дата
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
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
Amar Zavery a9157ff3e1 Merge pull request #8 from amarzavery/maxcallstack
address max callstack issue while searching for discriminator property
2017-06-27 12:30:48 -07:00
Amar Zavery a4e9729b7d address max callstack issue 2017-06-27 12:23:52 -07:00
Amar Zavery 3429105b26 Merge pull request #7 from amarzavery/polymorphic
handle polymorphic arrays at the top level
2017-05-09 12:07:30 -07:00
amarzavery d50084710d handle polymorphic arrays at the top level 2017-05-09 12:04:24 -07:00
Amar Zavery 939dd9f052 Merge pull request #6 from amarzavery/comapre
add support for type being an array
2017-04-12 19:47:12 -07:00
Amar Zavery 95d8f97595 add support for type being an array 2017-04-12 19:46:01 -07:00
Amar Zavery 873e85f3c0 Merge pull request #5 from amarzavery/comapre
add support to compare type as string or as an array
2017-04-12 17:14:47 -07:00
Amar Zavery 4621d4cb5d add support to compare type as string or as an array 2017-04-12 17:14:04 -07:00
Amar Zavery ca12f42f73 Merge pull request #4 from amarzavery/dateValidation
minor fix
2017-04-11 15:09:57 -07:00
Amar Zavery 05798cb80b minor fix 2017-04-11 15:08:58 -07:00
Amar Zavery 59bbba8798 Merge pull request #3 from amarzavery/dateValidation
fix url encoding for validating date-time in query/path parameters
2017-04-11 12:03:41 -07:00
Amar Zavery 6a57e7220d modified the logic of cloning stacks 2017-04-11 12:02:59 -07:00
Amar Zavery 19fd429064 setting arrayofStacks to the last stack from the cloned array. If that is undefined as well then setting it to an empty array 2017-04-10 21:03:59 -07:00
Amar Zavery 81059bf032 fix url encoding for validating date-time in query/path parameters 2017-04-10 20:08:16 -07:00
Amar Zavery a7dbf6a610 Merge branch 'polymorphic' of github.com:amarzavery/sway into validation 2017-04-10 08:38:05 -07:00
Amar Zavery 7e69a0d4e1 separate functions 2017-04-10 08:37:19 -07:00
Amar Zavery dfe1104cc6 Merge pull request #2 from amarzavery/polymorphic
Traversal should now work for Polymorphic Arrays too.
2017-04-10 08:25:58 -07:00