Commit Graph
3873 Commits
Author SHA1 Message Date
Kyle Shockey 4bdece6de1 normalize usage of ParameterRow onChange 2018-06-21 19:51:47 -07:00
Kyle Shockey 0707c6b01f use OrderedMap throughout hash-based selectors for consistency 2018-06-21 19:51:47 -07:00
Kyle Shockey a118ff60ab update invocations of changeParamByIdentity to match fn signature 2018-06-21 19:51:47 -07:00
Kyle Shockey bd55fab4db migrate usage of parameterWithMeta to parameterWithMetaByIdentity 2018-06-21 19:51:47 -07:00
Kyle Shockey a735bfae3b migrate changeParam usage to changeParamByIdentity 2018-06-21 19:51:47 -07:00
Kyle Shockey 5e4b6d346b add identity-based lookup support in spec selectors 2018-06-21 19:51:47 -07:00
Kyle Shockey 661b4aa4a2 add specActions.changeParamByIdentity 2018-06-21 19:51:47 -07:00
Kyle Shockey 6f4cad38ca allow param update by identity + hashed value storage 2018-06-21 19:51:47 -07:00
Ron 634615346d Merge pull request #4657 from swagger-api/oauth2-doc-updates
Doc updates
2018-06-16 14:16:50 -06:00
Ron 98d6128375 Doc updates 2018-06-16 14:08:42 -06:00
kyle 24faa4690f v3.17.1 (#4656)
* v3.17.1

* rebuild dist
v3.17.1
2018-06-16 00:43:19 -07:00
kyle 7c33ae9c49 housekeeping: update e2e selectors (#4655) 2018-06-15 22:38:13 -07:00
kyle bf77474a11 use HTTPS for Petstore by default (#4652) 2018-06-15 14:36:15 -07:00
Sofiia 8416b043ea housekeeping: factor out components for easier BaseLayout reuse (#4604)
* improve: wrap schemes to encapsulate rendering logic
* improve: wrap filter to encapsulate rendering logic
* improve: wrap info section to encapsulate rendering logic
* improve: wrap servers plugin to encapsulate rendering logic
* improve: added tests for schemes-wrapper rendering logic
* improve: added tests for info-wrapper rendering logic, also do not render info if info is undefined
* improve: added tests for filter rendering logic
* improve: added tests for servers-wrapper rendering logic
* `InfoWrapper` -> `InfoContainer`
* add `containers` alias to Babel configuration
* `SchemesWrapper` -> `SchemesContainer`
* drop `container` from container file names
* `ServersWrapper` -> `ServersContainer`
* `Filter` -> `FilterContainer`
* follow `core/containers` pattern in BasePreset
2018-06-14 19:06:20 -07:00
peng weikang 0eb591b78a Fix improper markdown (#4645)
escape `|`
2018-06-14 17:00:40 -07:00
kyle f53f92351e fix: sample generation for nested oject schemas (#4648) 2018-06-14 16:56:03 -07:00
Kenny John Jacob 3fa3e2d89d Update add-plugin.md (#4620)
Fixed some spacing
2018-06-11 16:53:18 -07:00
kyle a2015ee08b Revert "initial perf, which gets stripped out in production (#4131)" (#4636)
This reverts commit 5ea2150ae7.
2018-06-08 23:18:55 -07:00
Kenny John Jacob 8fd919eede Update system.js (#4626)
Fix typo
2018-06-08 16:08:11 -07:00
kyle f1cdb6a032 v3.17.0 (#4616)
* v3.17.0

* rebuild dist
v3.17.0
2018-06-01 21:31:19 -07:00
kyle a03c12786a feat(rendering): gate rendering based on valid version identifiers (#4614)
* create VersionPragmaFilter component

* use VersionPragmaFilter in BaseLayout

* tighten version idenitifier constraints

* handle case where user specifies a valid `swagger` and `openapi` field

* add traceable class names for each message

* add tests

* linter fixes!

* UNRELATED CHANGE: remove travis short-circuit

* add bypass switch to VersionPragmaFilter
2018-06-01 16:04:27 -07:00
kyle a51bf1ea3e fix(tio-params): disable empty values for required+enum booleans (#4615) 2018-06-01 15:46:44 -07:00
kyle 690e274e07 fix(try-it-out): initially unset required booleans (#4613) 2018-06-01 13:30:42 -07:00
masacc a2fee7ed58 [FIX] nested url option replacement when $API_URLS contains url: .*, pattern (#4601) 2018-06-01 13:24:22 -07:00
Josh Ponelat 90157c1a40 Refactor deep-linking, in the process extracted out OperationsTag (#4349)
* add configsActions.loaded hook

* add OperationTag to hold Operations

* fix test for operations

* refactor deep-linking plugin
2018-06-01 13:19:44 -07:00
Josh Ponelat 5ea2150ae7 initial perf, which gets stripped out in production (#4131) 2018-05-30 13:44:19 -07:00
kyle d91e4e84b8 docs: README touchups (#4606)
* docs: README touchups

* Update README.md
2018-05-29 11:53:21 -07:00
kyle 798cc88968 linter fixes (#4595)
* v3.16.0

* rebuild dist

* rework travis early-success trigger

* Linter fixes
v3.16.0
2018-05-26 01:14:09 -07:00
kyle 1214477117 travis updates (#4594)
* v3.16.0

* rebuild dist

* rework travis early-success trigger
2018-05-26 00:56:12 -07:00
kyle bacea7af8a v3.16.0 (#4593)
* v3.16.0

* rebuild dist
2018-05-26 00:36:08 -07:00
kyle 43304aa80a feat: OAS3 binary media type support (#4592)
* fix(validator-badge): resolve definition URLs against browser location

* use param as meta parameter if not found

* convert request body from Immutable if necessary

* show file upload for `format: binary` and `format: base64` jsonschema strings

* add `dispatchInitialValue` prop to JsonSchemaForm

* add optional subkey parameter to onChange

* add binary media type support to request body
2018-05-25 20:37:58 -07:00
kyle cdbd120589 build: exit early if only documentation is being updated (#4583) 2018-05-22 17:05:56 -07:00
Fritz 37001b38bb build(umd-module): prevent mangling (#4320)
* Prevent mangling of names in UMD distribution

This makes debugging easier in general.

* use `uglifyOptions`
2018-05-21 21:31:27 -07:00
kyle 32ab8b3ce8 fix(validator-badge): resolve definition URLs against browser location (#4580) 2018-05-21 21:03:56 -07:00
Rishabh Chakrabarti 6b3aba697e build(npm): add start script (#4572)
CHANGELOG:

1. Added `start` command to `package.json`
2. Assign server port to `3002`.

Ref : Github issue #4551
2018-05-21 20:44:32 -07:00
kyle aa22756641 V/3.15.0 (#4571)
* v3.15.0

* rebuild dist
v3.15.0
2018-05-19 00:38:16 -07:00
kyle 16bf8fb3be fix(docker-releases): trim leading v from image names (#4567)
Fixes #4497.
2018-05-17 16:24:14 -07:00
kyle bf5acc1f40 fix(topbar): remove href from Swagger logo (#4566)
Fixes #4527.

- this `href` didn't serve any visible or known purpose
- it was added before prior to 3.0.0 and has not been modified since
  - see UX 8ab65d3b
- the `Link` was kept, since the anchor was needed to preserve the current layout.
2018-05-17 16:00:26 -07:00
kyle c1007a287b feature: OAS3 object parameter support (#4563)
* render suitable interface for `type: object` parameters

* validate OAS3 object parameters correctly

* display parameter validation errors

* remove irrelevant css classes

* rm comment

* fix failing tests

* add validateParam tests

* add enzyme tests for object parameter rendering

* run actual tests first
2018-05-16 22:48:44 -07:00
kyle c8480a827a fix: respect OAS3 parameter default values (#4561)
* add test cases

* refactor default setters into own function

* reach into `schema` for default value in OAS3

* remove exclusive test
2018-05-16 00:27:14 -07:00
kyle 55fdeeb810 Issue template tweaks (#4520)
* MOAR issue templates

* ...LESS issue templates

* minor issue template tweaks
2018-05-14 21:03:00 -07:00
kyle 9e3a801750 v3.14.2 (#4548)
* v3.14.2

* rebuild dist

* constrict `eslint-plugin-react` version

https://github.com/yannickcr/eslint-plugin-react/issues/1789
v3.14.2
2018-05-12 00:05:49 -07:00
kyle 9155eb946e fix: always display locally-available title property as a model's name (#4542)
* fix: always display locally-available `title` property as a model's name
* fix failing unit test
* add e2e test case
2018-05-10 22:15:36 -07:00
maryscar 66e9bd735a fix: model property color contrast (#4540) 2018-05-10 16:19:59 -07:00
kyle ae849c31ea fix: remove outdated Safari check for Blob downloads (#4541) 2018-05-10 16:07:29 -07:00
Helder Sepulveda 1a95b9e9c9 New fixes for 1 vulnerable dependency (deep-extend) (#4507)
* fix: package.json to reduce vulnerabilities

The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/npm:lodash:20180130

Latest report for heldersepu/swagger-ui:
https://snyk.io/test/github/heldersepu/swagger-ui

* fix: package.json to reduce vulnerabilities

The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/npm:deep-extend:20180409

Latest report for heldersepu/swagger-ui:
https://snyk.io/test/github/heldersepu/swagger-ui
2018-05-07 23:00:00 -07:00
Brett Randall 073b1df730 Updated 'urls' (An array of API definition objects) description. (#4525)
* Updated 'urls' (An array of API definition objects) description.

Updated 'urls' (An array of API definition objects) description to show an actual object array containing two (2) urls, clarifying this configuration-option.

* urls is an array, not a string
2018-05-07 21:56:08 -07:00
kyle 11c586309f v3.14.1 (#4521)
* v3.14.1

* transform `const` & `let` to `var` in node_modules, for IE11

* rebuild dist
v3.14.1
2018-05-04 19:25:20 -07:00
kyle a37d637061 meta: multiple issue templates (#4519)
* MOAR issue templates

* ...LESS issue templates
2018-05-04 12:58:08 -07:00
kyle 75747424cf improvement: sanitization via DOMPurify (#4513)
* swap `sanitize-html` for `dompurify`

* set up node enzyme tests with jsdom

dompurify, as the name suggests, needs a DOM or it won't work!

* reconcile tests and sanitizer settings

* remove obsolete sanitizeOptions

* add `jsdom` dependency
2018-05-04 10:06:44 -07:00