Commit Graph

424 Commits

Author SHA1 Message Date
swaggerhub-bot
77f4651cbf release: v3.23.11 2019-09-20 20:34:23 +00:00
swaggerhub-bot
c8ad396301 release: v3.23.10 2019-09-15 20:39:36 +00:00
kyle
f523ec40f0 housekeeping: reorganize and rewire Mocha tests (#5600)
* move Mocha-run tests to `test/mocha`

* fix relative paths

* fix JSX test paths

* update stagnated JSX tests

* `test/setup.js` -> `test/mocha/setup.js`

* use regex+globstar for test matching

* remove `console.log`
2019-09-10 21:26:21 -07:00
swaggerhub-bot
c3890c210c release: v3.23.9 2019-09-10 06:41:52 +00:00
swaggerhub-bot
7cae0d2bdf release: v3.23.8 2019-09-02 17:13:49 +00:00
swaggerhub-bot
7b737f607f release: v3.23.7 2019-09-01 01:02:50 +00:00
kyle
c9c3b2338e feature: support for Parameter.content (#5571)
* add `getParameterSchema` OAS helper

* use `Parameter.content.[firstKey].schema` as schema value when present

* `newValue` -> `initialValue`

* make `paramWithMeta` a const

* add trailing comma to `swagger2SchemaKeys`

* refactor `helpers` to a folder

* deprecate `src/core/utils.js` in favor of `src/core/helpers/`

* support `Parameter.content.[mediaType].schema` in validateParam

* reject `null` as an OAS3 object value

* expose Fetch errors in the browser console

* generate ParameterRow default values based on `content` values

* add tests for `getParameterSchema`

* remove debugger statement

* remove debugger statement

* don't apply `generatedSampleValue`s to parameters with `examples`

* remove extra semi

* disable JSON check in parameter runtime validation

* stringify JsonSchema_object textarea values

* add Cypress tests

* swagger-client@3.9.4
2019-08-31 16:37:43 -07:00
swaggerhub-bot
5e454feb33 release: v3.23.6 2019-08-24 02:30:24 +00:00
Renovate Bot
8f402f9319 housekeeping(dev-deps): mini-css-extract-plugin@^0.8.0 2019-08-23 12:32:47 +00:00
renovate[bot]
1793df64e8 housekeeping(deps): redux-immutable@3.1.0 (via #5484) 2019-08-20 15:52:53 -07:00
swaggerhub-bot
ac5a1c0718 release: v3.23.5 2019-08-10 08:29:11 +00:00
swaggerhub-bot
551007fe47 release: v3.23.4 2019-08-03 06:49:45 +00:00
kyle
877ee38ba1 housekeeping: non-breaking dependency updates (via #5515)
* non-breaking dependency updates

* eslint updates
2019-08-01 19:06:03 -07:00
kyle
2af696dcc1 housekeeping: @kyleshockey/js-yaml -> js-yaml (via #5511)
* `@kyleshockey/js-yaml` -> `js-yaml`

* externalize `esprima`
2019-07-31 14:45:18 -07:00
kyle
97260cf0e2 housekeeping: more npm audit resolutions (via #5509)
* move `@babel/runtime-corejs2` to production dependencies

* `npm audit fix`
2019-07-30 15:37:02 -07:00
swaggerhub-bot
fb47aa27d7 release: v3.23.3 2019-07-30 18:26:20 +00:00
kyle
4cab9e40fd fix: move @babel/runtime-corejs2 to production dependencies (via #5508) 2019-07-30 13:12:34 -05:00
swaggerhub-bot
7c1f9cee34 release: v3.23.2 2019-07-30 03:33:17 +00:00
renovate[bot]
09e24e4303 housekeeping(deps): deep-extend@0.6.0 (via #5483) 2019-07-19 17:59:58 -05:00
kyle
be5e057bfa housekeeping: npm audit resolutions (via #5457)
* add `security-audit` script

* npm audit fix

* remove nyc

* nightwatch@1

this breaks the test suite, but it appears to have already regressed. leaving it for another day, TODO: open a backlog ticket

* add `security-audit` script

* disable mocha exclusivity

* update package-lock.json

* cypress@3.4.0

* `npm audit fix`

* @release-it/conventional-changelog@1.1.0

* release-it@12
2019-07-18 22:02:24 -05:00
swaggerhub-bot
60397d6f43 release: v3.23.1 2019-07-13 06:20:17 +00:00
kyle
eaa1f4a8b4 bug: enum Select crashes when selecting the empty value (via #5463)
* add failing tests

* fix property access

* @babel/plugin-proposal-optional-chaining
2019-07-12 23:05:00 -05:00
Lars Kappert
747925330c housekeeping: migrate to release-it v11 (via #5335)
* housekeeping: migrate to release-it v11

* install `source-map-support`
2019-07-11 21:40:51 -05:00
kyle
88204daad8 housekeeping: upgrade to webpack@4 (via #5454)
* build new core webpack config

* fix exports in Webpack; use ESM syntax throughout

* add bundle config

* add standalone config

* add style config

* prettier...

* add dev config

* delete legacy webpack scripts

* rewire npm scripts to use new webpack configs

* cache babel-loader results

* fix e2e dev servers

* update core Webpack modules

* update loaders to latest

* remove unused loaders

* update Webpack plugins

* add mode flags to Webpack configs

* remove plugin invocations that are now production-standard in v4

* update webpack-cli

* add webpack perf size limit flags

* replace ExtractText with MiniCssExtract + IgnoreAssets

* UglifyJsPlugin -> TerserPlugin

* fix PostCSS processing

* enable Terser sourcemaps

* webpack/style -> webpack/stylesheets
2019-07-11 18:57:44 -05:00
kyle
9935ea3328 housekeeping: upgrade to babel@7 (via #5450)
* Babel 7

* preserve module output; straighten out ES/CJS syntax

* add webpack TODOs

* remove unused Babel modules

* Update index.js

* install @babel/register
2019-07-09 23:25:34 -05:00
dependabot[bot]
835d135049 housekeeping(deps-dev): bump open from 0.0.5 to 6.0.0 (via #5449) 2019-07-09 15:58:32 -05:00
kyle
21bb452cb7 housekeeping: address inconsistently truncated JS asset responses within Cypress tests (via #5445)
* add Cypress error trace

* Update package.json

* Update webpack-hot-dev-server.config.js

* Update index.js

* Update index.js
2019-07-08 00:19:40 -05:00
swaggerhub-bot
97b9c3e068 release: v3.23.0 2019-06-29 19:43:30 +00:00
kyle
23d7260f92 feat: Multiple Examples for OpenAPI 3 Parameters, Request Bodies, and Responses (via #5427)
* add opt-in Prettier config

* remove legacy `examples` implementation

* create ExamplesSelect

* support `Response.examples` in OpenAPI 3

* create response controls group

* prettier reformat

* prepare to break up Parameters

* reunify Parameters and OAS3 Parameters

* Parameter Examples

* Example component

* handle parameter value stringification correctly

* FOR REVIEW: add prop for controlling Select

* use regular header for param examples in Try-It-Out

* manage active examples member via Redux

* Request Body Try-It-Out examples

* remove special Response description styling

* omit Example value display in Try-It-Out

* support disabled text inputs in JsonSchemaForm

* Example.omitValue => Example.showValue

* ExamplesSelectValueRetainer

* styling for disabled inputs

* remove console.log

* support "Modified Values" in ExamplesSelect

* remove Examples component
(wasn't used anywhere)

* use ParameterRow.getParamKey for active examples member keying

* split-rendering of examples in ParameterRow

* send disabled prop to JsonSchemaForm

* use content type to key request body active examples members

* remove debugger

* rewire RequestBodyEditor to be a controlled component

REVIEW: does this have perf implications?

* trigger synthetic onSelect events in ExamplesSelect

* prettier updates

* remove outdated Examples usage in RequestBody

* don't handle examples changes in ESVR

* make RequestBodyEditor semi-controlled

* don't default to an empty Map for request bodies

* add namespaceKey to ESVR for state mgmt

* don't key RequestBody activeExampleKeys on media type

* tweak ESVR isModifiedValueSelected calculation

* add trace class to ExamplesSelect

* remove usage of ESVR.currentNamespace

* reset to first example if currentExampleKey is invalid

* add default values to RequestBody rendering

* stringify things in ESVR

* avoid null select value (silences React warning)

* detect user inputs that match any examples member's value

* add trace class for json-schema-array

* shallowly convert namespace state, to preserve Immutable stucts in state

* stringify RBE values; don't trim JSON in editor

* match user input to an example when non-primitives are expressed in state as strings

* update Cypress

* don't apply sample values in JsonSchema_Object

* support disabling all JsonSchemaForm subcomponents

* Core tests

* style changes to accomodate Examples

* fix version-checking error in Response

* disable SCU for Responses

* don't stringify Select values

* ModelExample: default to Model tab if no example is available; provide a default no example message

* don't trim JSON ParamBody inputs

* read directly from 2.0 Response.schema instead of inferring a value

* show current Example information in RequestBody

* show label for Examples dropdown by default

* rework Response content ordering

* style disabled textareas like other read-only blocks

* meta: fix sourcemaps

* refactor ESVR setNameForNamespace

* protect second half of ternary expession

* cypress: `select.examples-select` => `.examples-select > select`

* clarify ModelExample.componentWillReceiveProps

* add gates/defaults to prevent issues in very bare-boned documents

* fix test block organization problem

* simplify RequestBodyEditor interface

* linter fixes

* prettier updates

* use plugin system for new components

* move ME Cypress helpers to other file
2019-06-29 19:52:51 +01:00
swaggerhub-bot
57402ecdd8 release: v3.22.3 2019-06-08 18:14:11 +00:00
swaggerhub-bot
54c045fd47 release: v3.22.2 2019-05-22 01:36:53 +00:00
kyle
5628ff02f4 security: CVE-2018-20834 (via #5368)
* bump minimum `bundlesize` version

* bump `node-sass`

* bump webpack + webpack-dev-server; update lockfile
2019-05-21 17:17:14 -07:00
swaggerhub-bot
c38bf85e34 release: v3.22.1 2019-04-13 01:40:36 +00:00
kyle
b8f7da5623 release: v3.22.0 (via #5257) 2019-03-23 10:54:00 -07:00
Peter Goldthorp
1497271155 housekeeping: remove react-addons-perf dependency (via #5229)
* Remove react-addons-perf dependency

* update lockfile

* include ReactPerf in non-production builds
2019-03-14 17:36:49 -07:00
Helen Kosova
80625d0b8a housekeeping: bump minimum Cypress version (via #5233)
* Update Cypress version

* regenerate package-lock.json
2019-03-12 11:19:28 -07:00
swaggerhub-bot
b3a555f589 release: v3.21.0 2019-03-02 06:24:24 +00:00
swaggerhub-bot
bbaf4f06a3 release: v3.20.10 2019-03-02 05:31:20 +00:00
kyle
7025773fbf feature: swagger-ui-react module (via #5207)
* swagger-ui-react alpha.0

* alpha.1

* alpha.2

* alpha.3

* begin updating README

* alpha.4

* WIP: `displayOperationId` support

* move loading error readouts to BaseLayout

* add `url` prop

* export React component as default

* add interceptor support

* modify docs markup

* add `onComplete` prop

* add `spec` prop

* Update README.md

* alpha.6

* remove independent manifest; build releasable exclusively from template

* ensure dist is present; drop config field in manifest

* drop alpha field

this script is now able to release to npm!

* remove unused selector references

* Update README.md
2019-03-01 20:41:30 -08:00
swaggerhub-bot
080c70ae76 release: v3.20.9 2019-02-24 01:37:48 +00:00
swaggerhub-bot
85d82fc0a8 release: v3.20.8 2019-02-16 02:50:26 +00:00
Helder Sepulveda
3f0c0666ba housekeeping: bump minimum lodash version (via #5156)
* Update lodash

fix for Regular Expression Denial of Service:
https://snyk.io/vuln/SNYK-JS-LODASH-73639

* update lockfile
2019-02-12 17:29:56 -06:00
swaggerhub-bot
67c1e00d96 release: v3.20.7 2019-02-08 23:27:33 +00:00
swaggerhub-bot
ed8267af89 release: v3.20.6 2019-02-02 06:59:27 +00:00
Helder Sepulveda
be3500c299 housekeeping: address url-parse vulnerability (via #5130)
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/npm:url-parse:20180731
2019-01-18 18:43:55 -08:00
swaggerhub-bot
f69624bbed release: v3.20.5 2019-01-12 07:08:55 +00:00
swaggerhub-bot
738bddcf25 release: v3.20.4 2018-12-22 16:13:20 +00:00
swaggerhub-bot
441437d3ca release: v3.20.3 2018-12-15 03:04:15 +00:00
swaggerhub-bot
8512e742e7 release: v3.20.2 2018-12-07 19:57:38 +00:00
kyle
a5568f9e16 improve: OAuth2 UI and test suite (via #5066)
* create `features` folder

* add base oauth2 server

* continue implementing OAuth tests

* WIP

* add password flow tests

* modify Password flow credential types

* remove query string credential type

* add test case for Authorization flow

* add specific Authorization value for Password flow test

* WIP

* fix linter issues
2018-12-07 20:54:29 +01:00