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

340 Коммитов

Автор SHA1 Сообщение Дата
Vlad Barosan 6a73df4988
Add title field to schema type (#36)
* Add pretteir config and format

* Add optional name field to SchemObject

* Increment version

* Install from fork until upstream is released
2018-08-08 14:07:56 -07:00
Sergey Shandar 2a92277984 TypeScript definitions (#35)
* include `index.d.ts` file to `package.json`

* tag type

* Options

* SwaggerObject

* more types

* LiveResponse

* ValidateResponse

* SchemaObject

* Schema

* format

* format is not readonly

* examples

* schema in Response

* optional warnings

* "x-ms-parameterized-host"

* hostTemplate

* host

* schemes

* basePath

* remove 4.0

* node.js 8

* node latest

* gulp 4.0 => gulp 3.0
2018-07-19 14:28:18 -07:00
Amar Zavery 5deeda2e52 yet another sway 2018-06-20 16:20:56 -07:00
Amar Zavery f2cab989e2
Merge pull request #34 from vladbarosan/fixForMutability
Add check for required property on x-ms-mutability type check
2018-05-30 08:56:59 -07:00
Vlad Barosan 166bd2fc25 Add check for required property on x-ms-mutability type check 2018-05-30 02:57:49 -07:00
Vlad Barosan f9ff19b99b
Respect modelasstring true (#33) 2018-05-29 19:30:28 -07:00
Vlad Barosan 88f8f2cc88
Add custom type validator to support x-ms-mutability (#32) 2018-05-18 14:51:17 -07:00
Amar Zavery e5c25c2b1a
Merge pull request #31 from sarangan12/Issue240
Fix urlObject hostname to protocol
2018-05-14 14:56:52 -07:00
Sarangan Rajamanickam c450cd6b77 Fix urlObject hostname to protocol 2018-05-14 14:28:12 -07:00
Vlad Barosan 361d0e8f5b
Add support for x-ms-mutability (#30) 2018-05-14 10:52:08 -07:00
Vlad Barosan 32784bab1c
Ensure string on toUpperCase call (#29) 2018-04-23 19:00:15 -07:00
Amar Zavery 3aacaf4b0c
Merge pull request #27 from mcardosos/path
Add path fixes
2018-04-23 18:29:00 -07:00
mcardosos ca7e588001 Typo 2018-04-23 18:12:23 -07:00
mcardosos 80709ac468 [WIP] Fix CI 2018-04-23 18:10:22 -07:00
mcardosos 8ce102730d Semicolons 2018-04-23 17:55:55 -07:00
mcardosos 237bc2756e Fix CI 2018-04-23 17:53:26 -07:00
Amar Zavery 2fdbd722e0
Merge pull request #28 from amarzavery/update
Update stuff from upstream master
2018-04-23 17:50:12 -07:00
Amar Zavery 687838812f merging from upstream master 2018-04-23 17:49:09 -07:00
mcardosos 51f59feade Whitespace 2018-04-23 17:42:56 -07:00
mcardosos 5b558e5b86 Add path fixes 2018-04-23 17:17:39 -07:00
Vlad Barosan 02ede38a83
Differentiate between wrong enum value and wrong enum casing (#26)
* Differentiate between wrong enum value and wrong enum casing

* Fix CI issues
2018-04-19 19:24:01 -07:00
Amar Zavery 6fe07a9dc1
Merge pull request #25 from vladbarosan/validateDefault
Validate default responses
2018-03-15 12:47:53 -07:00
Vlad Barosan 1e7b7a404c Validate default responses 2018-03-14 18:16:23 -07:00
Vlad Barosan 21d2160311
Support OneOf for parameter validation (#24)
* Support OneOf for parameter validation

* disable browserify build without source maps as it fails
2018-03-01 09:01:48 -08:00
Jeremy Whitlock ee8329540b Updated release notes for bugs fixed in previous commit 2018-02-11 20:24:46 -07:00
Jeremy Whitlock cdd8030a7d Upgraded dependencies for new json-refs release 2018-02-11 20:20:01 -07:00
Amar Zavery a66e2f23fd
Merge pull request #22 from amarzavery/integration
Integrating changes from upstream master on 1/31/2018 @2:43 PM PST
2018-01-31 18:01:59 -08:00
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
Vlad Barosan 5762a7c339
If there is no content-type set do not validate it (#21)
If there is no content-type set do not validate it as more often than not, it is not set and that does not mean that it should be 'application/octet-stream' as the RFC  www.w3.org/Protocols/rfc2616/rfc2616-sec7.html#sec7.2.1  suggests.
2018-01-31 14:59:26 -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