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
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
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
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
kyle
e95588bd1f
improvement: gracefully render malformed and empty requestBodies (via #5208 )
2019-02-28 19:54:21 -08:00
kyle
0990aa82f2
improve: subtree resolver batch handling (via #5193 )
...
* fix: prevent subtree paths from being queued more than once in a batch
* fix: clear subtree resolver errors by current path
* drop `List` import
2019-02-25 14:33:10 -08:00
kyle
ff496fa5bd
fix: type safety for operation summary handling (via #5191 )
...
* fix: gracefully handle non-string operation summaries
* use lodash for more summary type safety
2019-02-23 17:00:29 -08:00
kyle
1e184e8e21
fix: sanitize URLs used for OAuth auth flow (via #5190 )
...
* fix: sanitize URLs used for OAuth auth flow
* embetter test case
* fix linter issue
2019-02-23 14:14:30 -08:00
kyle
d9f460f4a8
fix: gracefully handle non-string operation summaries (via #5189 )
2019-02-19 15:41:16 -08:00
kyle
291e2c7251
improvement: operation path + summary overflow styling (via #5184 )
...
* improvement: operation path + summary overflow styling
* inject zero-width spaces for better path breaking
* migrate 4867 regression test to tolerate new ZWSPs
* rm `dev-helpers/doc.yaml`
2019-02-15 20:05:26 -06:00
dalbrx-forcam
937c8f6208
improvement: set X-Requested-With to prevent browser authentication dialog (via #4934 )
2019-02-14 17:20:06 -06:00
kyle
373da3bee3
fix: provide JSON editor for x-www-form-urlencoded bodies lacking properties (via #5180 )
2019-02-13 18:47:01 -06:00
kyle
3434312cf7
housekeeping: corresponding changes for swagger-api/swagger-editor#1935 (via #5170 )
...
* `schema` -> `structural`
* drop strip-instance transformer
2019-02-08 17:16:18 -06:00
kyle
d3c2e2777f
fix: coerce multipart initial property values to string (via #5166 )
...
* coerce multipart initial property values to string
* add tests
2019-02-07 15:35:22 -06:00
Drew Freyling
48e4fb937d
housekeeping: losslessly crush PNG images with pingo (via #5158 )
2019-02-06 22:11:04 -06:00
kyle
15cdfe14dd
improvement: generate non-smart Markdown quotes (via #5162 )
2019-02-06 21:48:52 -06:00
kyle
0047ce96a8
fix: don't trigger url remote document load if urls is provided (via #5161 )
...
* fix: don't trigger `url` remote document load if `urls` is provided
* better test block title
2019-02-06 19:32:35 -06:00
kyle
b716ed2515
fix: gracefully handle malformed global tags array in taggedOperations selector (via #5159 )
...
* fix: handle malformed global tags array in taggedOperations
* handle non-array global tags as well
* update test imports
* remove stray brackets
2019-02-05 20:10:18 -06:00
kyle
abf34961e9
bug: parameter allowEmptyValue + required interactions (via #5142 )
...
* add failing tests
* standardize parameter keying
* validateParam test migrations
* migrate test cases to new pattern
* disambiguate name/in ordering in `body.body` test cases
* `name+in`=> `{in}.{name}`
* consider allowEmptyValue parameter inclusion in runtime validation
* use config object for all validateParam options
* drop isXml flag from validateParams
2019-01-29 16:46:03 -06:00
kyle
315819b2c9
fix: non-typesafe spec selector (via #5121 )
...
* add failing tests
* fix things
2019-01-12 00:58:20 -06:00
John Hart
babcfb6b39
improvement: support Markdown in header descriptions (via #5120 )
...
* Added markdown for header descriptions as per specifications:
https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#header-object
which subclasses:
https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md#parameterObject
https://swagger.io/specification/#headerObject
which subclasses
https://swagger.io/specification/#parameterObject
* update headers.jsx
* Update headers.jsx
Fixing test error due to the `description` variable having been removed
* Update headers.jsx
2019-01-11 18:24:21 -06:00
mirabilos
669ec1c081
improvement: add individual CSS classes to info items (via #5051 )
...
This makes it easier to style them individually or retrieve the
elements in user scripts.
2019-01-11 10:12:18 -06:00
Nurbol Makashov
e90fe9cfd7
improvement: show description fields in form-data request bodies (via #5073 )
2019-01-10 16:23:40 -06:00
Jun Kuriyama
45e7f44ee3
improvement: render request body description as Markdown (via #5078 )
2019-01-10 16:06:40 -06:00
kyle
1e8e0dba30
fix: tag-level deep link escaping inconsistencies (via #5117 )
...
* add test cases
* update tag deeplinking implementation
* MOAR test updates
* update operation-tag.jsx
2019-01-10 15:58:37 -06:00
kyle
2db63e2c08
fix: Immutable property access pattern (via #5112 )
2019-01-07 13:40:17 -06:00
kyle
3691d2b5dd
fix: only apply instance-strip transformer to schema errors (via #5110 )
2019-01-07 01:15:11 -06:00
kyle
655ef9e662
fix: urls.primaryName functionality regression (via #5097 )
...
* add tests
* compute index before triggering URL load
* bonus: improve urls topbar label
2018-12-21 23:51:58 -06:00
kyle
61b5ed79a0
improvement: generate default oauth2RedirectUrl based on page location (via #5085 )
2018-12-14 19:54:53 -07:00
kyle
9658aca08e
housekeeping: branding updates (via #5084 )
...
* new favicons
* lockfile
* update logo
* styling changes
* remove url-loader 10K limit
2018-12-14 18:52:54 -07:00
kyle
f5e179ac39
improvement: add Schema/Model switching to ModelExample component (via #5080 )
2018-12-13 21:28:01 +01: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
kyle
91b1becc65
fix: label models section as Schemas in OpenAPI 3 (via #5065 )
...
* fix: label models section `Schemas` in OpenAPI 3
* Update swos-63.js
2018-12-07 20:29:35 +01:00
kyle
b84a0fea04
fix: fall back to default configuration options in subtree resolver calls (via #5063 )
2018-12-07 16:04:33 +01:00
dersvenhesse
8bdf2933d5
improve: showing showing server description in dropdown (via #5015 )
...
* Showing server description in dropdown
* Slight syntax improvements
* use template strings and ` - `
2018-11-26 23:18:57 +01:00
Kristofer Wright
a40edea3f1
fix: only append type flag to curl if type is defined (via #5041 )
...
* issue 5040: only append type to formData file if defined
* errant whitespace removal:
* conform to code style
* code style
* use template string in nested type ternary operator
2018-11-24 00:22:42 +01:00
Sullivan SENECHAL
88e2c9af54
fix: apply css only on first child label and span for section header (via #4970 )
2018-11-24 00:16:49 +01:00
kyle
971c6f7536
fix: path-item $ref produces/consumes inheritance (via #5049 )
...
* implement a selector for consumes options
* fix incorrect comment, test names
* add `consumesOptionsFor` selector
* use `consumesOptionsFor` and drop `operationConsumes`
2018-11-23 23:24:11 +01:00
João Abecasis
2977c93840
improvement: hide Servers/Schemes/Authorize section when it's empty (via #4950 )
2018-11-21 03:06:26 +01:00
kyle
074eaa5d51
fix: prevent object inheritance mutations in recursive sampleXmlFromSchema calls (via #5034 )
...
* fix: prevent object inheritance mutations in recursive sampleXmlFromSchema calls
* fix unrelated test
2018-11-16 21:02:23 +01:00
Helen Kosova
89868a85bb
feat: sample value generation for uuid, hostname, ipv4, & ipv6 formats (via #5033 )
2018-11-16 13:22:42 +01:00
Jeremy Hayes
078bca3566
feat: sample value generation for date formats (via #5024 )
2018-11-16 00:49:23 +01:00
Steven Aerts
0fd35603e6
fix: resolve referenced securitySchemes (via #5028 )
2018-11-16 00:21:01 +01:00
Jennifer Kaplan
aec4e378ce
housekeeping: remove Topbar CWM & unneeded empty lines (via #5018 )
...
* removed componentWillMount and removed unneeded empty lines
* saved file again
2018-11-12 14:28:28 +01:00
kyle
ad786b023f
housekeeping: .js -> .jsx file extensions (via #5014 )
...
* housekeeping: `.js` -> `.jsx` where necessary
2018-11-08 16:37:21 +00:00
kyle
b9300211bb
housekeeping: xml -> @kyleshockey/xml (via #4985 )
2018-11-01 14:33:05 -04:00
kyle
3df9fad68a
improve: deeplinking behavior ( #4960 )
...
* add passing tests for fragment rewriting
* add failing fragment retention tests
* fire legacy `show` actions before standard ones
* skip failing tests
* remove extra line
2018-10-19 17:33:30 -05:00