kyle
83232dc2d8
v3.12.0 ( #4282 )
...
* Use `parameterWithMeta` to get parameter data in <ParameterRow>
* Prefer specPath when fetching resolved subtrees in OperationContainer
* Add test for OAS3 callback rendering
* Remove debugger statement
* Pass base resolution URL directly to Swagger-Client subtree resolver
* Remove accidental comment
* Migrate additional options
* Don't default to empty Map when getting subtree
* fix(validateParam): check for ImList type before using count method
* Use `replaceState` to update `urls.primaryName`
This gives us the stateful URL we want, without:
(a) refreshing the page on update
(b) creating a long, useless history for the user
(c) implying that browser history is two-way bound
to Swagger-UI (it isn't, we don't have a router)
* Add `fn.opsFilter` docs and internal API versioning note
* restrict `x-example` functionality to Swagger 2.0
* polish Authorize + Close buttons
* add tachyons; use it for padding the new Reset button
* v3.12.0
* rebuild dist
2018-03-02 21:13:00 -08:00
Grégoire Charvet 黑瓜
71d7c1a5ab
Fix deeplinking for topbar plugin ( #4181 )
...
* Fix deeplinking for topbar plugin
* Lint & added tests for search parsing/serialization
2018-02-26 21:46:18 -08:00
Helder Sepulveda
d1779dc47b
fix: allow any guid ( #4252 )
...
* Allow any guid
* Add a few more GUID tests
2018-02-23 22:31:08 -08:00
Lukasr29
64f99356a5
improve(tio): extract file name from Content-Disposition ( #4035 )
...
* Added extraction of quoted file name from content disposition header
* Added extraction of quoted file name from content disposition header - PR Fixes
* Added extraction of quoted file name from content disposition header - PR Fixes
* Added extraction of quoted file name from content disposition header - PR Fixes
2018-01-11 19:39:42 -06:00
linelson
b3e80cc500
fix(tic-validation): uuid format parameter validation should be case insensitive ( #4102 )
...
* fix uuid validation casing (#4099 )
* add test
2018-01-11 18:42:37 -06:00
narutowyh
12a9fbc0ca
fix: ignore prototype's keys in a handful of for...in loops
2018-01-05 21:57:17 -06:00
Juan J. Jimenez-Anca
bd41b736a8
feat: display last error when definition/config load fails
...
Contains a breaking internal API change to `errActions.newThrownErr`, which will require a MINOR version bump. Swagger-Editor does not depend on the old usage style.
2018-01-05 21:45:21 -06:00
Josh Ponelat
733cddf146
Be more nodejs friendly, tweak some lines
2017-12-06 21:02:45 +02:00
Kyle Shockey
40bd720eb4
Correctly validate OAS3 parameters that lack a schema
2017-11-28 22:19:53 -06:00
Greg Thompson
0d0b3279bb
Merge branch 'master' into ft/3052-extensions
2017-11-13 09:29:19 -06:00
Kyle Shockey
365585ceea
Add check for 0 value for number and integer parameter values
2017-11-10 10:45:19 -08:00
Greg Thompson
a58cd25f08
Merge branch 'master' into ft/3052-extensions
2017-11-06 09:18:51 -06:00
Greg Thompson
44c422eba3
parameter extensions display
2017-11-06 09:17:30 -06:00
kyle
4315cf6b94
Merge branch 'master' into bug/validation-messages
2017-11-03 17:17:21 -07:00
kyle
b584837f42
Merge branch 'master' into master
2017-11-03 17:12:35 -07:00
Kyle Shockey
17e6d81504
Format XML with xml-but-prettier
2017-11-02 15:13:10 -07:00
HelderSepu
034ebb021c
Remove redundant Boolean call
2017-11-01 22:00:39 -04:00
Helder Sepulveda
7fd1a03c1d
Merge branch 'master' into bug/slow-formatXml
2017-11-01 21:52:45 -04:00
HelderSepu
f600fe8dbb
Simplify formatXml
2017-11-01 21:48:18 -04:00
Helder Sepulveda
87bbb9eb9f
Merge branch 'master' into bug/validation-messages
2017-11-01 09:33:00 -04:00
Helder Sepulveda
d73715f1fa
Merge branch 'master' into master
2017-11-01 09:32:49 -04:00
Kyle Shockey
1aa1907128
Check for input type and string length before sanitizing a URL
2017-10-31 12:35:08 -07:00
Kyle Shockey
afa615e01d
Add URL sanitizer to avoid javascript: XSS attack vector
2017-10-30 17:43:23 -07:00
HelderSepu
ec2179f019
Fix issue with the error messages
...
Many of the errors where incorrectly showing "Required field is not
provided" when the field was provided but not valid.
This was raised by @ron on PR #3825
2017-10-28 16:21:40 -04:00
HelderSepu
43c5d9a8c9
Revert "Add objectCheck"
...
This reverts commit 87d11f99dd .
2017-10-24 18:35:28 -04:00
HelderSepu
87d11f99dd
Add objectCheck
...
Squeeze fix for required object on this PR
2017-10-24 17:49:56 -04:00
HelderSepu
efa468bac5
remove semicolon
2017-10-21 13:20:48 -04:00
HelderSepu
ac24f4376b
Add validatePattern & UnitTest
2017-10-21 13:04:53 -04:00
Owen Conti
7344315c34
Added tests for isOAS3 in validateParam function.
2017-10-11 18:34:24 -06:00
Owen Conti
a0f8f9a05d
Fixes #3747
...
Update `validateParam` to handle OAS3 parameters.
2017-10-11 17:46:38 -06:00
Kyle Shockey
012313e236
Handle cases where maximum and minimum are 0
2017-09-28 17:59:07 -07:00
kyle
27da2a7d3b
Merge branch 'master' into ft/validation
2017-09-28 17:53:14 -07:00
HelderSepu
a408fb1f23
Correction from @shockey
2017-09-28 20:40:22 -04:00
HelderSepu
7d40d72281
Add validateMaximum & validateMinimum
...
This address some of the validation requested on Issue #993
2017-09-24 11:43:47 -04:00
HelderSepu
a5c7083726
Add validation for min and max length
2017-09-23 14:14:58 -04:00
HelderSepu
e08f31d674
Add UnitTests for validateDateTime & validateGuid
2017-09-22 21:37:33 -04:00
HelderSepu
7d9b56255c
Correction to the validateDateTime
2017-09-22 17:44:01 -04:00
HelderSepu
11768b16bf
Correct IF for validateDateTime & validateGuid
2017-09-22 11:30:07 -04:00
HelderSepu
85b7b7241d
Add validateDateTime & validateGuid
...
Initial work to tacke some of the missing validation (Issue #993 )
2017-09-19 14:31:27 -04:00
Kyle Shockey
ae5ad484d9
More merge oversights...
2017-09-15 20:33:16 -07:00
Kyle
fa312cb70d
Merge branch 'master' into bug/oas3-accept-controls
2017-09-15 20:11:20 -07:00
Owen Conti
840912cb56
Handle null value in createDeepLinkPath
2017-09-13 21:38:07 -06:00
Owen Conti
a6e070ac76
Replace spaces with underscores when setting the hash value and inserting the ID into the DOM. Escape the deep link path when querying for the DOM element on hash change.
2017-09-13 21:32:46 -06:00
Owen Conti
430e2a970f
Fixes #3596
...
Wrap `isShownKey` values in a function that replaces spaces with underscores. When parsing the hash on route change, replace the spaces in the values with underscores again.
2017-09-13 17:20:37 -06:00
Kyle Shockey
26edaa5f0b
OAS3 Accept header control: Component-side
2017-09-12 17:22:51 -07:00
Kyle Shockey
d14ae62aa5
Parse JSON requestBodies so Client can consume them correctly
2017-09-05 15:07:55 -07:00
shockey
299b609369
Merge branch 'master' into bug/3414-redo
2017-07-28 19:51:03 -07:00
Kyle Shockey
6ecae65b5f
Remove config filtering
2017-07-27 13:01:44 -07:00
Owen Conti
f570ffcd82
Reimplemented changes from PR #3427 . Added fix for validating request bodies.
2017-07-24 18:46:30 -06:00
Owen Conti
87e7142f1f
Revert "Update parameter <select> elements to render 'invalid' classes. Add '.invalid' CSS for <select> elements. Rework validateParam() function. Added .btn-sm class for "Add item" and "Remove item" buttons in array parameters. Reduce border-width on <select> elements inside parameters. Update tests for utils.validateParam()."
...
This reverts commit 666e22f989 .
2017-07-24 18:26:09 -06:00