Commit Graph
132 Commits
Author SHA1 Message Date
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
Damiano Albani c076a07092 Embellish "base URL" caption 2017-07-18 15:23:44 +02:00
Kyle Shockey 830bafe9dc Remove animated from Models collapse
This solves a stack overflow problem in Models->Collapse->Collapse->Motion.
2017-07-14 21:15:36 -07:00
Kyle Shockey 4c6b765fe0 Render external documentation description as Markdown 2017-07-14 18:21:43 -07:00
shockey 79cc31bd95 Merge branch 'master' into feature/2926-click-model-name-to-toggle 2017-07-14 17:46:33 -07:00
shockey cbe1680c6d Merge branch 'master' into bug/3078-newlines-in-markdown 2017-07-14 17:29:10 -07:00
shockey 6ec7006c21 Update markdown.jsx 2017-07-14 17:28:36 -07:00
shockey e77c980ae8 Merge branch 'master' into ft/2884-operation-deep-linking 2017-07-14 15:40:20 -07:00
Kyle Shockey 66cb3ff2c0 Use swagger-client opId helper to generate layout keys for operations 2017-07-14 03:17:57 -07:00
Kyle Shockey 556e40e6d4 Don't place fragment links if deep linking is disabled 2017-07-14 01:50:49 -07:00
Kyle Shockey 73845907a3 Add anchors for tags and operations 2017-07-14 01:13:30 -07:00
Kyle Shockey 41ecceed87 Rewire operation/tag DOM ids; implement hash scroll-to 2017-07-14 00:46:21 -07:00
Kyle Shockey 79f91b2e3e Rearrange isShownKey to make more sense
Tag then ID is closer to representing the underlying data structure
2017-07-14 00:19:02 -07:00
Kyle Shockey c051952081 Use operationIds from swagger-js if available, in layout triggers 2017-07-13 22:48:12 -07:00
shockey 2ae61e85b8 Update base.jsx 2017-07-13 22:00:16 -07:00
shockey d698aef1cd "Filter Operations" -> "Filter by tag" 2017-07-13 21:57:49 -07:00
Minasokoni 8b5c2cc409 moved filter search to layout 2017-07-13 21:48:20 -07:00
Kyle Shockey 66c8778a29 Remove obsolete prop from validation 2017-07-11 22:05:38 -07:00
Kyle Shockey 28f7a15fe9 Use state instead of component hand-down for managing filter 2017-07-11 21:54:56 -07:00
shockey 7cfc7cb4fc Merge branch 'master' into filter 2017-07-11 21:20:22 -07:00
Owen Conti bd31d3dedf Reimplemented changes after merge with master 2017-07-11 17:02:53 -06:00
shockey 025ec662c0 Merge branch 'master' into bug/3102-unguarded-expressions 2017-07-10 18:42:18 -07:00
Owen Conti 914b21f228 Revert back to the 'breaks' fix for newlines in markdown content 2017-07-10 19:23:18 -06:00
Owen Conti b11399a57e Revert original fix and implement fix from @1Map 2017-07-10 17:39:05 -06:00
Gwyn Judd c3f9c094d1 Added maxRows and filter support
Useful for the display of very large swagger specs. Can limit the number of operations to a smaller value and search
2017-07-11 09:38:20 +12:00
Owen Conti 5d9ab6a0a2 Fixes #3078 - Added breaks: true to Remarkable so newlines are rendered as line breaks. Remove margin-top from <p> tags within .model elements to fix the alignment in the model's description text. 2017-07-08 10:48:52 -06:00
Ron 3c5ad11d09 Merge branch 'master' into bug/3271-fix-trim-with-non-json-parameters 2017-07-07 15:10:49 -07:00
sharkpp ff41b30171 fixing Non-ascii character class name
Fixed to LATIN SMALL LETTER A because class name contained CYRILLIC
SMALL LETTER A.
2017-07-08 01:19:03 +09:00
Owen Conti c1ffd9ee08 Fixes #3271 - Only trim parameter values if the parameter's content type is JSON. Change default value of parameter inputs to be '{}' only if the parameter's content type is JSON 2017-07-06 19:54:10 -06:00
Owen Conti 6fd5839103 Fix PropTypes in model-collapse component 2017-07-03 16:27:47 -06:00
Owen Conti 15e105c931 Merge branch 'master' of github.com:swagger-api/swagger-ui into bug/3102-unguarded-expressions
# Conflicts:
#	src/core/components/model.jsx
#	src/core/components/models.jsx
2017-07-03 16:12:31 -06: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
shockey a69ed71f47 Merge branch 'master' into ft/3135-request-duration 2017-06-29 17:10:46 -07:00
shockey 07568aba3e Merge branch 'master' into bug/2947-model-display-for-non-objects 2017-06-29 15:49:40 -07:00
shockey 0a67efd964 Merge branch 'master' into bug/3136-operation-scheme-update 2017-06-29 15:39:11 -07:00
Kyle Shockey 3484b83d1f trigger setScheme when a new set of schemes come in 2017-06-29 13:22:58 -07:00
Owen Conti d27cae0085 Work on #3102. Moved all the components out of model.jsx into their own files so they can be grabbed via getComponent() 2017-06-28 22:07:07 -06:00
RVKen 86482f8458 Merge branch 'master' into webpack-migration-2.x
* master:
  #3110 - Fix models down arrow icon in firefox
2017-06-29 04:40:28 +02:00
RVKen d36f0a6dbd fix eslint issues 2017-06-29 04:37:19 +02:00
Owen Conti beb7999cb8 Merge branch 'master' of github.com:swagger-api/swagger-ui into bug/2947-model-display-for-non-objects 2017-06-28 18:06:32 -06:00
Owen Conti 8727754dd4 #3110 - Fix models down arrow icon in firefox 2017-06-27 20:56:48 -06:00
Owen Conti 0c6f5e8d32 Add displayRequestDuration configuration option. 2017-06-26 21:13:17 -06:00
Owen Conti fe60544ff7 Merge branch 'master' of github.com:swagger-api/swagger-ui into ft/3135-request-duration 2017-06-26 19:58:07 -06:00
shockey a2e6619544 Merge branch 'master' into bug/3256-example-value-fix 2017-06-26 17:23:36 -07:00
Owen Conti c67ae29e7a Merge branch 'master' of github.com:swagger-api/swagger-ui into bug/3072-error-response-fixes 2017-06-26 16:24:20 -06:00
Owen Conti cf63f9b9dd Fix for #2947 - Display property names for non-object models 2017-06-25 22:31:14 -06:00
Owen Conti de3046e29d #3256 - Remove unnecessary JSON.stringify call on example values that are already strings 2017-06-25 16:39:54 -06:00
Owen Conti b2d52e2629 Remove isRequired from ResponseBody's contentType property as responses without a Content-Type header will not have a value to pass 2017-06-25 16:10:14 -06:00
Owen Conti 789534c587 Bug fix for #3136 - Update state when scheme options change and previously selected option is no longer available 2017-06-25 15:51:07 -06:00