Vladimír Gorej
b7f533174a
fix(security): allow more strict CSP for SVG assets ( #9209 )
...
Refs #7540
2023-09-14 12:34:13 +02:00
Vladimír Gorej
edd1153723
feat: expose plugins and presets on SwaggerUI global symbol ( #9189 )
...
Part of this commit is also:
- complete plugins consolidation
- complete presets consolidation
- build system consolidation
Refs #9188
2023-09-05 09:56:51 +02:00
Enzzo
44e2700c74
fix: decode model schema name on model component ( #8400 )
...
Refs #5626
2023-03-13 11:59:44 +01:00
blacktemplar
f8dd4e68ec
feat(model view): hide applicable readOnly and writeOnly properties ( #5832 )
2020-06-15 13:47:26 -07:00
tomdegoede
fc3ed30f3d
improvement: Move inline styles to SCSS instead ( #5578 )
...
* fix: convert propStyle to propClass
2020-06-10 16:39:48 -07:00
Tim Lai
20d5c225c2
bug: expected PropType in Model ImmutablePureComponent should be a map instead of OrderedMap ( #5921 )
2020-03-16 14:02:37 -07:00
geraldglynn
58d48f7e1a
improvement: OAS3 $ref friendly-name regex in model.jsx (via #5334 )
2019-05-01 18:46:11 -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
kyle
ba1603a7e2
improve: lazy resolver ( #4253 )
...
* default to empty `ImmutableMap` when grabbing op metadata
* pass `errors` into JsonSchema components
* Account for Immutable data structure in JavaScriptonSchema...
...and create empty Lists instead of Maps by default.
* Pass ImmutableList through to JsonSchema child components
* Add lazy resolving spec state extensions
* TEMPORARY: disable conventional resolved spec
* WIP
* Use resolveSubtree in Operation display
* Freebie: short-circuit Markdown component if it is given plaintext
* NEW DEFAULT BEHAVIOR: `defaultModelsExpandDepth: 1` does not expand individual models
* Render faked Model expander to trigger resolution
* Baseline support for Editor lifecycles
* Display operation summaries before the operation is resolved
* Test migrations
* WIP
* Swagger2 TIO Body params
* a bit of cleanup
* Debounce string param inputs
* Reach into unresolved operation for deprecated flag, if available
* Fire subtree request outside of render
* Remove debugging flags
* Fix logical errors in spec statePlugins
* TODOs become TODONEs!
* Migrate deeplinking feature to non-resolved spec action
* ESLint fixes
* Reduce action dispatch volume; run resolver on next tick
* Batch resolver requests; use batch progressive results in later iterations
* Add loading states to Model and Operation views
* Preserve object order; remove dupl. import; add warning for action
* LINTER!
* Use require to load SVG
Works around Webpack weirdness
2018-02-23 22:25:28 -08:00
Kyle Shockey
9bad35ed85
Refactor specPath to Im data structures to avoid waste renders
2017-12-28 18:04:12 -06:00
kyle
bfb4c7a8d7
Merge branch 'master' into feature/spec-path
2017-12-07 16:49:34 -08:00
kyle
40f8481127
Merge branch 'master' into ft/3052-extensions
2017-11-22 22:16:21 -08:00
Kyle Shockey
44d9234971
Don't treat not as an array (in contrast to allOf, anyOf)
2017-11-21 14:08:55 -08:00
Greg Thompson
91dab7b166
getConfigs prop expansion; limit extension render based on config setting
2017-11-09 10:22:41 -06:00
Kyle Shockey
8b8c9b744d
Make Model a PureComponent
2017-11-07 20:12:19 -08:00
Josh Ponelat
91d4ab96d7
partial specPath changes
2017-11-03 17:50:46 +02: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
Owen Conti
fb5443601e
Fixes #3505 - Choose modelName before name in Model component
2017-08-02 17:39:56 -06: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
Kyle Shockey
2173900c82
Remove console.log
2017-07-28 17:52:02 -07:00
Kyle Shockey
9c31b14731
Resolve model names in OAS3 ( fixes #3457 )
2017-07-28 12:12:12 -07:00
Owen Conti
a18c100d3f
Reimplemented fixes after merge with master
2017-07-17 18:46:29 -06:00
Kyle Shockey
189f048e91
Stashed: move anyOf/oneOf/not into core
2017-07-05 15:18:50 -07:00
Kyle Shockey
4e80e292b2
Merge branch 'master' into ft/oas3
2017-07-04 23:50:00 -07: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
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
d36f0a6dbd
fix eslint issues
2017-06-29 04:37:19 +02:00
Owen Conti
cf63f9b9dd
Fix for #2947 - Display property names for non-object models
2017-06-25 22:31:14 -06:00
Kyle Shockey
e3ae1eebfe
MOAR rendering (improve media type detection; render object model
...
nullables)
2017-06-16 14:23:09 -07:00
shockey
99600df0f1
Merge branch 'master' into fix-model-markdown
2017-06-16 13:52:32 -07:00
sokol
acff34e1d4
#2946 Fix CR fix
2017-06-16 21:14:00 +03:00
sokol
129129be97
#2946 Fix
2017-06-16 18:16:46 +03:00
Kyle Shockey
541f3e99b2
Tweak deprecated display
2017-06-16 01:44:44 -07:00
Kyle Shockey
e415ec7f8a
Add schema object deprecation display
2017-06-14 00:59:36 -07:00
Mark H. Wilkinson
c24a07c523
Render primitive property descriptions as Markdown.
2017-06-13 17:15:59 +01:00
Mark H. Wilkinson
db57ee0dfe
Render object descriptions as Markdown.
2017-06-13 17:13:33 +01:00
Kyle Shockey
032c0a027f
Basic request body
2017-05-26 00:24:53 -07:00
Anna Bodnia
5be1ae582c
fix #2807
2017-04-04 15:07:34 +03:00
Anna Bodnia
d2e20a72f0
fixes #2795
2017-03-31 18:35:52 +03:00
Kyle Shockey
e1fcbfbf09
Linter error fixes
2017-03-23 16:36:45 -07:00
Ron
f22a628934
in with the new
2017-03-17 21:17:53 -07:00