Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: v1.0.0-beta.107 #807

Merged
merged 4 commits into from
Aug 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
IgorKarpiuk marked this conversation as resolved.
Show resolved Hide resolved

### 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",
IgorKarpiuk marked this conversation as resolved.
Show resolved Hide resolved
"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