blacktemplar
f8dd4e68ec
feat(model view): hide applicable readOnly and writeOnly properties ( #5832 )
2020-06-15 13:47:26 -07: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
tomdegoede
fc3ed30f3d
improvement: Move inline styles to SCSS instead ( #5578 )
...
* fix: convert propStyle to propClass
2020-06-10 16:39:48 -07:00
kyle
9155eb946e
fix: always display locally-available title property as a model's name ( #4542 )
...
* fix: always display locally-available `title` property as a model's name
* fix failing unit test
* add e2e test case
2018-05-10 22:15:36 -07:00
Helder Sepulveda
ad57f5a549
Add empty div ( #4236 )
...
if there are properties show an empty div
2018-03-08 17:46:21 -08:00
Kyle Shockey
9bad35ed85
Refactor specPath to Im data structures to avoid waste renders
2017-12-28 18:04:12 -06:00
kyle
a94c6c0e7f
Merge branch 'master' into feature/deeplink-zenscroll
2017-12-11 19:05:16 -08:00
kyle
bfb4c7a8d7
Merge branch 'master' into feature/spec-path
2017-12-07 16:49:34 -08:00
Josh Ponelat
3893cb4396
deep linking for models, operations and tags
2017-12-04 16:10:42 +02:00
Greg Thompson
91dab7b166
getConfigs prop expansion; limit extension render based on config setting
2017-11-09 10:22:41 -06:00
Josh Ponelat
29247869d9
add specPath to arrays
2017-11-03 17:50:46 +02:00
Greg Thompson
4b453e3535
use property component in array-model and primitive-model
2017-11-02 15:20:20 -05:00
kyle
44882700c2
Merge branch 'master' into array-model-markdown-description
2017-09-29 14:06:01 -07:00
Owen Conti
08282205aa
Fix property key: value alignment in array-model
2017-09-17 09:45:33 -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
Mark H. Wilkinson
d7424ff248
Array description should be processed as Markdown.
2017-08-07 12:33:15 +01:00
Owen Conti
d64dfc4252
Fixes #3500 - Fix missing names for primitive models
2017-08-01 20:46:41 -06:00
Owen Conti
ca937f4bdd
Add name fallback, fix name extraction from props
2017-07-21 20:13:12 -06:00
Scott O'Hara
c4409c58d8
Remove fallback to name for array model title ( Fixes #3424 )
2017-07-21 11:42:06 +10:00
Owen Conti
bd31d3dedf
Reimplemented changes after merge with master
2017-07-11 17:02:53 -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
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