Commit Graph

4169 Commits

Author SHA1 Message Date
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
Jonathan Parrilla
adb5a5b4d0 Update README.md 2019-06-17 10:44:24 -04:00
Jonathan Parrilla
6a384ce4f0 Update README.md 2019-06-17 10:43:59 -04: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
geraldglynn
5d25a0b690 improvement: add isShown check to <ModelCollapse />'s prop expanded logic (via #5331) 2019-05-15 20:45:07 -07:00
M-Vainauskas
96c444e81e improvement: relax schema description styling so Markdown can be effective (via #5340) 2019-05-15 20:34:48 -07:00
geraldglynn
58d48f7e1a improvement: OAS3 $ref friendly-name regex in model.jsx (via #5334) 2019-05-01 18:46:11 -07:00
swaggerhub-bot
c38bf85e34 release: v3.22.1 2019-04-13 01:40:36 +00:00
kyle
7e277142de housekeeping: force release-it to base version bumps on package manifest (via #5301) 2019-04-12 18:19:48 -07:00
swaggerhub-bot
4152241d7b release: v3.22.0 2019-04-13 01:07:48 +00:00
kyle
0c04c1cdec housekeeping: allow overriding swagger-ui-react version` (via #5300)
...by setting the `REACT_FLAVOR_VERSION_IDENTIFIER` env var
2019-04-12 17:40:46 -07:00
kyle
1dd87ce26e fix: refuse to render non-string Markdown field values (via #5295) 2019-04-10 16:04:33 -07:00
Alan Wessman
f50bbecc38 improve: error message when rendering XML example (via #5253)
The original message gave no clues as to the underlying cause, which is that the element name needs to be specified explicitly (using xml/name) if it can't be determined from a $ref.
2019-04-09 17:17:36 -07:00
kyle
98610f88a6 housekeeping: make release note generator more flexible (via #5266) 2019-03-26 14:51:01 -07:00
swaggerhub-bot
c07877b40c dummy: empty commit from Jenkins 2019-03-25 20:32:19 +00:00
kyle
b8f7da5623 release: v3.22.0 (via #5257) 2019-03-23 10:54:00 -07:00
kyle
4da33052a2 feat: dummy commit for minor version bump (via #5256)
in be72c29, I mistakenly wrote `feature` instead of `feat`, which isn't in line with Angular commit conventions.
2019-03-23 01:12:04 -07:00
Segev Finer
be72c292ca feature: add withCredentials configuration key (via #5149)
* Add the withCredentials configuration key

It enables passing credentials in CORS requests. e.g. Cookies and
Authorization headers.

* Improve withCredentials documentation

* Add unit tests for the withCredentials config

* Update configuration.md

* Update configuration.md

* only set `withCredentials` Fetch flag if the config value is truthy

there are some workarounds in the wild today that involve setting `withCredentials` on `system.fn.fetch` directly. 

this approach avoids mangling those existing workarounds!

* add more test cases

* Update configs-wrap-actions.js

* Update index.js
2019-03-20 12:36:08 -07:00
Laurence Hudson
38def57c2d improvement: expose docExpansion as a prop in swagger-ui-react (via #5242)
* improvement: expose docExpansion setting as a prop in swagger-ui-react

* Update README.md

* Update index.js

* Update README.md

* Update README.md
2019-03-19 19:04:34 -07:00
flacki
1a629886d6 housekeeping: fix typo in README (via #5246) 2019-03-19 11:38:37 -07:00
Glen Schrader
ccf17e90e2 improvement: expose system object in swagger-ui-react's onComplete callback (via #5221)
* expose swagger object so it can be controlled in the onComplete function

* docs: swagger-ui-react onComplete system argument
2019-03-14 19:29:40 -07:00
Brian Johnson
65e8abde55 improvement: support GFM table syntax in OpenAPI 3.0 (via #5224) 2019-03-14 17:58:02 -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
Zhang Yi Jiang
c6d1cc9c72 fix: Markdown styling nits and inconsistencies (via #5235)
* bug: fix pre styles for block code

* bug: Fix badge padding

* create Markdown-specific stylesheet
2019-03-14 16:51: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
kyle
604c7b420f fix: generate gzipped Docker assets at runtime (via #5219) 2019-03-05 15:49:45 -08:00
swaggerhub-bot
b3a555f589 release: v3.21.0 2019-03-02 06:24:24 +00:00
kyle
c901457281 feat(dummy-commit): trigger minor version release (via #5211) 2019-03-01 22:17:15 -08:00