chore: update Redocly config to v0.9.0 (#1667)

This commit is contained in:
Andrew Tatomyr
2024-08-21 11:44:23 +03:00
committed by GitHub
parent 3b3a2332ce
commit 013e91fbf9
9 changed files with 44 additions and 43 deletions

View File

@@ -0,0 +1,5 @@
---
"@redocly/openapi-core": patch
---
Updated @redocly/config to v0.9.0.

View File

@@ -114,7 +114,7 @@ developerOnboarding:
# serviceAccountPrivateKey: Must be reported as a missing required prop # serviceAccountPrivateKey: Must be reported as a missing required prop
serviceAccountEmail: 789 # Must be a string serviceAccountEmail: 789 # Must be a string
i18n: l10n:
defaultLocale: en-US defaultLocale: en-US
locales: locales:
- code: 123 # Must be a string - code: 123 # Must be a string
@@ -191,18 +191,14 @@ theme:
graphql: graphql:
pagination: section pagination: section
menu: menu:
{ requireExactGroups: false
initialLoadState: 'default', groups:
requireExactGroups: false, - name: 'GraphQL custom group'
groups: directives:
[ includeByName:
{ - cacheControl
name: 'GraphQL custom group', - typeDirective
directives: { includeByName: ['cacheControl', 'typeDirective'] }, otherItemsGroupName: 'Other'
},
],
otherItemsGroupName: 'Other',
}
sidebar: sidebar:
separatorLine: true separatorLine: true
linePosition: top linePosition: top

View File

@@ -528,12 +528,12 @@ Expected type \`string\` but got \`integer\`.
115 | serviceAccountEmail: 789 # Must be a string 115 | serviceAccountEmail: 789 # Must be a string
| ^^^ | ^^^
116 | 116 |
117 | i18n: 117 | l10n:
Error was generated by the configuration spec rule. Error was generated by the configuration spec rule.
[38] .redocly.yaml:120:13 at #/i18n/locales/0/code [38] .redocly.yaml:120:13 at #/l10n/locales/0/code
Expected type \`string\` but got \`integer\`. Expected type \`string\` but got \`integer\`.

View File

@@ -20,7 +20,9 @@ Warning was generated by the configuration spec rule.
Property \`lint\` is not expected here. Property \`lint\` is not expected here.
Did you mean: env ? Did you mean:
- l10n
- env
2 | main: ./openapi.yaml 2 | main: ./openapi.yaml
3 | 3 |

View File

@@ -7,7 +7,9 @@ The 'lint' field is deprecated. Read more about this change: https://redocly.com
Property \`lint\` is not expected here. Property \`lint\` is not expected here.
Did you mean: env ? Did you mean:
- l10n
- env
6 | operation-4xx-response: error 6 | operation-4xx-response: error
7 | 7 |

View File

@@ -19,7 +19,7 @@ module.exports = {
}, },
'packages/cli/': { 'packages/cli/': {
statements: 60, statements: 60,
branches: 50, branches: 49,
functions: 60, functions: 60,
lines: 60, lines: 60,
}, },

16
package-lock.json generated
View File

@@ -3525,9 +3525,9 @@
"link": true "link": true
}, },
"node_modules/@redocly/config": { "node_modules/@redocly/config": {
"version": "0.7.0", "version": "0.9.0",
"resolved": "https://registry.npmjs.org/@redocly/config/-/config-0.7.0.tgz", "resolved": "https://registry.npmjs.org/@redocly/config/-/config-0.9.0.tgz",
"integrity": "sha512-6GKxTo/9df0654Mtivvr4lQnMOp+pRj9neVywmI5+BwfZLTtkJnj2qB3D6d8FHTr4apsNOf6zTa5FojX0Evh4g==" "integrity": "sha512-rRd0pSiPC68AQGud2VbrHqUov1VHospfcYE2pFYmGYfZhzZfHBSiVaeiTY+CZmrhf5RB9aVdOHRCm25Vb6GFkQ=="
}, },
"node_modules/@redocly/openapi-core": { "node_modules/@redocly/openapi-core": {
"resolved": "packages/core", "resolved": "packages/core",
@@ -13814,7 +13814,7 @@
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@redocly/ajv": "^8.11.0", "@redocly/ajv": "^8.11.0",
"@redocly/config": "^0.7.0", "@redocly/config": "^0.9.0",
"colorette": "^1.2.0", "colorette": "^1.2.0",
"https-proxy-agent": "^7.0.4", "https-proxy-agent": "^7.0.4",
"js-levenshtein": "^1.1.6", "js-levenshtein": "^1.1.6",
@@ -16516,15 +16516,15 @@
} }
}, },
"@redocly/config": { "@redocly/config": {
"version": "0.7.0", "version": "0.9.0",
"resolved": "https://registry.npmjs.org/@redocly/config/-/config-0.7.0.tgz", "resolved": "https://registry.npmjs.org/@redocly/config/-/config-0.9.0.tgz",
"integrity": "sha512-6GKxTo/9df0654Mtivvr4lQnMOp+pRj9neVywmI5+BwfZLTtkJnj2qB3D6d8FHTr4apsNOf6zTa5FojX0Evh4g==" "integrity": "sha512-rRd0pSiPC68AQGud2VbrHqUov1VHospfcYE2pFYmGYfZhzZfHBSiVaeiTY+CZmrhf5RB9aVdOHRCm25Vb6GFkQ=="
}, },
"@redocly/openapi-core": { "@redocly/openapi-core": {
"version": "file:packages/core", "version": "file:packages/core",
"requires": { "requires": {
"@redocly/ajv": "^8.11.0", "@redocly/ajv": "^8.11.0",
"@redocly/config": "^0.7.0", "@redocly/config": "^0.9.0",
"@types/js-levenshtein": "^1.1.0", "@types/js-levenshtein": "^1.1.0",
"@types/js-yaml": "^4.0.3", "@types/js-yaml": "^4.0.3",
"@types/lodash.isequal": "^4.5.5", "@types/lodash.isequal": "^4.5.5",

View File

@@ -36,7 +36,7 @@
], ],
"dependencies": { "dependencies": {
"@redocly/ajv": "^8.11.0", "@redocly/ajv": "^8.11.0",
"@redocly/config": "^0.7.0", "@redocly/config": "^0.9.0",
"colorette": "^1.2.0", "colorette": "^1.2.0",
"https-proxy-agent": "^7.0.4", "https-proxy-agent": "^7.0.4",
"js-levenshtein": "^1.1.6", "js-levenshtein": "^1.1.6",

View File

@@ -127,7 +127,7 @@ const testPortalConfig = parseYamlToDocument(
# serviceAccountPrivateKey: Must be reported as a missing required prop # serviceAccountPrivateKey: Must be reported as a missing required prop
serviceAccountEmail: 789 # Must be a string serviceAccountEmail: 789 # Must be a string
i18n: l10n:
defaultLocale: en-US defaultLocale: en-US
locales: locales:
- code: 123 # Must be a string - code: 123 # Must be a string
@@ -201,18 +201,14 @@ const testPortalConfig = parseYamlToDocument(
graphql: graphql:
pagination: section pagination: section
menu: menu:
{ requireExactGroups: false
initialLoadState: 'default', groups:
requireExactGroups: false, - name: 'GraphQL custom group'
groups: directives:
[ includeByName:
{ - cacheControl
name: 'GraphQL custom group', - typeDirective
directives: { includeByName: ['cacheControl', 'typeDirective'] }, otherItemsGroupName: 'Other'
},
],
otherItemsGroupName: 'Other',
}
sidebar: sidebar:
separatorLine: true separatorLine: true
linePosition: top linePosition: top
@@ -1048,7 +1044,7 @@ describe('lint', () => {
"from": undefined, "from": undefined,
"location": [ "location": [
{ {
"pointer": "#/i18n/locales/0/code", "pointer": "#/l10n/locales/0/code",
"reportOnKey": false, "reportOnKey": false,
"source": "", "source": "",
}, },
@@ -1252,12 +1248,12 @@ describe('lint', () => {
"from": undefined, "from": undefined,
"location": [ "location": [
{ {
"pointer": "#/i18n", "pointer": "#/l10n",
"reportOnKey": true, "reportOnKey": true,
"source": "", "source": "",
}, },
], ],
"message": "Property \`i18n\` is not expected here.", "message": "Property \`l10n\` is not expected here.",
"ruleId": "configuration spec", "ruleId": "configuration spec",
"severity": "error", "severity": "error",
"suggest": [], "suggest": [],