Commit Graph

4098 Commits

Author SHA1 Message Date
renovate[bot]
408e6092f9 housekeeping(deps): update nginx docker tag to v1.17 (via #5485) 2019-08-22 22:11:37 -07:00
kyle
156cc0ae16 housekeeping: MOAR badges (via #5494)
* MOAR badges

* Update README.md

* Update README.md

* Update README.md
2019-08-22 21:54:37 -07:00
silverwind
f5a3d8854d fix: React warning related to "true" used as boolean (via #5497)
This should fix this warning seen in the console when using `swagger-ui-react`:

```
Warning: Received the string `true` for the boolean attribute `readOnly`. Although this works, it will not work as expected if you pass the string "false". Did you mean readOnly={true}?
    in textarea (created by Curl)
    in div (created by Curl)
    in div (created by Curl)
    in Curl (created by LiveResponse)
    in div (created by LiveResponse)
    in LiveResponse (created by Responses)
```

I did not test this change because it's trivial and there is no behavioural change here, React treats non-empty string attributes as `true`.
2019-08-22 21:27:58 -07:00
thierrydallacroce
0b3489b52d fix: remove .col class that causes collision with Bootstrap (via #5541)
* improvement: address Bootstrap conflict by removing our .col class (#4574)

* use `.parameters-col_description` selector in Cypress tests
2019-08-20 19:51:45 -07:00
renovate[bot]
1793df64e8 housekeeping(deps): redux-immutable@3.1.0 (via #5484) 2019-08-20 15:52:53 -07:00
kyle
098cfac7e8 housekeeping: copy Jenkins release flags to .release-it.json (via #5529) 2019-08-13 18:08:32 -07:00
swaggerhub-bot
ac5a1c0718 release: v3.23.5 2019-08-10 08:29:11 +00:00
kyle
c27a613647 fix: remove problematic Markdown optimization (via #5520) 2019-08-06 21:17:16 -07:00
Ryan Stephen
1b0efbeb16 Grammar syntax correction (#5512)
Tense correction and clarity on line 44.
2019-08-06 16:50:45 -06: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
c2058b9127 housekeeping: create .github/SECURITY.md (via #5514) 2019-08-01 17:31:25 -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
renovate[bot]
5346512602 housekeeping(dev-deps): babel monorepo@7.5.5 (via #5487)
* housekeeping(dev-deps): babel monorepo@7.5.5

* Update renovate.json
2019-07-30 14:40:29 -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
kyle
39f8ceba55 fix: empty ModelExample rendering in a Response w/o content (via #5504)
* add failing test

* use falsy notSetValue for oas3SchemaForContentType
2019-07-29 22:15:19 -05:00
kyle
e895fb544f fix: use null as a notSetValue for examplesForMediaType (via #5503)
* fix: use null as a notSetValue for examplesForMediaType

fixes #5455

* tests!
2019-07-29 21:44:14 -05:00
Jonathan Parrilla
f53e611071 Merge pull request #5476 from ctron/feature/non_root_1
Allow this to run in a non-root enviroment
2019-07-29 19:07:10 +01:00
Jens Reimann
e435122e5e Allow this to run in a non-root enviroment 2019-07-23 11:37:59 +02:00
renovate[bot]
09e24e4303 housekeeping(deps): deep-extend@0.6.0 (via #5483) 2019-07-19 17:59:58 -05:00
renovate[bot]
f73260bc5f housekeeping: configure Renovate (via #5481)
* chore(deps): add renovate.json

* Update renovate.json

* Update renovate.json

* Update renovate.json

* Update renovate.json

* Update renovate.json

* Update renovate.json

* Update renovate.json

* Update renovate.json

* Update renovate.json

* Update renovate.json

* Update renovate.json

* Update renovate.json
2019-07-19 12:48:11 -05:00
Helen Kosova
8822a7229a Change Swagger-UI -> Swagger UI in docs (#5479)
* Change Swagger-UI -> Swagger UI in docs

* Changed back to SwaggerUI in places that refer to JS construct
2019-07-19 09:22:45 -06: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
kyle
d542f98530 housekeeping(flavor-react): point babel to root .babelrc (via #5467) 2019-07-18 19:25:26 -05:00
kyle
47b992f51c housekeeping: fail React flavor release if a step fails (via #5466)
* housekeeping: fail React flavor release if a step fails

* Update run.sh
2019-07-13 02:13:26 -05:00
swaggerhub-bot
60397d6f43 release: v3.23.1 2019-07-13 06:20:17 +00:00
kyle
a9493a27be fix: Swagger 2.0 Response.examples, again (via #5465)
* fix: Swagger 2.0 `Response.examples`

* stringify results
2019-07-13 01:01:57 -05:00
kyle
9749a47853 fix: Swagger 2.0 Response.examples (via #5464) 2019-07-13 00:25:43 -05: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
9f10ab1d65 housekeeping: cypress standalone failures (via #5446)
* webpack.dist-style.config.js -> webpack-dist-style.config.js

* correctly generate stylesheets in dev server

* attempt to recover from missing StandalonePlugin in Cypress runner
2019-07-08 01:15:26 -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
Rody-Kirwan
17ba2c6170 housekeeping: refactor color variable names and values (via #5420)
* housekeeping: update color variable names and values (via #5337)

* Update operation colors, abstracted colors from element specific variables

* Removed colors.scss

* Typo 

* Undefined var fix

* revert operation color changes (for now)

* fix whitespace
2019-07-03 15:27:56 -05:00
kyle
daf680c695 housekeeping: silence lock bot for initial wave of actions (#5439)
* housekeeping: silence lock bot for initial wave of actions

* Update lock.yml
2019-07-02 09:34:20 -05:00
kyle
9ea7fd9878 housekeeping: use double newline in lock message (via #5438) 2019-07-01 19:57:38 -04:00
kyle
60eb7e2526 housekeeping add configuration for Lock Threads bot (via #5437)
* Create lock.yml

* add trace label to locked issues
2019-07-01 17:26:43 -04: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
Jonathan Parrilla
332ddaedcd Merge pull request #5407 from swagger-api/badgetest
Adding Jenkins Build Badge to Master
2019-06-17 11:03:43 -04:00
Jonathan Parrilla
f7c132965c Update README.md 2019-06-17 10:55:07 -04:00
Jonathan Parrilla
d3de58aced Update README.md 2019-06-17 10:51:34 -04:00
Jonathan Parrilla
fbf501b406 Update README.md 2019-06-17 10:50:49 -04:00
Jonathan Parrilla
04236f9710 Update README.md 2019-06-17 10:50:01 -04:00
Jonathan Parrilla
22247dbd1e Update README.md 2019-06-17 10:45:30 -04:00