Kyle Shockey
7c917325f0
Linter fixes
2017-10-20 19:31:52 -07:00
kyle
6d22e38a04
Merge branch 'master' into ft/oas3-authorization
2017-10-20 19:07:38 -07:00
Kyle Shockey
631e69f6f8
Pass parameter.schema as schema in OAS 3.0
...
Parameters were restructured in OAS 3.0; schemas are no longer at
the top level of parameters. Adjusting to account for the change.
2017-10-20 16:01:26 -07:00
Kyle Shockey
c9674a1fc5
Refactor Auths component flow; create component that supports HTTP auths
2017-10-18 21:23:28 -07:00
Mark H. Wilkinson
e1a7af4c92
Fix regression with rendering links in Markdown.
2017-10-16 14:40:07 +01:00
Kyle Shockey
d677e534c3
WIP
2017-10-13 21:23:45 -07:00
Kyle Shockey
8b81bcac48
OAS3 Auth MVP
2017-10-11 16:58:24 -07:00
kyle
f32492b4ee
Merge branch 'master' into bug/3730-empty-body-responses
2017-10-10 17:44:58 -07:00
Owen Conti
60e8091eed
Add unit test for images in markdown
2017-10-08 10:26:32 -06:00
Owen Conti
ec76e512e2
Fixes #3730
...
Add extra check for missing response content and contentType
2017-10-08 09:38:08 -06:00
Owen Conti
729fd71546
Fixes #3734
...
Add <h1> and <h2> elements to sanitizer options.
2017-10-08 09:09:29 -06:00
kyle
ac634c61ce
Merge branch 'master' into feature/request-url
2017-09-29 14:38:42 -07:00
kyle
44882700c2
Merge branch 'master' into array-model-markdown-description
2017-09-29 14:06:01 -07:00
kyle
263f6feb2f
Merge branch 'master' into ft/default_model_rendering
2017-09-29 13:29:04 -07:00
kyle
ef9fe9d755
Merge branch 'master' into bug/swagger-editor-1502
2017-09-29 12:16:01 -07:00
kyle
4f1a8abd0d
Merge branch 'master' into bug/3706-enum-param
2017-09-27 19:48:37 -07:00
Owen Conti
590819ad9b
Fixes swagger-editor/#1502.
...
Change logic for markdown rendering to:
1. Convert source markdown to HTML
2. Sanitize HTML
3. Send sanitized HTML to markdown renderer
2017-09-27 18:05:12 -06:00
Elvin Lemmens
ca1a0fa544
Apply conditions for generating download link correctly
...
Invalid application of AND/OR statements prevented file downloads of other types than application/octet-stream from generating a download link
2017-09-27 12:34:46 +02:00
Owen Conti
31e7ce0c5e
Fixes #3706
...
Add missing "in" argument to `getParameter`
2017-09-25 21:26:44 -06:00
Owen Conti
fd00a0489a
Remove shouldComponentUpdate from parameter-row component. It will be put back in eventually as part of the performance optimizations once the parameter components are converted to the smart/dumb approach.
2017-09-23 13:10:09 -06:00
Owen Conti
a1758da87c
Merge branch 'master' into bug/3511-query-formData-parameters
2017-09-20 22:37:43 -06:00
kyle
deebe1f840
Merge branch 'master' into bug/3638-61338ref-in-examples
2017-09-20 17:36:57 -07:00
Kyle Shockey
69941a6d9a
Remove $$ref values from response examples
2017-09-20 17:34:23 -07:00
Kyle Shockey
b0a580bdc1
Display Tag descriptions as Markdown
2017-09-20 16:55:45 -07:00
Owen Conti
7ef8a7ddc7
Merge branch 'master' of github.com:swagger-api/swagger-ui into bug/3511-query-formData-parameters
...
# Conflicts:
# src/core/components/parameter-row.jsx
# src/core/plugins/spec/actions.js
2017-09-18 16:59:08 -06:00
Owen Conti
44ece46cd3
Fixes #3633
...
Make sure PrimitiveModel uses the schema's title first and then falls back to the passed-in `name` property. Added enzyme test for functionality.
2017-09-17 09:49:13 -06:00
Owen Conti
08282205aa
Fix property key: value alignment in array-model
2017-09-17 09:45:33 -06:00
Kyle Shockey
ef8b37a580
LINTING!
2017-09-15 20:17:35 -07:00
Kyle
fa312cb70d
Merge branch 'master' into bug/oas3-accept-controls
2017-09-15 20:11:20 -07:00
Owen Conti
a6e070ac76
Replace spaces with underscores when setting the hash value and inserting the ID into the DOM. Escape the deep link path when querying for the DOM element on hash change.
2017-09-13 21:32:46 -06:00
Owen Conti
16364fb81e
Merge branch 'master' of github.com:swagger-api/swagger-ui into bug/3596-permalink-encoding
2017-09-13 17:25:38 -06:00
Owen Conti
430e2a970f
Fixes #3596
...
Wrap `isShownKey` values in a function that replaces spaces with underscores. When parsing the hash on route change, replace the spaces in the values with underscores again.
2017-09-13 17:20:37 -06:00
Owen Conti
cade5100e0
Merge branch 'master' of github.com:swagger-api/swagger-ui into bug/3032-wrong-properties-order
2017-09-12 23:07:36 -06:00
Owen Conti
a47cc284f7
Update response.jsx to use already existing, fromJSOrdered function
2017-09-12 23:06:24 -06:00
Kyle Shockey
277cc81a8c
OAS3 Accept header control: State-side
2017-09-12 19:39:52 -07:00
Kyle Shockey
26edaa5f0b
OAS3 Accept header control: Component-side
2017-09-12 17:22:51 -07:00
Owen Conti
7cd42992f2
Merge branch 'master' of github.com:swagger-api/swagger-ui
2017-09-12 17:14:39 -06:00
Owen Conti
408e038b2d
fromJS does not maintain order of object properties. Use a reviver function with fromJS inside the response.jsx component for the passed down schema prop.
2017-09-11 20:28:58 -06:00
Ron
b9be09709a
Merge branch 'master' into feature/request-url
2017-09-11 05:05:08 -07:00
Owen Conti
3f04d2dfc6
Merge branch 'master' into bug/3490-anyOf-oneOf-not
2017-09-09 13:56:22 -06:00
Owen Conti
12c96e3190
Add comment to array-model for to clarify change. Rework logic in Model.render() to fix bug with overriding name and schema from $ref definition.
2017-09-09 13:51:09 -06:00
Owen Conti
e9f46e6f5e
Working on refactoring of model.jsx
2017-09-08 17:59:41 -06:00
Owen Conti
3b9940567b
Fix property names being displayed in array models
2017-09-07 18:28:38 -06:00
Kyle Shockey
7a2c7d2cdc
Squash commit: OAS3 Try-It-Out changes
2017-09-05 13:59:31 -07:00
Mike Gilbode
d7ae284a0c
Add defaultModelRendering parameter.
2017-08-30 23:30:57 -04:00
Kyle Shockey
5da3843281
Refactor: use ternary operators at attribute level instead of element level
2017-08-25 12:06:11 -07:00
Surya
f7efd58305
Removed href attribute from anchor tag if deeplinking is disabled
2017-08-25 23:43:56 +05:30
Kyle Shockey
a6944a279c
Remove getComponent call for RequestUrl
2017-08-21 17:21:48 -07:00
Kyle Shockey
39450f7364
Merge branch 'feature/request-url' of https://github.com/dalbani/swagger-ui into dalbani-feature/request-url
2017-08-21 17:19:17 -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