Wesley Schwengle
e85b6f2837
fix(Docker) #6211 : Bug where SWAGGER_JSON is used without mount ( #6212 )
2020-07-16 18:18:56 -07:00
Tim Lai
2fd1e4037c
feat(RequestBody): validation support for required fields ( #6223 )
...
fixes #5181
* application/json
* application/xml
* application/x-www-form-urlencoded
* Set requestBodyValue values to be an immutable Map, as "value". Previously stored as a normal String.
* This enables adding "errors" to the Map, for validation use
* note: getOAS3RequiredRequestBodyContentType requires state.spec,
* which is not available to state.oas3
2020-07-16 17:53:28 -07:00
Tim Lai
b68942c043
feat(RequestBody): set default true for 'send empty value' ( #6228 )
2020-07-16 17:01:18 -07:00
Tim Lai
eacc7b92d1
Revert "revert: feat: Allow to skip submitting empty values in form data ( #5830 )" ( #6227 )
...
This reverts commit 1b6cb7d1bf .
2020-07-15 16:07:32 -07:00
Vladimir Gorej
1b6cb7d1bf
revert: feat: Allow to skip submitting empty values in form data ( #5830 )
...
This reverts commit b9b32c9c93 .
Refs #6203 #5830
2020-07-07 16:17:36 +02:00
Vladimir Gorej
e3b3bf03d4
build(bundle): use ES6 to import swagger-client symbols ( #6208 )
...
swagger-client in versions =3.10.9 exports it's build artifacts in multiple ways.
One artifact is exposed as ES5 compatible code with ES6 imports.
We use this fact to utilize webpack tree shaking algorithm.
This commit also updates swagger-client to v3.10.0
and decreases bundle size for around 10%.
2020-07-06 14:19:09 +02:00
Renovate Bot
f0f358bd8a
housekeeping(dev-deps): eslint-plugin-react@7.20.3
2020-07-04 13:43:06 +00:00
Renovate Bot
93784669bc
housekeeping(dev-deps): copy-webpack-plugin@6.0.3
2020-07-04 12:50:23 +00:00
Vladimir Gorej
95c3da19cc
refactor(swagger-client): fix import of helpers ( #6190 )
...
Import of helpers from swagger-client worked because of the fact
that commonjs exports are basically an objects that can be destructured.
Whenever swagger-client switches to ES6 imports as primary mechanism
of webpack consuptions imports like that will fail. This change makes
sure that import mechanism is both compatible with ES6 and commonjs
import systems.
Along with that rename default import of swagger-client
to more appropriate SwaggerClient.
2020-07-04 13:50:36 +02:00
Renovate Bot
75f3d7a9e7
housekeeping(dev-deps): babel monorepo@7.10.4
2020-07-04 10:35:45 +00:00
Vladimir Gorej
4f2e8ad7d1
build(webpack): move resolve alises to one common place
...
As resolving applies to everything and not just specific builds
the resolve.aliases have been moved to one common place.
2020-07-04 11:26:17 +02:00
swaggerhub-bot
3cef227368
chore(release): cut the v3.28.0 release
2020-06-29 12:43:36 +00:00
Vladimir Gorej
c30760cfe5
build(webpack): make sure we're not bundling same deps twice
...
As versions of libraries that are both used by swagger-js and swagger-ui
may diverge in time, we must use webpack resolve aliases to make sure
that only one version of these libraries gets bundled.
2020-06-29 14:19:38 +02:00
Renovate Bot
9420dc8293
housekeeping(dev-deps): eslint-plugin-react@7.20.1
2020-06-28 23:49:48 +00:00
Renovate Bot
575af214db
housekeeping(dev-deps): eslint-plugin-import@2.22.0
2020-06-27 08:01:32 +00:00
Vladimir Gorej
169c6b5431
build(release-it): configure proper release commit msg
2020-06-25 20:36:22 +02:00
Vladimir Gorej
43779bc5b3
chore(package): bump swagger-client to 3.10.9 version
2020-06-25 20:36:22 +02:00
Renovate Bot
cecb95afd6
housekeeping(dev-deps): autoprefixer@9.8.4
2020-06-24 10:45:51 +00:00
Tim Lai
a1589a679c
style: replace var with let in /test files ( #6164 )
2020-06-23 10:16:23 -07:00
Tim Lai
faae3e9d2c
style: fix indent spaces from 4 to 2 in test files ( #6163 )
2020-06-23 09:44:24 -07:00
Renovate Bot
e53d450cbc
housekeeping(dev-deps): autoprefixer@9.8.3
2020-06-23 15:49:58 +00:00
Vladimir
41e595beda
feat: Display nullable for object model itself ( #5660 ) ( #5868 )
2020-06-22 18:01:33 -07:00
geraldglynn
e1e4d5bf83
fix: render Common Extensions propertly in React 16 ( #5930 )
...
Avoid mapping Immutable.Map as React children.
Co-authored-by: Vladimir Gorej <vladimir.gorej@gmail.com >
Ref https://github.com/immutable-js/immutable-js/issues/667
2020-06-22 18:08:03 +02:00
geraldglynn
93020e2803
fix: avoid mapping Immutable.Map as React children ( #6165 )
...
Ref https://github.com/immutable-js/immutable-js/issues/667
2020-06-22 17:57:00 +02:00
Renovate Bot
c6f1c163fb
housekeeping(dev-deps): autoprefixer@9.8.2
2020-06-21 03:49:41 +00:00
Renovate Bot
468342f8dc
housekeeping(dev-deps): autoprefixer@9.8.1
2020-06-19 23:48:05 +00:00
Renovate Bot
32c88579f9
housekeeping(dev-deps): babel monorepo@7.10.3
2020-06-19 21:55:07 +00:00
swaggerhub-bot
091a9debfa
release: v3.27.0
2020-06-18 20:25:42 +00:00
Tim Lai
9ce2a9adca
housekeeping: update swagger-client v3.10.8 ( #6162 )
2020-06-18 13:07:22 -07:00
Tim Lai
b86e8e96dd
fix: curlify agnostic to order of header values ( #6152 )
...
Refs #6082
* use curlify flag isMultipartFormDataRequest
* curlify test updated
Co-authored-by: Vladimir Gorej <vladimir.gorej@gmail.com >
2020-06-18 12:34:52 -07:00
Helen Kosova
269543f82e
Fix: typo in a feature request template ( #6151 )
2020-06-18 11:12:33 -07:00
Renovate Bot
deb673cd4c
housekeeping(dev-deps): webpack-cli@3.3.12
2020-06-18 14:59:44 +00:00
Vladimir Gorej
63f94db4b3
chore(git): add chromedriver.log to ignores
2020-06-17 16:28:03 +02:00
Wesley Schwengle
bec0533d5c
Fix(Docker): case where SWAGGER_ROOT in conjunction with BASE_URL does not work ( #6147 )
2020-06-15 18:04:28 -07:00
Tim Lai
eeb0b7387f
fix: remove clipboard inline svg from a file with SASS ( #6148 )
...
* directly load data:image/svg+xml
* current webpack config only allows inline file via jsx
2020-06-15 17:55:40 -07:00
Alex Mayants
71d4e59505
improvement: Call DomPurify.addHook only if it exists ( #5428 )
...
On server-side execution `dompurify` exports factory function instead of
a purifier instance. Because of this, server-side code that imports
SwaggerUI (e.g. via `swagger-ui-react`) fails, since `DomPurify.addHook`
does not exist.
This affects universal rendering apps which share code
between client-side and server-side.
2020-06-15 15:37:52 -07:00
David DE CARVALHO
ca1b19a31b
feat: Display example value in Swagger ReadOnly documentation ( #4422 )
2020-06-15 15:23:28 -07:00
Aldrin Abastillas
973e1f7a9b
feat: Copy response to clipboard #4300 ( #5278 )
...
* Move next to download button and match styling
Co-authored-by: Aldrin Abastillas <AAbastillas@rcanalytics.com >
Co-authored-by: Tim Lai <timothy.lai@gmail.com >
2020-06-15 15:08:10 -07:00
blacktemplar
f8dd4e68ec
feat(model view): hide applicable readOnly and writeOnly properties ( #5832 )
2020-06-15 13:47:26 -07:00
geraldglynn
59bbe4ff2f
Added onLoad()s and tweaker onToggle() to support ScrollTo functionality for Models ( #5237 )
2020-06-15 13:04:14 -07:00
Tim Lai
b3fc05b3fe
fix: prevent CI trigger from docs/samples/webpack-getting-started ( #6145 )
...
* README updated
* renamed package.json to _sample_package.json
* removed package-lock.json
2020-06-15 12:54:43 -07:00
Shaun Luttin
75a2b9a5cc
Demonstrate a simple Webpack setup ( #5185 )
2020-06-15 11:20:08 -07:00
Renovate Bot
f3b253af1c
housekeeping(dev-deps): css-loader@3.6.0
2020-06-13 15:40:28 +00:00
Jordan Garside
bd1b297b56
feat(swagger-ui-react): add displayOperationId config support ( #5795 )
2020-06-12 14:28:42 -07:00
swaggerhub-bot
ae33deeaab
release: v3.26.2
2020-06-12 13:09:03 +00:00
swaggerhub-bot
9a0927b52c
release: v3.26.1
2020-06-11 21:31:19 +00:00
Vladimir Gorej
a616cb471d
fix(Markdown): render markdown in more secure way
...
This commit changes markdown sanitization behaviour in following way:
class, style and data-* attributes are removed by default. These attributes
open possible vulnerability vectors to attackers.
The original behavior of sanitizer (before this commit) can be enabled by *useUnsafeMarkdown* configuration option.
Use this configuration option with caution and only in cases when you know
what you're doing.
2020-06-11 21:51:15 +02:00
Gary Gale
48a0b46942
improvement: Make background SVGs consistent ( #5478 )
...
* Replace Base64 encoded SVGs with unencoded version. Replace partially URL encoded SVGs with unencoded version, removing extraneous LF character
2020-06-10 17:34:53 -07:00
tomdegoede
fc3ed30f3d
improvement: Move inline styles to SCSS instead ( #5578 )
...
* fix: convert propStyle to propClass
2020-06-10 16:39:48 -07:00
Wesley Schwengle
67627d7587
Remove max-width for textarea media < 768px ( #6014 )
...
Co-authored-by: Tim Lai <timothy.lai@gmail.com >
2020-06-10 16:20:35 -07:00