Commit Graph

413 Commits

Author SHA1 Message Date
Anastasiia
1e80dd69a3
fix: update snapshot (#1956) 2022-04-11 10:40:30 +03:00
Loïc Fürhoff
6716b08e88
feat: theme add sidebar activeBackgroundColor and activeTextColor (#1600) 2022-04-07 16:51:52 +03:00
Sergey Dubovyk
de67df102a
chore: change side menu message (#1390) 2022-03-24 22:46:03 +08:00
AlexVarchuk
7dd76292e0
chore: update snapshots for unit tests (#1942) 2022-03-24 08:53:19 +02:00
Quentin D
c75ac9cf70
feat: nonce support (#1566)
Signed-off-by: Quentin Devos <4972091+Okhoshi@users.noreply.github.com>
Co-authored-by: AlexVarchuk <olexandr.varchuk@gmail.com>
2022-03-23 18:02:30 +02:00
Josh
ab3e8a8f80
fix: move comma out of code block in SecurityRequirement.tsx (#1924) 2022-03-23 12:12:30 +02:00
Eli$
ac6fb458a4
use x-displayName in securityDefinitions (#1444)
Co-authored-by: elis-k <53352199+elis-k@users.noreply.github.com>
Co-authored-by: AlexVarchuk <olexandr.varchuk@gmail.com>
2022-03-15 15:47:22 +02:00
Anastasiia
f60b475833
Fix: deprecated badge on one of any of buttons (#1930) 2022-03-15 13:22:22 +02:00
AlexVarchuk
059bd8000e
fix: sanitize array of items (#1920) 2022-03-14 17:39:55 +02:00
AlexVarchuk
635f379eb0
fix: improve customization fab (#1891) 2022-03-14 15:36:50 +02:00
Roman Hotsiy
957f1a61be
Fix expanded (#1877)
* fix: fields not expanding after esbuild migration

* chore: fix local dev

* update snapshot

Co-authored-by: Oprysk <vyacheslav@redocly.com>
2022-01-26 11:56:08 +02:00
AlexVarchuk
250d53a59f
fix: add schema expansion level (#1868)
* feat: add schemaExpansionLevel
2022-01-25 16:43:14 +02:00
Depickere Sven
18f943d2b5
fix: Response objects couldn't open (#1867)
* This was undefined on response toggle

* Add test cases for opening response object
2022-01-24 11:14:31 +02:00
Oprysk Vyacheslav
5694913e71
fix: writeOnly params displaying in webhook (#1866) 2022-01-20 18:36:40 +02:00
Oprysk Vyacheslav
95a7347931
fix: definition name util (#1865)
* fix: definition name util

* update snapshot
2022-01-20 00:01:30 +02:00
Oprysk Vyacheslav
3e47932754
chore: bump marked version (#1863) 2022-01-17 14:18:16 +02:00
Andriy Zaleskyy
6c7685e5fa
fix: No maxLength label is displayed for arrays of items #1701 (#1765)
* fix: No maxLength label is displayed for arrays of items #1701

* Revert "fix: No maxLength label is displayed for arrays of items #1701"

This reverts commit 543ecc4d39.

* fix: No maxLength label is displayed for arrays of items #1701

* change array items display

* fix alignment

* remove theme font from labels

* update snapshot

Co-authored-by: Oprysk <vyacheslav@redocly.com>
2022-01-05 17:11:05 +02:00
Oprysk Vyacheslav
2474b76d0d
chore: update snapshots (#1846) 2021-12-31 14:11:12 +02:00
Oprysk Vyacheslav
c986f0ef1a
feat: support examples in object schema (#1832)
* feat: support examples in object schema

* revert pure components used with observer

* rename option

* update test
2021-12-29 12:22:57 +02:00
Oprysk
6c41e95aa0 chore: fix broken test & components refactoring 2021-12-14 11:10:39 +02:00
Shelby Sanders
f82eb53ccf
Added support for showExtensions and $ref for Responses (#1406)
* Corrected responses to support $ref

* Add showExtentions for Responses

* Add showExtentions support for Responses

* Update src/services/__tests__/models/Response.test.ts

Co-authored-by: Giles Wells <giles@mediagearhead.com>

Co-authored-by: Roman Hotsiy <gotsijroman@gmail.com>
Co-authored-by: Giles Wells <giles@mediagearhead.com>
2021-12-09 19:43:47 +02:00
Oprysk Vyacheslav
aaa3b3280c
fix: x-examples for request body param does not display #1743 (#1826)
* fix: x-examples for request body param does not display #1743

* lint

* fix ts
2021-12-09 15:27:49 +02:00
Aarni Koskela
3028d3d7ac
Fix Chrome scrolling by using alternate scrollIntoViewIfNeeded (#1823)
* Break out scrollIntoViewIfNeeded into freely usable function

* Always use alternate implementation of scrollIntoViewIfNeeded

Refs #1714

Refs #1742
2021-12-09 12:51:02 +02:00
AlexVarchuk
bc2d9a7d9c
fix: fix scroll in example dropdown (#1803) 2021-12-09 11:04:17 +02:00
Junghyun Colin Kim
2e4663b3b7
Use an option usePathInSidebar (#1805)
* Use an option usePathInSidebar

If this option is enabled, it displays a path in the sidebar instead of
summary.

Usage:

```js
                <RedocStandalone
                spec={props.spec}
                options={{
                    scrollYOffset:'.navbar',
                    nativeScrollbars: true,
                    usePathInSidebar:true
                }}
```

* Rename usePathInSidebar to sideNavStyle

* Rename sidebarName to sidebarLabel

* Use ternary operator

* Use enums instead of raw string
2021-12-08 15:53:14 +02:00
Oprysk Vyacheslav
b604bd8da8
fix: exclusiveMin/Max shows incorect range (#1799)
* fix: exclusiveMin/Max shows incorect range

* cover all number range cases & add unit tests

* add more tests

* fix maximum value

* simplify humanizeNumberRange function

* simplify exclusive checks

* Update src/utils/openapi.ts

Co-authored-by: Roman Hotsiy <gotsijroman@gmail.com>

* update test coverage

* linting

* revert weird prettier changes

* add md files to prettier ignore

Co-authored-by: Roman Hotsiy <gotsijroman@gmail.com>
2021-11-24 16:47:24 +02:00
Oprysk Vyacheslav
4fb5f914fa
chore: run prettier & add husky pre-commit hook (#1800) 2021-11-24 16:11:45 +02:00
Andriy Zaleskyy
734080c354
fix: Default boolean property value not rendered #1779 (#1781) 2021-10-27 16:55:20 +03:00
raghavi92
352a851857
fix: No match scenario in search (#1667)
Co-authored-by: Alex Varchuk <olexandr.varchuk@gmail.com>
2021-10-11 17:34:20 +03:00
Gabriel Simon Gianotti
8e75f9929b
chore: remove commented out code (#1768) 2021-10-11 17:30:59 +03:00
Andriy Zaleskyy
3b8d6441bd
fix: The number of items in the array in the array is incorrect #1762 (#1763) 2021-10-11 13:05:50 +03:00
Andriy Zaleskyy
a8e0c29685
fix: Schema for events incorrectly omits readOnly and includes writeOnly (#1720 #1540) 2021-08-31 15:39:55 +03:00
AlexVarchuk
ddf297b112
fix: nullable object's fields were missing (#1721) 2021-08-11 12:59:31 +03:00
AlexVarchuk
6a52a16d5b
fix: hideLoading options in redoc standalone (#1709) 2021-08-03 13:37:01 +03:00
AlexVarchuk
cd2d6f76e8
fix: improve openapi 3.1 (#1700) 2021-08-03 13:36:06 +03:00
Valdir Mendes
9e1ea703e5
fix: handle empty object in security array (#1678) 2021-07-30 11:18:13 +03:00
ILya Volchenkov
ec50858ec4
feat: added localization for some labels (#1675) 2021-07-09 10:33:36 +03:00
romanhotsiy
b41a8b4ac7
fix: fix accidentally removed onLoaded
fixes #1656
2021-07-01 12:37:42 +03:00
Roman Hotsiy
c09cf9dbbe
chore: modernize build pipeline (#1635) 2021-06-09 14:57:36 +03:00
AlexVarchuk
823be24b31
feat: add basic support openApi 3.1 (#1622) 2021-05-31 19:23:05 +03:00
Olivier Beaulieu
dfc4cf1caa
fix: added missing semicolon to styling (#1578) 2021-04-12 19:24:15 +03:00
Andriy Leliv
503394655d
chore: use openapi-core to bundle definition instead of json-schema-ref-parser (#1500)
* chore: use openapi-core to bundle definition instead of json-schema-ref-parser
* chore: update: root and demo webpack configs
* chore: refactor loadAndBundleSpec
* chore: update vesions: openapi-core, redoc
* chore: rolled back webpack.config(s) to previous version
* chore: changed the way of creating core Config for bundling definition
* fix: disable eslint react/display-name
* fix: update nodejs version to 12 in travis config
* chore: optimize verification: browser or server
* chore: add fetch only for browser
* Update src/utils/loadAndBundleSpec.ts
* chore: isBrowser verification improvment
Co-authored-by: Roman Hotsiy <gotsijroman@gmail.com>
2021-04-08 15:49:15 +03:00
Anton Kozachuk
d288165a4e
fix: background-color in search results (#1531)
* fix: background-color in search results

* Delete some changes
2021-02-15 14:14:54 +02:00
romanhotsiy
040ce72a8a
fix: fix SourceCodeWithCopy component to be non-pure 2020-12-11 11:14:01 +02:00
Anna Stasiuk
8c559bcbcd
fix: add missed labels to elements (#1445) 2020-11-30 12:51:27 +02:00
Anna Stasiuk
bb4594ee58
feat: add new option hideSchemaPattern (#1475)
* feat: add new option hideSchemaPattern
* chore: add hideSchemaPattern option to readme
2020-11-30 11:54:46 +02:00
Roman Hotsiy
d12e410d99
feat: support multiple examples for parameters (#1470) 2020-11-23 14:00:17 +02:00
Anna Stasiuk
4729fc3d8f
fix: remove duplicated slash if hideHostname option enabled (#1448) 2020-11-03 14:47:23 +02:00
Anna Stasiuk
e2de5b065e
fix: increase colors contrast to make them more accessible (#1433) 2020-10-27 10:44:06 +02:00
Dávid Kaya
c11f679f82
fix: fix the name of OpenID Connect security scheme (#1425)
The official name of the OpenID Connect security scheme does not contain a space between 'Open' and 'ID', see https://openid.net/connect/.
2020-10-27 10:42:26 +02:00
romanhotsiy
0703f73f79
feat: new extensions hook PropertyDetailsCell + wrap property name into span 2020-10-16 18:24:26 +03:00
romanhotsiy
d4016b8142
chore: fix tests 2020-10-13 19:10:04 +03:00
Roman Hotsiy
c90245598e
chore: update test snapshot (#1414) 2020-10-13 17:13:35 +03:00
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