Commit Graph

685 Commits

Author SHA1 Message Date
Andrii Tykhan
dc5430e53d fix: wrap json examples in code tag (#1064) 2019-10-22 16:37:32 +03:00
Roman Hotsiy
cd9fd61831
fix: add oneOf buttons vertical space when wrapped to new line 2019-10-16 17:21:32 +03:00
Roman Hotsiy
ce885f864a
fix: improve mime-type dropdown font 2019-10-16 17:19:42 +03:00
Roman Hotsiy
0a01e9a080
fix: active menu item scroll into view 2019-10-16 16:07:42 +03:00
Andrew Zhukevych
0c20e64178 fix: changed several components style font-family to monospace (#1063)
fixes #909
2019-10-16 16:02:50 +03:00
russellrobinson
b5af71da5f fix: no quotes for default values in header fields. (#1059) 2019-10-16 16:01:54 +03:00
Michael Huynh
4494f80dbc fix: types over-pluralization (#1057)
fixes #1053
2019-10-12 12:33:03 +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
faa74d6002
fix: false-positive recursive detection with allOf at the same level 2019-09-30 12:56:09 +03:00
Roman Hotsiy
4649683785
fix: clicking on group title breaks first tag
fixes #1034
2019-09-30 12:56:09 +03:00
Roman Hotsiy
67e2a8fb79
fix: left menu item before group is not highligted
fixes #1033
2019-09-30 12:56:09 +03:00
Roman Hotsiy
5aa7784307
fix: auth section appears twice
fixes #818
2019-09-30 12:56:09 +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
f0c2181bd1
chore: upgrade deps 2019-09-30 10:34:49 +03:00
Roman Hotsiy
21258a5b61
fix: fix scrollYOffset when SSR 2019-09-30 10:31:18 +03:00
Peter Wessels
32a464aaa8 fix: use url-template dependency (#1008)
Fixes #1007
2019-09-30 09:12:26 +02:00
Anthony Porthouse
350649d8b3 chore: correct typo of expolde to explode (#1009) 2019-09-25 18:11:53 +02:00
Roman Hotsiy
58cb20d4b2
fix: fix escaping JSON string values
fixes #999
2019-08-07 12:02:25 +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
9e3375d12d
fix: update to core.js 3
fixes #997
2019-08-01 10:35:32 +03:00
Roman Hotsiy
bfbb0c1787
fix: enum list doesn't wrap
fixes #993
2019-08-01 10:32:11 +03:00
Roman Hotsiy
aba45dbbe6
fix: incorrect serialization of some parameter samples
fixes #992
2019-08-01 10:31:41 +03:00
Roman Hotsiy
cb5c19781c
chore: add more exports 2019-07-30 19:53:47 +03:00
Roman Hotsiy
4496622438
fix: rename ObjectDescription to SchemaDefinition as discussed 2019-07-30 19:51:27 +03:00
Roman Hotsiy
70d1ee9edd
fix: do not add extra slashes to pattern
fixes #983
2019-07-30 10:54:40 +03:00
Roman Hotsiy
12e7394ea3
chore: update deps 2019-07-29 18:41:57 +03:00
Roman Hotsiy
f7dd658a01
fix: incorrect serialization of parameter sample with hypen 2019-07-29 18:40: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
7c06735c6d
chore: fix test 2019-07-29 14:39:21 +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
92ada2b895
add depth calculation 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
12b7057055
fix: fix fields table overflow if deeply nested with long title 2019-07-08 08:30:04 +03: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
51d3b9b02b
fix: broken headings with single quote
fixes #955
2019-07-07 21:26:29 +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
888f04e872
fix: IE11, add missing Object.assign polyfill 2019-06-20 10:49:14 +03:00
David Beacham
0eb1e66a10 feat: add x-additionalPropertiesName (#622) (#944)
* Add x-additionalPropertiesName (#622)

Supply custom name to be displayed for property name of
`additionalProperties`.

* Include prettier output for Schema.ts
2019-06-18 11:41:48 +03:00
zhzxang
c488bbf305 fix: styled-component style error in tabs (#946) 2019-06-18 11:39:38 +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
3d52b39274
fix: crash with empty servers with redoc-cli 2019-05-13 15:49:54 +03:00
Roman Hotsiy
4e12b5dbd6
fix: fix broken CLI again 2019-05-13 13:08:26 +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
8df2b97a66
fix: crash in node due to broken URL parsing 2019-05-13 12:07:31 +03:00
Roman Hotsiy
3f6765078e
chore: fix react keys warning 2019-05-13 12:06:26 +03:00
Roman Hotsiy
2491d970de
fix: deep linking sometimes not working when sent over messengers 2019-05-13 09:51:58 +03:00
Roman Hotsiy
3a74b745b1
fix: broken schema talbes with long enums 2019-05-13 09:50:51 +03:00
Roman Hotsiy
a3d7d7a32c
fix: discriminator and oneOf title fix 2019-05-13 00:31:41 +03:00
Roman Hotsiy
d2ce1bd928
fix: IE11 add missing fetch and URL polyfills
fixes #875
2019-05-13 00:07:26 +03:00
Roman Hotsiy
7d7b4e3fb8
fix: incorrect detected schema title for deeply inherited schemas 2019-05-12 23:18:17 +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
fdcac30829
fix: pluralize arrray of types 2019-05-12 23:17:26 +03:00
Roman Hotsiy
5c187f34c9
fix: remove tabs top margin 2019-05-12 23:17:26 +03:00
Roman Hotsiy
6de3523eb0
chore: fix bundle after oas-kit update 2019-05-12 23:17:26 +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
Roman Hotsiy
de2aed21e7
fix: right panel code samples bg color 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
Kris Kalavantavanich
5dd5d6d704 feat: add lineHeight config for headings (#894) 2019-04-19 11:31:50 +03:00
Anya Stasiuk
82c0cb1a3c add logo gutter 2019-04-08 17:42:30 +03:00
Roman Hotsiy
65930ad7ee
fix: encode x-www-form-urlencoded examples correctly
fixes #870
2019-03-28 10:41:20 +02:00
Cédric Bertolini
851b1337cb fix: change fontFamily for EndpointInfo (#866) 2019-03-27 22:16:11 +02:00
Roman Hotsiy
548fae3cbc
fix: remove huge space after Authentication section
fixes #872
2019-03-27 12:35:48 +02:00
Anton Komarev
4366a0d122 fix: ignore empty x-tagGroups array (#869) 2019-03-27 09:19:24 +02:00
Patrick Rodacker
2f65f051e0 chore: fixes typo in error message for detecting a circular dependency in theme.ts (#852) 2019-03-18 09:08:44 +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
Roman Hotsiy
d81b63147c
fix: add extra deref step for anyOf/oneOf variants
fixes #810
2019-03-15 11:22:39 +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
unarist
70faca17b6 fix: escape backslashes in string literals (#823)
Follow up for #822 and 04731656 (only escape quotes).
2019-02-26 11:31:42 +02:00
Roman Hotsiy
3ce5bff438
fix: duplicate keys in request samples
fixes #815
2019-02-26 10:41:52 +02:00
Roman Hotsiy
4dd79cd840
fix: set last section min-height
fixes #820
2019-02-26 10:41:52 +02:00
Roman Hotsiy
04731656db
fix: escape quotes in string values
fixes #882
2019-02-26 10:41:52 +02:00
Roman Hotsiy
d197c0feda
fix: make syntax highlighting for md js code blocks same as for payload samples 2019-01-23 20:11:32 +07:00
Roman Hotsiy
007752dfc4
fix: make padding for md code blocks and code samples consistent 2019-01-23 19:55:14 +07:00
Roman Hotsiy
801fea0474
chore: remove info.version validation 2019-01-17 18:43:02 +02:00
Roman Hotsiy
8c9e3bdbe4
chore: fix lint issue 2019-01-17 17:32:47 +02: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
c7436f2cee
fix: pattern constrain spacing 2019-01-17 12:54:59 +02:00
Roman Hotsiy
c04f387378
fix: sidebar navigation issues when scrollYOffset is float number
fixes #748
2019-01-17 12:20:22 +02:00
Luigi Pinca
02f6e1820b chore: update marked to version 0.6.0 (#768)
The new release includes https://github.com/markedjs/marked/pull/1383.
2019-01-17 12:06:35 +02:00
Roman Hotsiy
25dc775443
chore: fix ts declarations 2018-11-27 13:32:12 +02:00
Roman Hotsiy
59eaa8d633
fix: false-positive recursive detection with oneOf
fixes #723, fixes #585
2018-11-27 12:54:52 +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
3673720497
fix: nested oneOf button spacing
fixes #719
2018-11-27 11:36:07 +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
lscholten
f40568b79e feat: Add support for minLength and maxLength constraint humanization (#700)
According to #42 , `minItems` and `maxItems` are not yet rendered in the documentation.
This pull request shows the humazined form of `minItems` and `maxItems` next to the type description.
The [suggestion of fgabolde](https://github.com/Rebilly/ReDoc/issues/42#issuecomment-371883853) is followed and "characters" is simply replaced with "items".

![image](https://user-images.githubusercontent.com/1814807/47999845-0a13f900-e104-11e8-9ddc-adab701ec0bb.png)

Some examples are added to the demo.
2018-11-05 16:14:57 +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
9a238e75eb
chore: fix lint issue 2018-10-18 14:19:30 +03:00
William Boman
6b7c5b7df3 fix: add null check in dispose method (#675) 2018-10-18 14:12:14 +03: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
a4a40135ec
fix: extensionHook not being used
fixes #665
2018-10-08 11:54:09 +03:00
Roman Hotsiy
14acab32b2
chore: minor refactor 2018-10-05 16:48:08 +03:00
TATSUNO Yasuhiro
10bca66dce feat: New option onlyRequiredInSamples (#646)
* Add onlyRequiredInSamples option that let user to show only required fields in Request samples.
2018-10-05 16:14:40 +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
f39fc98eab
fix: fix panel paddings on small screens 2018-10-05 10:54:15 +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
b87cf0d8d5
feat: new option sortPropsAlphabetically 2018-10-04 11:10:37 +03:00
Roman Hotsiy
5924cd7ea2
chore: refactor components parsing in markdown 2018-10-04 10:49:43 +03:00
Roman Hotsiy
3c8d6b623c
chore: fix lint issue + update readme 2018-10-03 11:02:13 +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
fe3383d1a3
fix: allOf inside oneOf overwritten and not rendered
fixes #660
2018-10-01 10:19:26 +03:00
Roman Hotsiy
355764dcd4
fix: server overriding didn't work on Path Item object
fixes #656
2018-09-27 18:21:24 +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
81c0df092a
chore: add tests for one of titles 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
39b930d0ee
fix: fix oneOf/anyOf titles
fixes #618, #621
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
c8b7eed7f0
chore: add sql-syntax for prism.js 2018-08-22 12:47:35 +03:00
Roman Hotsiy
720e28284c
fix: do not inherit title in allOf
fixes #601
2018-08-22 12:27:13 +03:00
Roman Hotsiy
fb212128f9
fix: fix crash on empty media object
fixes #608
2018-08-22 12:25:02 +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
b9c1b49810
chore: minor fixes after refactor 2018-08-17 15:01:18 +03:00
Roman Hotsiy
43a22f5531
chore: refactor links 2018-08-17 14:54:28 +03:00
Roman Hotsiy
cfddb3afe1
chore: refactor HistoryService 2018-08-17 14:50:58 +03:00
Roman Hotsiy
d3d35189f5
chore: refactor, move allowedMdComponents to options 2018-08-17 14:41:22 +03:00
Roman Hotsiy
f903406c14
fix: use correct parent section for security definition 2018-08-17 14:20:02 +03:00
Roman Hotsiy
4ef4a971ce
chore: unify parsing components in md 2018-08-16 12:37:39 +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
8218a2694d
fix: broken rendering of code blocks with language in markdown 2018-08-11 23:15:05 +03:00
Roman Hotsiy
e660517a2a
fix: broken rendering of headings with regexp characters 2018-08-11 23:14:09 +03:00
Roman Hotsiy
d13fe13eb8
fix: fix auth requirements font size 2018-08-09 08:53:35 +03:00
Roman Hotsiy
58ae668f64
fix: crash on any backticks code block without lang specified 2018-08-09 08:44:01 +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
97e16208d5
fix: schemes without type: object are not expandable
fixes #599
2018-08-08 11:41:53 +03:00
Roman Hotsiy
597688e720
fix: add some spacing between operation description and parameters 2018-08-07 18:08:43 +03:00
Roman Hotsiy
9e69eedea0
chore: fix lint issues in tests 2018-08-07 18:08:43 +03:00
Roman Hotsiy
90ed717bb5
fix: description is not rendered if doesn't containt markdown headings
fixes #591
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
Matthias Mohr
f70ac081fe fix: render additionalProperties set to true (#597)
fixes #596
2018-08-07 13:02:39 +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
7a35a4d0de
chore: tests crash fix after refactor 2018-07-31 16:58:44 +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
Roman Hotsiy
d99e9188fd
fix: long endpoint url overflow 2018-07-31 16:14:12 +03:00
Roman Hotsiy
a4f79bf8c2
chore: refactor, separate active and expanded state for menu items 2018-07-31 15:55:35 +03:00
Roman Hotsiy
5ebab5f942
chore: perfect scrollbar wrapper to maintain initial offset 2018-07-31 15:36:30 +03:00
Roman Hotsiy
35ba10f759
chore: refactor, unify markdown headings 2018-07-31 15:35:35 +03:00
Roman Hotsiy
d731518c8c
chore: refactor, rename StoreProvider to StoreBuilder 2018-07-30 12:51:50 +03:00
Roman Hotsiy
873fe05a5d
chore: SideMenu accept className 2018-07-26 18:00:30 +03:00
Roman Hotsiy
d74578dc9b
fix: remove break-all from code samples 2018-07-26 17:51:47 +03:00
Roman Hotsiy
9361ead8c4
chore: refactor, simplify AppStore 2018-07-26 17:51:10 +03:00
Roman Hotsiy
f96c481b34
fix: wrong display when combining multiple auth requirements
fies #577
2018-07-25 13:11:26 +03:00
Roman Hotsiy
b5d0aca9ae
chore: fix lint issues 2018-07-23 13:22:24 +03:00
Roman Hotsiy
9d6b30c55a
feat: simple variable substitution support
fixes #565
2018-07-23 12:00:30 +03:00
Roman Hotsiy
59e05fbe75
chore: fix typo SecurityRequirement
fixes #571
2018-07-23 11:20:56 +03:00
Roman Hotsiy
21f34b1e59
chore: minor typings fix 2018-07-23 11:19:13 +03:00
Roman Hotsiy
2ff726649c
chore: run prettier 2018-07-23 11:17:31 +03:00
Roman Hotsiy
b41b181dd0
fix: server url contains spec name if not specified in the spec 2018-07-23 11:16:54 +03:00
Roman Hotsiy
cbfc226fa9
chore: minor css improvements 2018-07-19 17:12:31 +03:00
Roman Hotsiy
8c9304a719
Fix: unify code samples and json styling, stop using injectGlobal for prism
fixes #491
2018-07-19 17:07:11 +03:00
Roman Hotsiy
58bddc8811
feat: big theme update 2018-07-19 14:33:51 +03:00
Roman Hotsiy
7e5b6d9029
fix: properly host oneOf inside allOf
fixes #507
fixes #528
2018-07-18 13:03:42 +03:00
Roman Hotsiy
89aa754063
fix: different output of cli bundle and redoc
fixes #547
2018-07-18 11:51:34 +03:00
Roman Hotsiy
dcca44a92d
fix: fix non-scalar query/path/header params are not expandable
fixes #561
2018-07-17 15:50:14 +03:00
SeungWoon Maz Lee
8817d9c9db fix: use original tag name when slugified one is not valid (#553)
* use original tag name when slugified one is not valid

* use wrapper function when using slugify
2018-07-17 15:21:03 +03:00
Roman Hotsiy
c35925a332
fix: fix Download button url when spec as object was provided
+ do not output huge base64 encoded link when SSR, instead use button handler

fixes #462
related #540
2018-07-17 12:22:27 +03:00
Roman Hotsiy
edc77a2017
chore: update ts and enable noUnusedLocals 2018-07-17 12:15:22 +03:00
Roman Hotsiy
d4ab5adc17
feat: new option disableSearch 2018-07-17 11:07:49 +03:00
Roman Hotsiy
c7b3e47366
chore: remove unused imports after fix in TS@2.9.1 2018-07-16 18:28:36 +03:00
Roman Hotsiy
c0c44bc4fe
fix: regression - broken urls for operations without operationId 2018-07-14 18:16:35 +03:00
Roman Hotsiy
9f0252e12e
chore: update security-requirement ui 2018-07-14 17:11:29 +03:00
Roman Hotsiy
e6ebdb7095
chore: refactor MediaTypesSwitch 2018-07-14 16:37:36 +03:00
Roman Hotsiy
e1c9e19fbc
fix: inline markdown regression 2018-06-30 00:41:31 +03:00
Roman Hotsiy
55bd8535b4
feat: theme hooks experimental hooks 2018-06-29 23:49:53 +03:00
Roman Hotsiy
c3da0a01d4
chore: minor refactor 2018-06-28 20:26:14 +03:00
Roman Hotsiy
06ef51c08c
feat: experimental temporary support for tags in md 2018-06-28 20:25:12 +03:00
Roman Hotsiy
aaaa8999bf
fix: fix link colors in json samples 2018-06-28 20:25:11 +03:00
Roman Hotsiy
78fa31225a
feat: display Value instead of Enum for one-item enum 2018-06-28 20:25:11 +03:00
Roman Hotsiy
1812775cd0
chore: remove unused EmptyDarkRightPanel 2018-06-28 20:25:11 +03:00
Roman Hotsiy
0d45cc26f1
fix: do not uppercase menu items by default 2018-06-26 09:46:16 +03:00
Roman Hotsiy
11947ed68e
fix: change default font weight to 400 2018-06-26 09:36:39 +03:00
Roman Hotsiy
49feddaa10
chore: update snapshots 2018-06-25 14:00:08 +03:00
Roman Hotsiy
761a2c1251
chore: fix lint issues 2018-06-25 13:59:11 +03:00
Roman Hotsiy
16313b8293
feat: pass error in init callback + onLoaded for RedocStandalone 2018-06-25 13:48:51 +03:00
Roman Hotsiy
637b493b41
chore: refactor StoreProvider to not use componentWillReceiveProps 2018-06-25 12:47:09 +03:00
Roman Hotsiy
4e5282e206
fix: default false not displaying
fixes #544
2018-06-25 09:10:44 +03:00
Roman Hotsiy
83fca7d9ff
fix: use pushState instead of hash replace
fixes #542
2018-06-21 13:47:53 +03:00
Jérémy Derussé
4694b6f9ca fix: Use item's title in array definition (#526) 2018-06-21 13:10:10 +03:00
Roman Hotsiy
4c76d52cc6
fix: fix subsections ids so subsections with the same name are allowed
fixes #529
2018-06-20 19:57:52 +03:00
Roman Hotsiy
c8a5f36f17
fix: fix IE11 crash + remove unused polyfills
fixes #448
2018-06-20 19:57:52 +03:00
Roman Hotsiy
5dae267a54
fix: discriminator field doesn't change in examples
fixes #524
2018-06-20 19:57:52 +03:00
Oleg Vaskevich
133f9f0d12 chore: Add x-code-samples to TS types (#533) 2018-06-20 19:09:16 +03:00
Lev Pachmanov
070dc5c0a8 feat: support for x-discriminator-value for 2.0 as alternative to mapping (#534)
Add vendor extension `x-discriminator-value `used by swagger-codegen for Swagger 2.0 as an alternative to OpenAPI 3.0 mapping feature.
2018-06-20 19:08:19 +03:00
Jérémy Derussé
35f83e491a chore: escape HTML (#527) 2018-06-18 15:58:26 +03:00
Roman Hotsiy
c0b0cd49b5
fix: support wildcard status codes
fixes #531
2018-06-18 15:56:31 +03:00
Roman Hotsiy
d38f2f2a5a
fix: add ReDoc attribution link which was present in 1.x 2018-06-01 19:44:34 +03:00
Roman Hotsiy
209c6caca0
fix: non-json sample crash in some cases
fixes #456
2018-06-01 18:20:28 +03:00
Roman Hotsiy
63ae2e8e94
feat: support x-summary for response objects
fixes #500
2018-06-01 16:50:07 +03:00
Roman Hotsiy
bde08f1283
fix: fix vertical line misaligned in firefox
closes #503
2018-05-31 15:41:57 +03:00
Roman Hotsiy
d957ad762d
fix: fix typings on npm 2018-05-31 15:41:57 +03:00
Jérémy Derussé
47b2177f58 fix: MergeAll takes items into account (#511) 2018-05-31 12:59:55 +03:00
Roman Hotsiy
2eb1952875
fix: HEAD http verb support in menu badges
fixes #493
2018-05-29 18:58:37 +03:00
Roman Hotsiy
3698598d60
chore: update deps 2018-05-29 18:44:03 +03:00
Roman Hotsiy
3c6de2cafc
fix: more descriptive message for wrong discriminator use
fixes #505
2018-05-29 17:58:57 +03:00
Roman Hotsiy
aaff311a3e
feat: support x-discriminator for OpenAPI 2
related to #496
2018-05-29 17:51:50 +03:00
Roman Hotsiy
6ea2b7b0e6
fix: fix font-weight inconsistency
fixes #506
2018-05-29 17:51:50 +03:00
Roman Hotsiy
d162babe19
feat: add new experimental option unstable_ignoreMimeParameters 2018-05-29 17:51:50 +03:00
Roman Hotsiy
64801b039f
fix: specify caption-side
fixes #509
2018-05-28 21:54:02 +03:00
Roman Hotsiy
57a32ba116
chore: update deps 2018-05-28 21:50:26 +03:00
Roman Hotsiy
f8b793d2dc
feat: new theme colors: code and codeBg 2018-05-28 21:47:37 +03:00
Roman Hotsiy
782ef77080
feat: new theme option: nestingSpacing 2018-05-28 21:45:34 +03:00
Roman Hotsiy
6b1e8e75b0
fix: replace "oops" with field name 🙈 2018-05-18 17:30:21 +03:00
Roman Hotsiy
a1fa4b47a8
fix: reduce search index size 2018-05-18 15:13:46 +03:00
Roman Hotsiy
8afae474c7
chore: fix declarations 2018-05-18 15:10:55 +03:00
Roman Hotsiy
e13d172502
chore: allow for children in MenuItemTitle 2018-05-18 15:09:30 +03:00
Roman Hotsiy
59571596c0
refactor: move styled.d.ts patch to typings 2018-05-18 13:47:35 +03:00
Roman Hotsiy
2654cefd75
refactor: minor refactor 2018-05-17 11:41:51 +03:00
Roman Hotsiy
08253ee1b1
chore: enable tslint for test files 2018-05-16 13:08:27 +03:00
Roman Hotsiy
9115be8378
feat: export TypeScript typings 2018-05-16 12:44:44 +03:00
Roman Hotsiy
0d6deff8c8
feat: display scope description as markdown, fixes #466 2018-05-14 11:48:11 +03:00
Roman Hotsiy
2cf4c3cd7b
fix: path parameters are not correctly override, fixes #481 2018-05-14 11:37:19 +03:00
Roman Hotsiy
6d1a9e589c
fix: limit height of discriminator dropdown, fixes #484 2018-05-14 11:04:56 +03:00
Roman Hotsiy
3829aca046
chore: fix lint issues 2018-05-14 11:00:43 +03:00
Roman Hotsiy
42cf18edb3
fix: fix prism lang dependencies, fixes #467 2018-05-14 09:51:57 +03:00
Roman Hotsiy
afb11d6a4f
fix: fix @observer on PureComponent warning 2018-05-14 09:50:35 +03:00
Roman Hotsiy
126c6a689a
fix: change look of additionalProperties 2018-05-14 09:33:09 +03:00
Morgan Terry
64119c44d4 fix: fix spelling in error message (#455) 2018-04-17 08:51:07 +03:00
Roman Hotsiy
1aa7d5d279
tests: add JsonViewer basic unit tests 2018-03-26 23:09:09 +03:00
Roman Hotsiy
04251a581a
tests: move tests to parent folder 2018-03-26 22:33:46 +03:00
Roman Hotsiy
29a7f299a1
tests: workaround perfectscroll importing issue in jest 2018-03-26 22:24:47 +03:00
Roman Hotsiy
83af48112c
tests: add standalone component test 2018-03-26 22:24:39 +03:00
Roman Hotsiy
deffdc548e
chore: remove worker from main bundle for browser/standalone build 2018-03-26 18:24:19 +03:00
Roman Hotsiy
33eaf77dc5
refactor: rename isBrowser to IS_BROWSER + use only it for detection 2018-03-26 18:15:54 +03:00
Roman Hotsiy
5cab571f78
chore: fix lint issues 2018-03-26 13:58:20 +03:00
Roman Hotsiy
d5286fc5bb
chore: exclude some rarely-used langs for APIs (-4Kb) 2018-03-26 13:57:39 +03:00
Roman Hotsiy
09cbe884b5
fix: disable chrome tap-highlight on mobiile 2018-03-23 16:17:01 +02:00
Roman Hotsiy
fefe571d29
chore: add babel-plugin-styled-components (smaller bundle size) 2018-03-23 16:16:29 +02:00
Roman Hotsiy
384c883bb8
fix: fix logo width 2018-03-22 18:50:31 +02:00
Roman Hotsiy
4b15a1702d
chore: run prettier 2018-03-22 18:23:32 +02:00
Roman Hotsiy
d92ed428f9
chore: fix deme on mobile 2018-03-22 18:22:11 +02:00
Roman Hotsiy
d1d80422a4
fix: scroll to section sooner when SSR + simplify item ids 2018-03-22 17:46:30 +02:00
Roman Hotsiy
a0845325d9
fix: fix second-level heading in description 2018-03-21 19:59:55 +02:00
Roman Hotsiy
d27e61a1f7
fix: make field type color more dark (closes #439) 2018-03-20 16:18:25 +02:00
Roman Hotsiy
cbce28aec3
feat: add more options to theme 2018-03-20 16:15:36 +02:00
Roman Hotsiy
5f1e553ef4
chore: fix lint issues 2018-03-20 11:52:08 +02:00
Roman Hotsiy
05403a7aa9
fix: css fix + update theme 2018-03-20 11:17:59 +02:00
Roman Hotsiy
5b136c1a2f
tests: prefer attributes over classes in e2e tests 2018-03-19 16:33:26 +02:00
Roman Hotsiy
cb39a4b6cd
chore: try deploying cli from Travis 2018-03-18 11:40:15 +02:00
Roman Hotsiy
ed20ac1298
fix: prefer extend of styled to make styles more predictable 2018-03-18 11:13:08 +02:00
Roman Hotsiy
9026795b9f
tests: add MarkerService tests 2018-03-17 23:23:14 +02:00
Roman Hotsiy
e0223494c2
feat: use new Context API for options 2018-03-17 22:04:37 +02:00
Roman Hotsiy
2c320d229b
chore: setup coverage + coveralls 2018-03-17 20:57:45 +02:00
Roman Hotsiy
6c70d1a345
chore: migrate to webpack 4 2018-03-17 17:58:28 +02:00
Roman Hotsiy
e27d421f8a
chore: migrate to ts-loader 2018-03-17 15:16:56 +02:00
Roman Hotsiy
053248e8ab
chore: update to the latest react-hot-loader@4 2018-03-17 14:17:09 +02:00
Roman Hotsiy
d3655161fc
chore: fix lint issues 2018-03-16 23:58:25 +02:00
Roman Hotsiy
6018042180
fix: fix broken css after installing polished 2018-03-16 23:56:53 +02:00
Roman Hotsiy
1df690a964
feat: more advanced theme engine 2018-03-16 17:07:49 +02:00
Roman Hotsiy
7769ba84fd
fix: fix CLI crash + build it on travis 2018-03-15 22:26:07 +02:00