Irena Shaigorodsky
d7d166d0a4
fix: specify charset utf-8 in html script declaration ( #6278 )
...
ref: #5311
2020-07-31 16:51:17 -07:00
Tim Lai
22668ee8d3
fix(OAS3): servers component update on definition change ( #6280 )
...
* fix(OAS3): servers component should use nextProps
* test(OAS3): cypress tests for selecting multiple servers
* test(OAS3): multiple server test with definition change
2020-07-31 16:22:17 -07:00
Tim Lai
abcc3837e9
fix(requestInterceptor): use async/await to support return new Promise ( #6279 )
...
ref: #4778
2020-07-31 10:07:52 -07:00
swaggerhub-bot
752488edf7
chore(release): cut the v3.31.1 release
2020-07-30 18:09:18 +00:00
Tim Lai
7a6999b7f3
fix(swagger-ui-react): updated babel config file target ( #6277 )
2020-07-30 10:48:28 -07:00
swaggerhub-bot
9bae8fd78b
chore(release): cut the v3.31.0 release
2020-07-30 16:58:58 +00:00
Tim Lai
aebfcc091a
Tmkasun ft/5367 support passing presets and default models expand depth ( #6275 )
...
* feat(swagger-ui-react): support for presets and defaultModelsExpandDepth
Co-authored-by: Kasun Thennakoon <tmkasun@gmail.com >
2020-07-29 16:50:16 -07:00
Tim Lai
b99ebe7dd3
feat(swagger-ui-react): option for showMutatedRequest ( #6273 )
...
Co-authored-by: neel <neelima.sri.vathsavai@autodesk.com >
2020-07-29 16:11:20 -07:00
Helen Kosova
fd5a59a3fd
feat: Display minProperties an maxProperties for object schemas ( #6272 )
2020-07-29 14:06:24 -07:00
David Goss
cfede146ff
fix(style): make paths try to stay on single line in opblock ( #6243 )
2020-07-29 13:30:20 -07:00
Helen Kosova
4cbae095fc
fix(try-it-out): Better tooltips for min/max validations ( #6266 )
2020-07-28 17:10:40 -07:00
Helen Kosova
bd9117da8e
fix: Replace an inline styleswith propClass ( #6265 )
2020-07-28 16:58:57 -07:00
Helen Kosova
887563ab79
docs: Improve descriptions of syntaxHighlight parameters ( #6242 )
2020-07-28 16:46:25 -07:00
Tim Lai
14278e83dc
fix: use es2015 modules for react-syntax-highlighter ( #6246 )
2020-07-28 16:35:53 -07:00
Tim Lai
83a2b497b7
Merge housekeeping: update mocha with webpack env
2020-07-28 15:53:25 -07:00
Timothy Lai
85c40f16af
config(mocha): require 'esm' depedency
2020-07-28 13:37:07 -07:00
Timothy Lai
f0208e8f41
config(webpack): add env.test and replace .babelrc
...
* .babelrc replacement ref: https://babeljs.io/docs/en/config-files
2020-07-24 13:53:54 -07:00
Timothy Lai
e13bc29aad
config(mocha): create .mocharc config file
2020-07-24 13:53:54 -07:00
Timothy Lai
8c9b3c93a0
deps(mocha): update to mocha@7.2.0
2020-07-24 13:53:54 -07:00
Timothy Lai
eb4a9d54f7
deps(mocha): update to mocha 6.2.3 with security update
2020-07-24 13:53:54 -07:00
Timothy Lai
3cafd6086e
config(mocha): remove deprecated --compiler flag
2020-07-24 13:53:54 -07:00
swaggerhub-bot
d8521c1bc0
chore(release): cut the v3.30.2 release
2020-07-22 20:37:48 +00:00
Tim Lai
ba7aefecad
build(webpack): remove LodashModuleReplacementPlugin ( #6255 )
2020-07-22 13:05:26 -07:00
Timothy Lai
ea5b64bca3
build(webpack): remove LodashModuleReplacementPlugin
2020-07-22 12:40:30 -07:00
swaggerhub-bot
c654d08af8
chore(release): cut the v3.30.1 release
2020-07-21 19:36:10 +00:00
Tim Lai
60b411e8c0
build(webpack): enable lodash options ( #6248 )
2020-07-21 10:49:13 -07:00
Tim Lai
d12662e354
build(webpack): bundle size optimization for lodash ( #6244 )
...
* add duplicate code detection check for general purpose use
* webpack alias for lodash
* redux and react-redux dependency bump that removes lodash dependencies
* lodash version match with swagger-client and recent security update
* additional webpack config to help reduce build sizes
* restore max bundle size back to 1024000
2020-07-20 20:26:56 -07:00
Renovate Bot
cb16ba4e6a
housekeeping(dev-deps): autoprefixer@9.8.5
2020-07-17 23:45:28 +00:00
swaggerhub-bot
42dc02c6a2
chore(release): cut the v3.30.0 release
2020-07-17 22:50:30 +00:00
Tim Lai
a73783b73d
feat: syntax highlighting of code section ( #6236 )
...
Co-authored-by: AdrieanKhisbe <adriean.khisbe@live.fr >
2020-07-17 15:29:15 -07:00
renovate[bot]
9e294fbab5
housekeeping(deps): lodash@4.17.19 [security] ( #6230 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com >
2020-07-17 13:48:25 -07:00
swaggerhub-bot
9bca433ab2
chore(release): cut the v3.29.0 release
2020-07-17 02:37:48 +00:00
Tim Lai
251ea10d94
config: increase max bundle size to 1024 KiB ( #6231 )
2020-07-16 19:19:21 -07:00
renovate[bot]
8b54d5a63e
housekeeping(deps): swagger-client@3.10.12 ( #6216 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com >
Co-authored-by: Tim Lai <timothy.lai@gmail.com >
2020-07-16 18:28:00 -07:00
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