Skip to content

Commit 99707e3

Browse files
authored
Merge pull request #242 from JaredCE/0.0.111
0.0.111
2 parents 67327a2 + d308199 commit 99707e3

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1009,18 +1009,18 @@ I am making use of https://www.npmjs.com/package/@redocly/openapi-core, which I
10091009

10101010
I have configured the validator to use these Rules:
10111011

1012-
- [spec](https://redocly.com/docs/cli/rules/spec/)
1013-
- [path-parameters-defined](https://redocly.com/docs/cli/rules/path-parameters-defined/)
1014-
- [operation-2xx-response](https://redocly.com/docs/cli/rules/operation-2xx-response/)
1015-
- [operation-4xx-response](https://redocly.com/docs/cli/rules/operation-4xx-response/)
1016-
- [operation-operationId-unique](https://redocly.com/docs/cli/rules/operation-operationid-unique/)
1017-
- [path-declaration-must-exist](https://redocly.com/docs/cli/rules/path-declaration-must-exist/)
1012+
- [struct](https://redocly.com/docs/cli/rules/oas/struct)
1013+
- [path-parameters-defined](https://redocly.com/docs/cli/rules/oas/path-parameters-defined)
1014+
- [operation-2xx-response](https://redocly.com/docs/cli/rules/oas/operation-2xx-response)
1015+
- [operation-4xx-response](https://redocly.com/docs/cli/rules/oas/operation-4xx-response)
1016+
- [operation-operationId-unique](https://redocly.com/docs/cli/rules/oas/operation-operationId-unique)
1017+
- [path-declaration-must-exist](https://redocly.com/docs/cli/rules/oas/path-declaration-must-exist)
10181018

10191019
However, you can configure your own rules from the [ruleset available on the Redocly site](https://redocly.com/docs/cli/rules/built-in-rules/). To do this, you will need to create a `redocly.json` file within an `options` folder. The file should look like:
10201020

10211021
```json
10221022
{
1023-
"spec": "error",
1023+
"struct": "error",
10241024
"path-parameters-defined": "error",
10251025
"operation-2xx-response": "error",
10261026
"operation-4xx-response": "error",

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "serverless-openapi-documenter",
3-
"version": "0.0.110",
3+
"version": "0.0.111",
44
"description": "Generate OpenAPI v3 documentation and Postman Collections from your Serverless Config",
55
"main": "index.js",
66
"keywords": [

src/definitionGenerator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class DefinitionGenerator {
8181
this.REDOCLY_RULES = require(path.resolve("options", "redocly.json"));
8282
} catch (err) {
8383
this.REDOCLY_RULES = {
84-
spec: "error",
84+
struct: "error",
8585
"path-parameters-defined": "error",
8686
"operation-2xx-response": "error",
8787
"operation-4xx-response": "error",

test/helpers/redocly.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"spec": "error",
2+
"struct": "error",
33
"operation-2xx-response": "warn"
44
}

0 commit comments

Comments
 (0)