Owen Conti
ef99b7e434
Remove it.only from new test
2017-09-12 23:09:21 -06:00
Owen Conti
cb88cd53b6
Added test for response.jsx to make sure properties are passed to ModelExample component in the correct order
2017-09-12 23:07:11 -06:00
Kyle Shockey
5bc096d32b
Fit linter and tests
2017-09-08 18:44:11 -07:00
Mike Gilbode
087ed20384
Add support for requestInterceptor / responseInterceptor.
...
- Display mutated requests from request interceptor in curl output in UI.
Put this behind showMutatedRequest flag so that the mutation can be
silent.
- Document requestInterceptor, responseInterceptor and showMutatedRequest
in README.md
- Add tests
2017-08-13 01:14:41 -04:00
Kyle
e67af44a19
Merge branch 'master' into bug/3447-write-only
2017-08-10 18:40:30 -07:00
Kyle
73f17ddf63
Merge branch 'master' into bug/3555-multipart-curl
2017-08-10 18:30:28 -07:00
Kyle Shockey
168e203040
Use hash for body in formData tests
...
I couldn't find any instances of body being an array when testing
formData with real specs... I think this was a mistake.
2017-08-10 18:27:03 -07:00
Kyle
c5f5eff900
Merge branch 'master' into bug/3447-write-only
2017-08-10 17:16:51 -07:00
Kyle Shockey
049e227c3c
Add small comment to test
2017-08-09 17:44:36 -07:00
Kyle Shockey
b7a3f10f64
Remove it.only
2017-08-09 17:35:56 -07:00
Kyle Shockey
9747559529
operationScheme -> currentScheme
2017-08-09 17:35:33 -07:00
Kyle Shockey
9dee2daa14
Fix global state issues with Schemes component
2017-08-09 17:06:48 -07:00
Kyle Shockey
ed6a4fffb9
initialize mainPage variable (for linter)
2017-08-08 18:10:33 -07:00
Kyle Shockey
49bb139736
1.json -> petstore.json
2017-08-08 18:03:54 -07:00
Kenny
543d34d009
write the test in multiple files
2017-08-08 14:08:21 -07:00
Kenny
c7af68b06d
Rehydrate test code
2017-08-04 11:19:02 -07:00
Kyle Shockey
9af5d2dc66
Add writeOnly support to sampleFromSchema; add tests for the same
2017-08-03 17:23:16 -07:00
Kyle Shockey
37f9d5aa29
Add tests
2017-08-03 17:13:58 -07:00
Kenny
c38ba45aa0
Fix base url.
2017-08-02 12:39:09 -07:00
Kenny
b7bbead9c7
Merge branch 'master' into issue-1334
...
# Conflicts:
# .gitignore
# make-webpack-config.js
2017-08-02 20:14:03 +02:00
Kenny
3e212655ae
add some test
2017-08-01 09:33:17 -07:00
Kenny
144c8b2eee
finish overall test
2017-08-01 09:32:31 -07:00
Kenny
dbe3c3194f
writing mock data test for pet
2017-07-31 08:09:16 -07:00
shockey
84f6653fcf
Merge branch 'master' into ft/oas3
2017-07-28 19:58:38 -07:00
Kyle Shockey
b373182afe
ESLint fixes
2017-07-28 19:47:46 -07:00
Kyle Shockey
f7018bc78f
Merge branch 'master' of github.com:swagger-api/swagger-ui into ft/oas3
2017-07-28 19:13:24 -07:00
Kenny
0e552c2116
Write test for UI
2017-07-25 14:42:39 -07:00
Owen Conti
f570ffcd82
Reimplemented changes from PR #3427 . Added fix for validating request bodies.
2017-07-24 18:46:30 -06:00
Owen Conti
87e7142f1f
Revert "Update parameter <select> elements to render 'invalid' classes. Add '.invalid' CSS for <select> elements. Rework validateParam() function. Added .btn-sm class for "Add item" and "Remove item" buttons in array parameters. Reduce border-width on <select> elements inside parameters. Update tests for utils.validateParam()."
...
This reverts commit 666e22f989 .
2017-07-24 18:26:09 -06:00
Kyle Shockey
5c70134f53
Revert "Merge pull request #3427 from owenconti/bug/3414-validate-params-reworked"
...
Reopens #3414
This reverts commit 99d368673b , reversing
changes made to 8bf9037bbc .
2017-07-24 13:07:12 -07:00
shockey
e64e438948
Merge branch 'master' into bug/3405-default-scheme-change
2017-07-21 19:13:26 -07:00
shockey
10f12c287e
Merge branch 'master' into fix-orderedmap-length
2017-07-21 19:07:36 -07:00
Owen Conti
666e22f989
Update parameter <select> elements to render 'invalid' classes. Add '.invalid' CSS for <select> elements. Rework validateParam() function. Added .btn-sm class for "Add item" and "Remove item" buttons in array parameters. Reduce border-width on <select> elements inside parameters. Update tests for utils.validateParam().
2017-07-20 21:33:57 -06:00
Leon Weidauer
25c63b5f76
Fix length issue in OrderedMaps
...
Previously, a definiton with a 'length' property with numeric value
would result in an OrderedMap of that length.
This is now fixed and covered by tests
2017-07-20 12:01:00 +02:00
shockey
3d79fcf79f
Merge branch 'master' into bug/3405-default-scheme-change
2017-07-18 21:40:34 -07:00
Kyle Shockey
6a48e43ca5
Delete path translator tests
2017-07-18 20:42:46 -07:00
Owen Conti
2c35ba2c8f
Fixes #3405 - Changed logic for schemes.jsx component to select default scheme when there is no selected scheme. Added test for functionality.
2017-07-18 19:58:02 -06:00
shockey
ec33480c25
Merge branch 'master' into bug/3361-non-required-integers
2017-07-14 15:41:40 -07:00
Owen Conti
991ae66b39
Fixes #3375 - Change order of logic for selecting requestContentType to prioritize consumes_value first
2017-07-12 19:56:11 -06:00
Kenny
143c8e44df
Modify test running script, rewrite some test based on local son
2017-07-12 05:51:00 -07:00
Owen Conti
6beaaca6e6
Fixes #3361 - Check for null and undefined values in validateParam
2017-07-10 19:46:32 -06:00
RVKen
ee2f9d0a01
take out bin files from the repo
2017-07-07 10:10:25 +02:00
RVKen
9e8007398a
mock api
2017-07-07 09:47:39 +02:00
Kyle Shockey
4e80e292b2
Merge branch 'master' into ft/oas3
2017-07-04 23:50:00 -07:00
Owen Conti
551a5a81a1
Fix test for falsy values
2017-07-04 16:48:23 -06:00
Owen Conti
dd1b87e3d7
Fixes #3309 - Add same styles as regular input elements to file inputs. Add test for validating file type.
2017-07-03 18:04:49 -06:00
RVKen
a3249f0d6f
Merge branch 'master' into issue-1334
...
* master: (50 commits)
update NoErrorsPlugin to NoEmitOnErrorsPlugin
Undo change to `swagger-client` dependency
trigger setScheme when a new set of schemes come in
fix eslint issues
pin yams version
update dist
revert dependencies
minify bundle css
migrate webpack to v2.6.1
#3110 - Fix models down arrow icon in firefox
Fixes #3299 - export validateNumber and validateInteger for easy reuse and testing. Broke validateParam required check onto multiple lines. Added tests for validateNumber, validateInteger, and validateParam
Improve README with more information about `urls`
Rename variable: "selectedName" -> "primaryName"
"name" -> "urls.primaryName"
Update selectedIndex when a new URL is loaded
Use select value to avoid react warning
Properly added name config Now access it through getConfigs Documented it in README
Add displayRequestDuration configuration option.
Fix for #2947 - Display property names for non-object models
#3256 - Remove unnecessary JSON.stringify call on example values that are already strings
...
# Conflicts:
# dist/swagger-ui-bundle.js
# dist/swagger-ui-bundle.js.map
# dist/swagger-ui-standalone-preset.js
# dist/swagger-ui-standalone-preset.js.map
# dist/swagger-ui.css
# dist/swagger-ui.css.map
# dist/swagger-ui.js
# dist/swagger-ui.js.map
# make-webpack-config.js
# package.json
# webpack-dist.config.js
# webpack-hot-dev-server.config.js
2017-06-30 23:24:43 +02:00
shockey
b72aa3a7c8
Merge branch 'master' into webpack-migration-2.x
2017-06-29 18:23:36 -07:00
shockey
afaa5619bb
Merge branch 'master' into bug/3072-error-response-fixes
2017-06-29 17:20:09 -07:00
RVKen
d36f0a6dbd
fix eslint issues
2017-06-29 04:37:19 +02:00