Commit Graph

3923 Commits

Author SHA1 Message Date
kyle
53fe60a96a housekeeping(autorelease): bump swagger-client when releasing (via #4877)
* housekeeping(autorelease): bump `swagger-client` when releasing
* Update .release-it.json
2018-09-13 17:27:43 -07:00
kyle
6bf651f5d7 housekeeping: automated releases via release-it (via #4875)
* add `release-it`

* `swagger-ui-testing`

* add automated-release npm script

* tweak GIT_TAG behavior and test command

* disable Cypress video recording

* Revert "`swagger-ui-testing`"

This reverts commit c3de2ec70d10d1dc5d08513f940df0d036508b2c.
2018-09-13 15:09:26 -07:00
kyle
8fb0cfd2bb fix: tolerate callback parameter values in ParameterRow (via #4873)
* fix: tolerate callback parameter values in ParameterRow
* Update 4867.js
2018-09-12 20:56:23 -07:00
kyle
e28c502a22 fix: safeguard Models from non-object schema content (via #4868) 2018-09-11 18:22:22 -07:00
kyle
1c52a9c77b release: 3.18.3 (via #4860)
* release: 3.18.3
* Update package-lock.json
2018-09-07 21:06:27 -07:00
kyle
54276c95e2 fix: gracefully handle empty request bodies (via #4859) 2018-09-07 16:18:13 -07:00
kyle
eb6c43405f fix: resolved model data invalidation (via #4858) 2018-09-07 14:13:43 -07:00
Andreas Lind
f1224e5196 fix: remove remaining reference to Titillium webfont (via #4840)
Follow up to #4598
2018-09-06 14:18:51 -07:00
kyle
9e7832a220 housekeeping: integrate Cypress in main test script (#4847) 2018-08-30 16:20:20 -07:00
kyle
e6b7167dd8 fix(deeplinking): expand containing tag when expanding an operation (#4837)
* fix(deeplinking): expand containing tag when expanding an operation
* linter fixes
* tighten up test cases
2018-08-27 22:58:00 -07:00
kyle
f51f391dcc release: v3.18.2 (#4834)
* v3.18.2

* rebuild dist

* update e2e test path config
2018-08-25 12:13:00 -07:00
kyle
00432fc07c fix: deep link fragment escaping (via #4832)
* `test/e2e` -> `test/e2e-selenium`

* add Cypress

* ESLint fixes

* MOAR cypress

* `integration` -> `tests`

* wire Cypress up to a hot e2e server

* add failing tests for #4537

* add petstore for future use

* don't tack `operations/` onto href path

* escape generated URL fragments

* Update package.json
2018-08-23 15:24:32 -07:00
kyle
b4f1886306 meta: supplemental tests for #4537 (via #4828)
* `test/e2e` -> `test/e2e-selenium`

* add Cypress

* ESLint fixes

* MOAR cypress

* `integration` -> `tests`

* wire Cypress up to a hot e2e server

* add failing tests for #4537

* Update package.json
2018-08-23 15:18:13 -07:00
kyle
1b2fbda646 meta: introduce Cypress end-to-end testing (via #4827)
* `test/e2e` -> `test/e2e-selenium`

* add Cypress

* ESLint fixes

* MOAR cypress

* `integration` -> `tests`

* wire Cypress up to a hot e2e server

* linter fixes

* don't run in CI
2018-08-23 15:10:00 -07:00
Christoph
b2c4c4e7e7 fix: invalid Operation element IDs for multi-word tags & operationIds (via #4538)
* Transform tag name of operations to get a valid html id even with multiple words in tags

* modify operation element ID escaping logic
2018-08-22 21:55:10 -07:00
Yann Savary
12e350fcad fix: incorrect usage of lodash.lowerCase (via #4200)
* Wrong usage of https://lodash.com/docs/4.17.5#lowerCase

* Add basic tests about ResponseBody Content-Type
2018-08-22 15:15:12 -07:00
Tim Macfarlane
9a9cfdf101 improvement: omit deprecated fields in examples (via #4758) 2018-08-20 14:11:50 -07:00
Harry Martland
98fdb3e43c improve(docker): use nginx image (#4796)
The nginx image contains a newer viersion on nginx
2018-08-17 18:15:24 -07:00
kyle
708a96dcab improvement: urlencoded Request Body rendering (via #4823)
* use request body schema `required` for marking required urlencoded properties

* don't use sample schema value as a fallback

* modify property layout to mimic regular parameters

* clean up

* use default or example for iniital values
2018-08-17 18:00:06 -07:00
kyle
6ba514583d release: 3.18.1 (via #4810)
* v3.18.1
* rebuild dist
2018-08-10 22:59:08 -07:00
Peter Dave Hello
4de4f71af7 improvement: update Dockerfile (#4799)
* [Dockerfile] Use `--no-cache` instead of `--update` for `apk add`
  To prevent unnecessary cache in the Docker image.
* [Dockerfile] Use `COPY` instead of `ADD` for non tarball file copying
* [Dockerfile] Update base image from Alpine v3.5 to v3.8
2018-08-08 14:16:20 -07:00
geraldglynn
cb2fc2089c improvement: move operation JumpToPath (via #4760) 2018-08-08 14:10:48 -07:00
Martin Danielsson
85cf0dccac improve: include more error data from authorization call (via #4801)
* Additional fix of #4048, more error messages from authorization call
  Inspect the error and error_description properties of the response, if available
* Fixed linter errors
2018-08-08 14:03:36 -07:00
Kyle Shockey
c9e8a67579 rebuild dist 2018-08-04 02:20:54 -07:00
Kyle Shockey
689f658b52 v3.18.0 2018-08-04 02:06:58 -07:00
kyle
87296702c6 feature: allowEmptyValue controls (#4788)
* add baseline tests

* coerce empty strings to null when updating parameter values

* add ParameterIncludeEmpty

* add redux management for empty parameter value inclusion state

* use name+in keying for state management instead of hash keying

* update new redux method usages to name+in keying

* coerce empty Immutable iterables in onChangeWrapper

* OAS3 tests & support

* add included empty parameters to requests before dispatching to Swagger Client

* make empty inclusion interface prettier

* add tests for #4587

* linter fixes

* check for truthy value before reaching into property
2018-08-04 01:26:07 -07:00
kyle
dd3afdc456 fix: anchor tag safety (via #4789)
* v3.17.6

* release(3.17.6): rebuild dist

* add failing tests

* fix Link component

* fix OnlineValidatorBadge component

* switch from <a> to <Link> in operation components

* make Markdown inputs safe

* use Link component in Info block, for target safety

* add eslint rule for unsafe `target` usage
2018-08-04 00:54:03 -07:00
kyle
fe5b2344c7 fix: default to empty object for pathItems in updateJsonSpec wrap-action (#4785)
cc #4784
2018-08-02 20:34:51 -07:00
kyle
5431eed1cd release: v3.17.6
* v3.17.6

* release(3.17.6): rebuild dist
2018-07-27 20:43:43 -07:00
kyle
955352251b fix(try-it-out): stringify numerical initial values in ParameterRow (#4767)
* add failing tests
* coerce initial values to string
* only convert numbers to strings when setting parameter values
2018-07-27 01:17:36 -07:00
Yuanhai He
8cde08bd83 improvement: allow viewing model when Try-It-Out is enabled (via #4723) 2018-07-26 17:47:41 -07:00
kyle
8a86b2f9c3 dates are important 2018-07-19 15:48:01 -07:00
Kyle Shockey
0af67642ec v3.17.5 2018-07-19 15:34:17 -07:00
kyle
0359f9c364 housekeeping: bundle size reductions (#4713)
* set new bundlesize goal
* preserve `GeneratorFunction` instead of all function names
* use js-yaml fork that doesn't require esprima
* set HTML content directly, instead of using React-Markdown
* use remarkable for all Markdown rendering
* add babel-plugin-transform-react-remove-prop-types
* remove SplitPaneMode plugin
* remove react-collapse
* remove AST plugin, and yaml-js
* trim Markdown HTML string output before rendering
* disable obsolete function name preservation
* add `getComponent` to propTypes
2018-07-19 13:48:39 -07:00
geraldglynn
b9b4ab20af improvement: refactor Operation component structure (via #4686)
...into OperationSummary, OperationSummaryPath, OperationSummaryMethod
2018-07-17 20:37:36 -04:00
olevitt
17f6a55d58 Add http-server as a dev-dependency, need for serve-static. (#4728) 2018-07-17 18:52:46 -04:00
kyle
a3578fcafb v3.17.4 (#4731)
* v3.17.4
* rebuild dist
2018-07-14 03:44:47 -04:00
kyle
478d93ae08 Example (#4730)
* add tests for example feature
* refactor ParameterRow value setter logic
* aside: fix property access in sampleFromSchema
* prioritize media type examples for OAS3 responses
* use `example` in schema level example
* refactor: move stringify to utils
* prioritize media type examples in OAS3 request bodies
* modify nightwatch config
* fix parameter/response regressions
* reorder and broaden default value sources
* update lockfile
2018-07-14 03:09:37 -04:00
kyle
bbbd1b93cb fix: OAS3 array item value input (#4729)
* fix: OAS3 array item value input
* linter fixes
2018-07-14 02:12:00 -04:00
Yuanhai He
e70a054bd4 improvement: encode query string value for validator badge url (#4724)
* Encode query string value for validator badge url

* add tests
2018-07-13 14:44:10 -04:00
kyle
003d6b782d housekeeping: improve e2e stability (#4721) 2018-07-12 17:59:35 -07:00
Ron
59a6a9b20f Added anchors to configuration parameters (#4711)
This allows referencing a configuration parameter directly when responding to tickets or from within the documentation.
2018-07-11 13:04:56 -05:00
kyle
5b7e422d75 housekeeping: remove Q&A section from feature template (#4708) 2018-07-09 17:06:43 -05:00
kyle
9709df82d3 v3.17.3 (#4706)
* fix: handle formencoded array data correctly

* v3.17.3

* rebuild dist
2018-07-07 02:56:54 -05:00
kyle
4055f51b93 fix: support multimedia media types for file upload (#4705) 2018-07-07 02:36:48 -05:00
kyle
8f65483510 fix: handle urlencoded array data correctly + don't stringify non-object sample values (#4704)
* fix: handle urlencoded array data correctly

* fix: don't stringify non-object sample values

* fix linter
2018-07-07 02:30:40 -05:00
Markus Poerschke
875caab173 improvement: prevent loading resources from third party CDN (via #4598)
Remove usage of Google Fonts to avoid any data protection issue. Using a
CDN will leak data to a third party that can be simply avoided by using
system fonts instead.

Furthermore the usage of CDNs can cause legal issues in EU countries.
2018-07-05 21:55:25 -05:00
kyle
ef95d6e00c housekeeping: use bundlesize (#4701)
* housekeeping: use bundlesize

* evaluate bundle size after success
2018-07-05 14:33:16 -05:00
kyle
21b0037529 improvement: handle more invalid Swagger/OpenAPI version values gracefully (#4699)
* improvement: handle more invalid version values gracefully

* use source maps in Mocha tests

yields accurate stack trace line numbers
2018-07-05 12:23:36 -05:00
yshkk
3f06bb50fb fix: exchange function name of component Try-it-out (#4687) 2018-07-04 12:53:21 -05:00