Skip to content

Commit db84939

Browse files
committed
Merge commit '5411b0b93178168c48ccc96417a7790d24635aec'
2 parents 86883e0 + 5411b0b commit db84939

File tree

10 files changed

+115
-78
lines changed

10 files changed

+115
-78
lines changed

.travis.yml

-5
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,3 @@ deploy:
3030
api_key: "$NPM_TOKEN"
3131
on:
3232
tags: true
33-
- provider: script
34-
skip_cleanup: true
35-
script: npm run deploy:demo
36-
on:
37-
tags: true

CHANGELOG.md

+11
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
# [2.0.0-rc.50](https://github.com/Redocly/redoc/compare/v2.0.0-rc.49...v2.0.0-rc.50) (2021-02-15)
2+
3+
4+
### Bug Fixes
5+
6+
* add includes polyfill ([3ba622f](https://github.com/Redocly/redoc/commit/3ba622f3ab9e28c954fe05f42e7b90862fc3d544)), closes [#1530](https://github.com/Redocly/redoc/issues/1530)
7+
* background-color in search results ([#1531](https://github.com/Redocly/redoc/issues/1531)) ([d288165](https://github.com/Redocly/redoc/commit/d288165a4ea04aedc23dba12020a73e86f20755b))
8+
* false-positive recursive tag case when using oneOf + allOf ([#1534](https://github.com/Redocly/redoc/issues/1534)) ([8270481](https://github.com/Redocly/redoc/commit/8270481e9f0f381b392f7921d21cb06e0e673b6d))
9+
10+
11+
112
# [2.0.0-rc.49](https://github.com/Redocly/redoc/compare/v2.0.0-rc.48...v2.0.0-rc.49) (2021-01-30)
213

314

README.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ You can use all of the following options with standalone version on <redoc> tag
238238
* `hideSchemaPattern` - if set, the pattern is not shown in the schema.
239239
* `hideSingleRequestSampleTab` - do not show the request sample tab for requests with only one sample.
240240
* `expandSingleSchemaField` - automatically expand single field in a schema
241-
* `jsonSampleExpandLevel` - set the default expand level for JSON payload samples (responses and request body). Special value 'all' expands all levels. The default value is `2`.
241+
* `jsonSampleExpandLevel` - set the default expand level for JSON payload samples (responses and request body). Special value `"all"` expands all levels. The default value is `2`.
242242
* `hideSchemaTitles` - do not display schema `title` next to to the type
243243
* `simpleOneOfTypeLabel` - show only unique oneOf types in the label without titles
244244
* `lazyRendering` - _Not implemented yet_ ~~if set, enables lazy rendering mode in ReDoc. This mode is useful for APIs with big number of operations (e.g. > 50). In this mode ReDoc shows initial screen ASAP and then renders the rest operations asynchronously while showing progress bar on the top. Check out the [demo](\\redocly.github.io/redoc) for the example.~~
@@ -255,7 +255,6 @@ You can use all of the following options with standalone version on <redoc> tag
255255
* **function**: A getter function. Must return a number representing the offset (in pixels).
256256
* `showExtensions` - show vendor extensions ("x-" fields). Extensions used by ReDoc are ignored. Can be boolean or an array of `string` with names of extensions to display.
257257
* `sortPropsAlphabetically` - sort properties alphabetically.
258-
* `suppressWarnings` - if set, warnings are not rendered at the top of documentation (they still are logged to the console).
259258
* `payloadSampleIdx` - if set, payload sample will be inserted at this index or last. Indexes start from 0.
260259
* `theme` - ReDoc theme. For details check [theme docs](#redoc-theme-object).
261260
* `untrustedSpec` - if set, the spec is considered untrusted and all HTML/markdown is sanitized to prevent XSS. **Disabled by default** for performance reasons. **Enable this option if you work with untrusted user data!**

cli/npm-shrinkwrap.json

+91-66
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cli/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "redoc-cli",
3-
"version": "0.10.2",
3+
"version": "0.10.4",
44
"description": "ReDoc's Command Line Interface",
55
"main": "index.js",
66
"bin": "index.js",
@@ -19,7 +19,7 @@
1919
"node-libs-browser": "^2.2.1",
2020
"react": "^16.13.1",
2121
"react-dom": "^16.13.1",
22-
"redoc": "2.0.0-rc.48",
22+
"redoc": "2.0.0-rc.50",
2323
"styled-components": "^5.1.1",
2424
"tslib": "^2.0.0",
2525
"yargs": "^15.4.1"

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "redoc",
3-
"version": "2.0.0-rc.49",
3+
"version": "2.0.0-rc.50",
44
"description": "ReDoc",
55
"repository": {
66
"type": "git",

src/components/SearchBox/styled.elements.tsx

+4
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ export const SearchResultsBox = styled.div`
6666
margin-top: 10px;
6767
line-height: 1.4;
6868
font-size: 0.9em;
69+
70+
li {
71+
background-color: inherit;
72+
}
6973
7074
${MenuItemLabel} {
7175
padding-top: 6px;

src/polyfills.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import 'core-js/es/promise';
22

33
import 'core-js/es/array/find';
4+
import 'core-js/es/array/includes';
45
import 'core-js/es/object/assign';
56
import 'core-js/es/object/entries';
67
import 'core-js/es/object/is';

src/services/OpenAPIParser.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -261,10 +261,12 @@ export class OpenAPIParser {
261261
receiver.properties[prop] = subSchema.properties[prop];
262262
} else {
263263
// merge inner properties
264-
receiver.properties[prop] = this.mergeAllOf(
264+
const mergedProp = this.mergeAllOf(
265265
{ allOf: [receiver.properties[prop], subSchema.properties[prop]] },
266266
$ref + '/properties/' + prop,
267267
);
268+
receiver.properties[prop] = mergedProp
269+
this.exitParents(mergedProp); // every prop resolution should have separate recursive stack
268270
}
269271
}
270272
}

0 commit comments

Comments
 (0)