Roman Hotsiy
84ab95ddc7
fix: make schema layout more responsive on small screen ( #1411 )
2020-10-13 16:21:36 +03:00
Anna Stasiuk
146b38c9d0
fix: make samples accessible by keyboard ( #1401 )
...
* fix: make samples accessible by keyboard
* chore: set outline-width and padding to collapser
2020-10-13 14:56:03 +03:00
Roman Hotsiy
a5468fb7bb
fix: fix displaying top-level object without any properties
2020-09-24 14:04:57 +03:00
Anna Stasiuk
f3e8ab4f8e
fix: fix displaying response title ( #1376 )
2020-09-08 16:14:39 +03:00
Anna Stasiuk
a6b41aa00b
fix: show long pattern and add toggle button ( #1375 )
2020-09-07 12:53:30 +03:00
Anna Stasiuk
c801b87d2a
fix: display response code at the top after adding a line break ( #1374 )
...
* fix: display response code at the top after adding a line break
* chore: rename component from Strong to Code
2020-09-03 14:18:42 +03:00
Roman Hotsiy
be07197e6d
fix: invalid discriminator dropdown behaviour with enum
2020-08-24 12:03:44 +03:00
Anna Stasiuk
46eee7b70c
fix: make callbacks expandable by keyboard ( #1354 )
2020-08-20 17:06:55 +03:00
James Harris
fed9a061d5
fix: scale sideMenu labels according to computed font size ( #1356 )
2020-08-20 16:43:12 +03:00
Anna Stasiuk
7e7d95fe18
chore: export dropdown components ( #1351 )
2020-08-18 13:11:13 +03:00
Anna Stasiuk
41f81b4d96
feat: add webhooks support ( #1304 )
2020-08-14 16:33:25 +03:00
Anna Stasiuk
171711f79c
chore: export parameters and example components ( #1347 )
...
* chore: export parameters and example components
* chore: export OpenAPIEncoding interface
2020-08-14 12:24:22 +03:00
Anna Stasiuk
2ce71895bc
fix: make elements accessible by keyboard navigation tools ( #1339 )
...
* fix: make api endpoint selectable
* fix: make response schema details selectable
* fix: update react-dropdown-aria to make dropdowns selectable
2020-08-04 12:19:01 +03:00
Roman Hotsiy
9fe8a4b685
chore: fix eslint errors
2020-07-25 20:15:14 +03:00
Oleksiy Kachynskyy
de27ac0308
fix: update EnumValues component ( #1324 )
2020-07-24 10:15:36 +03:00
Oleksiy Kachynskyy
14e7db9403
feat: add maxDisplayedEnumValues config and buttons for show/hide enums ( #1322 )
2020-07-21 16:54:17 +03:00
Roman Hotsiy
371f3dfc4e
chore: fix tests
2020-07-13 11:29:53 +03:00
Anya Stasiuk
30a27c116b
fix: update focus styling
2020-07-13 11:29:53 +03:00
Anya Stasiuk
3d25005f08
fix: make endpoint dropdown accessible
2020-07-13 11:29:53 +03:00
Anya Stasiuk
e8a0d105ca
fix: make dropdowns accessible by keyboard
2020-07-13 11:29:53 +03:00
Anya Stasiuk
006031c517
fix: make sample controls focusable
2020-07-13 11:29:53 +03:00
Anya Stasiuk
05fd7543a2
fix: make properties focusable
2020-07-13 11:29:53 +03:00
Anya Stasiuk
442014c06d
fix: make response sections focusable
2020-07-13 11:29:53 +03:00
Moshe Eshel
644e96ae45
feat: array size info based on min max Items properties ( #1308 )
2020-06-27 18:45:00 +03:00
Anna Stasiuk
2ede22c45c
fix: do not display long regexps ( #1295 )
2020-06-09 13:36:43 +03:00
Roman Hotsiy
c69f6de4c9
chore: remove global Dict<T> and replace it with Record<string, T>
2020-05-25 16:37:45 +03:00
Roman Hotsiy
6e607b9a29
fix: do not crash on incompatible allOf, console.warn instead
...
fixes #1156
2020-05-10 21:59:53 +03:00
Roman Hotsiy
b59faada82
fix: download button opens in new tab instead of downloading
...
fixes #1247
2020-05-09 14:54:13 +03:00
Oleksiy Kachynskyy
57e93ec435
feat: add callbacks support ( #1224 )
...
Co-authored-by: Jonathan Bailey <jonathan_bailey@bose.com>
Co-authored-by: Roman Hotsiy <gotsijroman@gmail.com>
2020-04-08 14:04:58 +03:00
Roman Hotsiy
a0bd27c754
fix: improve names for some theme settings
2020-03-27 18:35:07 +02:00
Oleksiy Kachynskyy
830371b5d1
fix: do not collapse top level on Collapse All in json samples ( #1209 )
...
* fix: update collapseAll method
to avoid collapsing whole object/array
* fix: remove extra "slice()" call
2020-03-20 15:05:07 +02:00
Roman Hotsiy
11377c903c
chore: fix ts error, use name but cannot be named
2020-03-17 13:41:55 +02:00
Roman Hotsiy
7ba3de2e28
chore: fix lint issues
2020-03-17 13:18:23 +02:00
Roman Hotsiy
54eb2a0dce
chore: prettier all
2020-03-17 12:01:32 +02:00
Roman Hotsiy
6fd6da0c37
chore: fix tslint and tests
2020-03-16 19:15:40 +02:00
Roman Hotsiy
8c053cc474
fix: fix major search performance due to wrong marker element
...
fixes #1109
2020-03-16 16:58:38 +02:00
Roman Hotsiy
7608800d0a
feat: new option expandSingleSchemaField
2020-03-16 16:58:28 +02:00
Faheem Abrar
373f018d0c
fix: Add debounce for 300 ms when searching ( #1089 )
...
Co-authored-by: Roman Hotsiy <gotsijroman@gmail.com>
2020-03-16 16:01:21 +02:00
Roman Hotsiy
1a2a7dd833
fix: fix broken sticky sidebar in Chrome 80
...
fixes #1167
2020-02-09 20:59:17 +07:00
Anna Stasiuk
41a9b3c182
fix: use mobile menu background color value from theme ( #1144 )
2019-12-16 11:59:22 +02:00
Roman Hotsiy
1bf490c05b
fix: search-box use theme
2019-12-13 11:29:12 +02:00
Roman Hotsiy
448b1b48c8
chore: refactor request samples
2019-12-12 18:37:47 +02:00
Roman Hotsiy
11cc4c4c3e
feat: new option hideSchemaTitles
2019-12-12 17:32:03 +02:00
Roman Hotsiy
7ed1a7ef0e
fix: h2 padding on mobile
...
fixes #1118
2019-12-12 17:32:02 +02:00
Roman Hotsiy
4bb59d5d4d
chore: upgrade deps
2019-12-12 17:32:02 +02:00
Roman Hotsiy
6aeb0bf68d
fix: do not URI-encode parameter values for better readability
...
fixes #1138
2019-12-12 17:32:02 +02:00
Chris Faulkner
42696a01ba
doc: fix some typos ( #1117 )
2019-12-10 08:13:37 +02:00
torbenw
289c8e6ae1
fix: change the title of "Security Scheme Type" to match "HTTP Authorization Scheme" ( #1126 )
2019-12-10 08:04:42 +02:00
Roman Hotsiy
0a01e9a080
fix: active menu item scroll into view
2019-10-16 16:07:42 +03:00
russellrobinson
b5af71da5f
fix: no quotes for default values in header fields. ( #1059 )
2019-10-16 16:01:54 +03:00
Roman Hotsiy
d09c1c1086
fix: fix scrollYOffset when SSR
2019-09-30 14:39:58 +03:00
Roman Hotsiy
e318fb3381
fix: remove excessive whitespace between md sections on small screens
...
fixes #874
2019-09-30 13:10:35 +03:00
Roman Hotsiy
e787d9e276
fix: do not crash on empty scopes
...
fixes #1044
2019-09-30 12:56:09 +03:00
Antherkiv
0360dcee5a
feat: new option expandDefaultServerVariables ( #1014 )
...
Recover server expanding default variables
This reverts commit 7849f7f6b7
.
2019-09-30 09:39:19 +02:00
Roman Hotsiy
21258a5b61
fix: fix scrollYOffset when SSR
2019-09-30 10:31:18 +03:00
Anya Stasiuk
7849f7f6b7
fix: revert expanding default server variables
2019-08-07 11:41:50 +03:00
Roman Hotsiy
1367380a88
fix: support json serialization for parameter examples
...
fixes #934
2019-08-01 11:20:44 +03:00
Roman Hotsiy
2afc2e4921
fix: unify accordion icons for responses section
...
fixes #975
2019-08-01 10:41:13 +03:00
Roman Hotsiy
bfbb0c1787
fix: enum list doesn't wrap
...
fixes #993
2019-08-01 10:32:11 +03:00
Roman Hotsiy
cb5c19781c
chore: add more exports
2019-07-30 19:53:47 +03:00
Roman Hotsiy
1504ade0e2
chore: add docs
2019-07-29 17:33:22 +03:00
Roman Hotsiy
bfd703d2da
Merge branch 'master' into update/toggleMenuItem
2019-07-29 17:30:26 +03:00
Roman Hotsiy
2588160d7c
chore: refactor
2019-07-29 17:29:32 +03:00
Roman Hotsiy
ac41f0bde5
feat: menu items from tags + md extension for Schema Definition ( #681 )
...
* add section menus for tags and object description
* bundle and test
* add depth calculation
* add object descriptions to test
* enable operations spacing for operations as well
* bring back section rule, as this could be solved better
* update read/writeonly filter rule to be able to filter both
* add showReadOnly and showWriteOnly options to object-description
* update demo to show use cases
* remove forgotten console.log
* adjust demo test with newly added items
* do the right match with the menu items :/
* chore: refactor + jsxify md tags
* chore: simplify demo spec
* fix: dropdown fixes related to object description
2019-07-29 17:17:16 +03:00
Roman Hotsiy
9bf45d810e
chore: rename ObjectDescription to SchemaDefinition
2019-07-29 17:14:39 +03:00
Aleksandr Karo
d3f1c1677c
feat: add sampleCollapseLevel option ( #937 )
...
* feat: add sampleCollapseLevel option
* fix: rename sampleCollapseLevel option to jsonSampleExpandLevel
Change README.md description
* fix: provide maxCollapseLevel option via argument
* fix: rename normalizer function and some vars
2019-07-29 15:26:16 +03:00
Roman Hotsiy
0504ad4b76
fix: dropdown fixes related to object description
2019-07-29 15:14:39 +03:00
Roman Hotsiy
00a0abf4a4
chore: refactor + jsxify md tags
2019-07-29 13:19:22 +03:00
Dimitar Nanov
413e1fad5b
remove forgotten console.log
2019-07-29 13:19:21 +03:00
Dimitar Nanov
6935b16964
add showReadOnly and showWriteOnly options to object-description
2019-07-29 13:19:21 +03:00
Dimitar Nanov
a8f70377ab
update read/writeonly filter rule to be able to filter both
2019-07-29 13:19:21 +03:00
Dimitar Nanov
5addc21cd8
bring back section rule, as this could be solved better
2019-07-29 13:19:21 +03:00
Dimitar Nanov
2f34b8ebaf
enable operations spacing for operations as well
2019-07-29 13:19:21 +03:00
Dimitar Nanov
ffb70d2db2
bundle and test
2019-07-29 13:18:51 +03:00
Dimitar Nanov
4359724434
add section menus for tags and object description
2019-07-29 13:17:59 +03:00
Anna Stasiuk
7db7d4fc91
chore: refactor expandServerVariables function ( #978 )
2019-07-29 13:08:17 +03:00
Anna Stasiuk
afc7e36cf8
feat: Add option for skipping quotes in enums enumSkipQuotes
( #968 )
...
* feat: add option for skipping enum quotes
* chore: move enumSkipQuotes
2019-07-15 11:14:48 +03:00
leoliu
2f80394e3c
add an option for menu toggle
2019-07-11 17:25:13 +08:00
Roman Hotsiy
45c0c23c73
chore: prettier all
2019-07-07 23:34:09 +03:00
Roman Hotsiy
84e03e2d07
chore: prettier + export
2019-07-07 23:33:46 +03:00
Roman Hotsiy
f52d9e875b
fix: markdown in examples descriptions + minor ui tweaks
2019-07-07 21:28:19 +03:00
Anya Stasiuk
995e557d6d
fix: organize response examples in dropdown and display description
2019-07-07 21:28:19 +03:00
Roman Hotsiy
4bd499f0e9
fix: hide empty example when it is not defined
2019-07-07 19:43:31 +03:00
leoliu
65ccebd9e2
update: collapse active MenuItem if clicked
2019-07-04 11:41:31 +08:00
Mathias Schreck
39392869f4
fix: serialize parameter example values according to the spec ( #917 )
2019-06-20 16:44:02 +03:00
Roman Hotsiy
d78029a04e
chore: move repo to Redocly org
2019-06-04 15:47:22 +03:00
Roman Hotsiy
f29a4fe2ee
fix: fix regression double slashes added to full URL display
2019-05-13 23:23:37 +03:00
Roman Hotsiy
81896d32b8
fix: fix logo gutter bg
2019-05-13 12:18:15 +03:00
Roman Hotsiy
4c59628e14
fix: fix logo gutter bg
2019-05-13 12:16:54 +03:00
Roman Hotsiy
3f6765078e
chore: fix react keys warning
2019-05-13 12:06:26 +03:00
Roman Hotsiy
3a74b745b1
fix: broken schema talbes with long enums
2019-05-13 09:50:51 +03:00
Roman Hotsiy
b0e660eca0
feat: basic UI labels configuration
...
This can be used for translations later
2019-05-12 23:18:17 +03:00
Roman Hotsiy
5297fdf01a
chore: minor refactor of example values
2019-05-12 23:17:26 +03:00
Roman Hotsiy
4550e4d61f
feat: add hideSingleRequestSampleTab option
2019-05-12 23:17:26 +03:00
Cédric Fabianski
35df477388
fix: update apiKey in to be titleize ( #902 )
2019-05-12 22:34:10 +03:00
Anto
64453ff6cd
fix: remove query string from server URL ( #895 )
2019-05-12 22:10:49 +03:00
Jon Nicholson
5c915906c8
fix: clean up field values display ( #855 )
2019-05-12 22:07:50 +03:00
Anya Stasiuk
82c0cb1a3c
add logo gutter
2019-04-08 17:42:30 +03:00
Cédric Bertolini
851b1337cb
fix: change fontFamily for EndpointInfo ( #866 )
2019-03-27 22:16:11 +02:00
Roman Hotsiy
dc77d8f25e
chore: minor refactor
2019-03-15 17:20:20 +02:00
Jon Nicholson
b21cd3d366
fix: tidy up non-redoc vendor extension presentation ( #847 )
2019-03-15 17:15:06 +02:00
tomjankes
56ca3716b3
feat: display requestBody description #833 ( #838 )
2019-03-15 12:09:07 +02:00
Pete Nykänen
869a91ae4d
chore: Remove duplicate re-export from index.ts ( #842 )
2019-03-15 09:07:39 +02:00
Roman Hotsiy
2cdfcd25cd
feat: support externalValue for examples
...
implements #551 , related to #840
2019-03-11 17:14:14 +02:00
Roman Hotsiy
309901bd31
chore: update deps
2019-03-11 17:14:14 +02:00
Roman Hotsiy
3ce5bff438
fix: duplicate keys in request samples
...
fixes #815
2019-02-26 10:41:52 +02:00
Roman Hotsiy
007752dfc4
fix: make padding for md code blocks and code samples consistent
2019-01-23 19:55:14 +07:00
Patrick Niklaus
fb3cb3627b
fix: Only display API version if present ( #773 )
...
* Only display API version if present
* Warn if `info.version` is omitted, error if `info` is missing.
2019-01-17 17:24:05 +02:00
Roman Hotsiy
fa39ce4eef
fix: make example/defaults badge consistent with code blocks
2019-01-17 13:19:17 +02:00
Roman Hotsiy
25dc775443
chore: fix ts declarations
2018-11-27 13:32:12 +02:00
Roman Hotsiy
e2d0cd5b18
fix: theme improvments by @stasiukanya
...
squashed commit of the following:
commit 6b07dc7fa0
Author: Anya Stasiuk <stasiukanya@gmail.com>
Date: Wed Nov 7 15:18:26 2018 +0200
theme fixes
2018-11-27 12:07:52 +02:00
Roman Hotsiy
f2f6909835
fix: fix spacing with nested markdown lists
...
fixes #718
2018-11-27 11:47:34 +02:00
Roman Hotsiy
155d214509
feat: add support for markdown in Server Object
2018-11-27 11:43:31 +02:00
Roman Hotsiy
27d195ef38
chore: update styled components typings
2018-11-27 11:28:13 +02:00
TATSUNO Yasuhiro
87fd7d7fdd
feat: Add feature to specify href for logo explicitly ( #645 )
...
Closes https://github.com/Rebilly/ReDoc/issues/627
2018-11-27 11:27:10 +02:00
Roman Hotsiy
e77df0ca07
fix: onLoaded callback not run on spec error
...
fixes #690
2018-11-06 14:09:10 +02:00
Roman Hotsiy
b5f32247be
fix: fix hideHostname also hiding basePath
...
fixes #677
2018-11-05 15:57:01 +02:00
Roman Hotsiy
a69c402d9b
fix: improve scrolling performance in Chrome with non-wrapped json examples
2018-11-05 15:57:01 +02:00
Roman Hotsiy
ef520eacfa
chore: upgrade to styled-components@4
2018-10-18 12:14:40 +03:00
Roman Hotsiy
00846e1f55
chore: update dev deps
2018-10-18 11:27:28 +03:00
Roman Hotsiy
fbcec82275
fix: minor media print improvements
2018-10-05 15:57:12 +03:00
Roman Hotsiy
393681b99e
feat: turn off code-blocks wrapping
...
Can enable using `typography.code.wrap` theme option, fixes #658
2018-10-05 15:10:53 +03:00
Roman Hotsiy
974bc7ddb0
fix: remove extra-padding caused by empty group sections
2018-10-05 10:49:46 +03:00
Roman Hotsiy
505463f5ab
feat: new theme options spacing-> sectionHorizontal and sectionVertical
2018-10-05 10:49:23 +03:00
Roman Hotsiy
5924cd7ea2
chore: refactor components parsing in markdown
2018-10-04 10:49:43 +03:00
Ingo Claro
e9610e92d4
feet: add the option to render vendor extensions ( #552 )
...
* add the option to render vendor extensions
* refactor Extensions, move Redoc extension list to utils file
* feat: new option showExtensions (support list of extensions)
2018-10-03 10:02:30 +03:00
Roman Hotsiy
cb79271ae4
chore: render section instead of throw
2018-09-14 09:55:02 +03:00
Roman Hotsiy
cbc9eab00a
chore: minor fix after dense->compact rename
2018-09-10 18:41:36 +03:00
Matthias Mohr
893c83ed07
feat: externalDocumentation rendered for tags, operations and schema fields ( #595 )
...
The externalDocs were missing for tags, schemata and operations. Added them with this pull requests. Solves #550 .
Additionally, fixes that the URL in External Documentation Object was specified to be optional, which is not correct according to OpenAPI spec.
2018-09-10 18:23:17 +03:00
Fredrik Lengstrand
4b3b5ba974
fix: Increase badge size slightly so that "PATCH" method fits inside ( #632 )
2018-09-05 09:44:47 +03:00
Roman Hotsiy
0dd1c800c1
chore: update deps + fix deprecation warnings
2018-08-24 12:27:53 +03:00
Roman Hotsiy
865f3ced4b
fix: addd indent to array schema internals
2018-08-24 12:27:53 +03:00
Roman Hotsiy
1ba8a4cf7b
chore: remove class active from group items + fix e2e tests
2018-08-22 13:22:58 +03:00
Roman Hotsiy
5d84bd4656
fix: make http badges font-based instead of inline png
2018-08-19 16:50:15 +03:00
Roman Hotsiy
528b8fbebc
chore: prettier all
2018-08-18 16:23:33 +03:00
Roman Hotsiy
3ccc9c4ea6
chore: update to typescript@3
2018-08-17 16:57:32 +03:00
Roman Hotsiy
43a22f5531
chore: refactor links
2018-08-17 14:54:28 +03:00
Roman Hotsiy
d3d35189f5
chore: refactor, move allowedMdComponents to options
2018-08-17 14:41:22 +03:00
Roman Hotsiy
0cf7191144
chore: various small refactorings
2018-08-16 12:36:51 +03:00
Roman Hotsiy
eae11682b8
chore: sections/markdown refactor
2018-08-16 09:56:47 +03:00
Roman Hotsiy
d13fe13eb8
fix: fix auth requirements font size
2018-08-09 08:53:35 +03:00
Roman Hotsiy
334f9047a8
fix: download button downloads index.html instead of spec with CLI
...
fixes #594
2018-08-08 12:03:55 +03:00
Roman Hotsiy
23559fbece
fix: preserve md heading level in description
2018-08-08 11:42:07 +03:00
Roman Hotsiy
597688e720
fix: add some spacing between operation description and parameters
2018-08-07 18:08:43 +03:00
Roman Hotsiy
2ecc8bc58e
fix: fix Authentication section is not rendered
...
fixes #590
2018-08-07 18:08:43 +03:00
Roman Hotsiy
8fb9cd6bac
fix: fix linebreaks in multiparagraph field descriptions
2018-08-07 18:08:43 +03:00
Sheila Kelly
568ce74077
feat: Add x-logo alt text support ( #584 )
...
Fixes #546
2018-08-02 15:27:38 +03:00
Roman Hotsiy
00bd966797
feat: support label for x-code-samples
...
fixes #586
2018-08-01 10:20:16 +03:00
Roman Hotsiy
ba22b1e352
fix: show examples for response headers
...
fixes #575
2018-07-31 16:55:06 +03:00
Roman Hotsiy
15dfe44d4e
fix: allow word-break in code strings in md
2018-07-31 16:45:56 +03:00