Skip to content

Commit

Permalink
chore: v1.0.0-beta.107 (#807)
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorKarpiuk authored Aug 16, 2022
1 parent 32a876b commit 229f542
Show file tree
Hide file tree
Showing 9 changed files with 41 additions and 30 deletions.
11 changes: 11 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,17 @@ tocMaxDepth: 2
# Redocly CLI changelog


## 1.0.0-beta.107 (2022-08-16)

### Changes

- Add `allowAdditionalProperties` to built-in rules and mark `disallowAdditionalProperties` as deprecated

### Fixes

- Introduced severity level `off` for Assertions


## 1.0.0-beta.106 (2022-08-09)

### Fixes
Expand Down
12 changes: 6 additions & 6 deletions docs/rules/no-invalid-media-type-examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ Trust us.
It's much nicer to get this alert from Redocly before you ship than from your biggest customer three months later.
## Configuration

|Option|Type|Description|
|---|---|---|
|severity|string|Possible values: `off`, `warn`, `error`. Default `warn`. |
|disallowAdditionalProperties|boolean|Determines if additional properties are allowed in examples. Default `true`. |
|Option|Type| Description |
|---|---|-------------------------------------------------------------------------------|
|severity|string| Possible values: `off`, `warn`, `error`. Default `warn`. |
|allowAdditionalProperties|boolean| Determines if additional properties are allowed in examples. Default `false`. |

An example configuration:

Expand All @@ -50,7 +50,7 @@ styleguide:
rules:
no-invalid-media-type-examples:
severity: error
disallowAdditionalProperties: true
allowAdditionalProperties: false
```
## Examples
Expand All @@ -62,7 +62,7 @@ styleguide:
rules:
no-invalid-media-type-examples:
severity: error
disallowAdditionalProperties: true
allowAdditionalProperties: false
```
Example of an **incorrect** media type example:
Expand Down
12 changes: 6 additions & 6 deletions docs/rules/no-invalid-parameter-examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,17 @@ Solve it before you ship it.

## Configuration

|Option|Type|Description|
|---|---|---|
|severity|string|Possible values: `off`, `warn`, `error`. Default `warn`. |
|disallowAdditionalProperties|boolean|Determines if additional properties are allowed in examples. Default `true`. |
|Option|Type| Description |
|---|---|-------------------------------------------------------------------------------|
|severity|string| Possible values: `off`, `warn`, `error`. Default `warn`. |
|allowAdditionalProperties|boolean| Determines if additional properties are allowed in examples. Default `false`. |

```yaml
styleguide:
rules:
no-invalid-parameter-examples:
severity: error
disallowAdditionalProperties: true
allowAdditionalProperties: false
```
## Examples
Expand All @@ -58,7 +58,7 @@ styleguide:
rules:
no-invalid-parameter-examples:
severity: error
disallowAdditionalProperties: true
allowAdditionalProperties: false
```
Example of **incorrect** parameter example:
Expand Down
12 changes: 6 additions & 6 deletions docs/rules/no-invalid-schema-examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ Solve it before you ship it.

## Configuration

|Option|Type|Description|
|---|---|---|
|severity|string|Possible values: `off`, `warn`, `error`. Default `warn`. |
|disallowAdditionalProperties|boolean|Determines if additional properties are allowed in examples. Default `true`. |
|Option|Type| Description |
|---|---|-------------------------------------------------------------------------------|
|severity|string| Possible values: `off`, `warn`, `error`. Default `warn`. |
|allowAdditionalProperties|boolean| Determines if additional properties are allowed in examples. Default `false`. |

An example configuration:

Expand All @@ -49,7 +49,7 @@ styleguide:
rules:
no-invalid-schema-examples:
severity: error
disallowAdditionalProperties: true
allowAdditionalProperties: false
```
## Examples
Expand All @@ -61,7 +61,7 @@ styleguide:
rules:
no-invalid-schema-examples:
severity: error
disallowAdditionalProperties: true
allowAdditionalProperties: false
```
Example of **incorrect** schema example:
Expand Down
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@redocly/cli",
"version": "1.0.0-beta.106",
"version": "1.0.0-beta.107",
"description": "",
"private": true,
"engines": {
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@redocly/cli",
"version": "1.0.0-beta.106",
"version": "1.0.0-beta.107",
"description": "",
"license": "MIT",
"bin": {
Expand Down Expand Up @@ -35,7 +35,7 @@
"Andriy Leliv <andriy@redoc.ly> (https://redoc.ly/)"
],
"dependencies": {
"@redocly/openapi-core": "1.0.0-beta.106",
"@redocly/openapi-core": "1.0.0-beta.107",
"assert-node-version": "^1.0.3",
"chokidar": "^3.5.1",
"colorette": "^1.2.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/core/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@redocly/openapi-core",
"version": "1.0.0-beta.106",
"version": "1.0.0-beta.107",
"description": "",
"main": "lib/index.js",
"engines": {
Expand Down

1 comment on commit 229f542

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage report

St.
Category Percentage Covered / Total
🟡 Statements 68.6% 2881/4200
🟡 Branches 61.9% 1589/2567
🟡 Functions 60.16% 462/768
🟡 Lines 68.4% 2669/3902

Test suite run success

456 tests passing in 76 suites.

Report generated by 🧪jest coverage report action from 229f542

Please sign in to comment.