mirror of
https://github.com/LukeHagar/redocly-cli.git
synced 2025-12-06 04:21:09 +00:00
chore: update Redocly config to v0.9.0 (#1667)
This commit is contained in:
5
.changeset/silent-balloons-add.md
Normal file
5
.changeset/silent-balloons-add.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@redocly/openapi-core": patch
|
||||
---
|
||||
|
||||
Updated @redocly/config to v0.9.0.
|
||||
@@ -114,7 +114,7 @@ developerOnboarding:
|
||||
# serviceAccountPrivateKey: Must be reported as a missing required prop
|
||||
serviceAccountEmail: 789 # Must be a string
|
||||
|
||||
i18n:
|
||||
l10n:
|
||||
defaultLocale: en-US
|
||||
locales:
|
||||
- code: 123 # Must be a string
|
||||
@@ -191,18 +191,14 @@ theme:
|
||||
graphql:
|
||||
pagination: section
|
||||
menu:
|
||||
{
|
||||
initialLoadState: 'default',
|
||||
requireExactGroups: false,
|
||||
requireExactGroups: false
|
||||
groups:
|
||||
[
|
||||
{
|
||||
name: 'GraphQL custom group',
|
||||
directives: { includeByName: ['cacheControl', 'typeDirective'] },
|
||||
},
|
||||
],
|
||||
otherItemsGroupName: 'Other',
|
||||
}
|
||||
- name: 'GraphQL custom group'
|
||||
directives:
|
||||
includeByName:
|
||||
- cacheControl
|
||||
- typeDirective
|
||||
otherItemsGroupName: 'Other'
|
||||
sidebar:
|
||||
separatorLine: true
|
||||
linePosition: top
|
||||
|
||||
@@ -528,12 +528,12 @@ Expected type \`string\` but got \`integer\`.
|
||||
115 | serviceAccountEmail: 789 # Must be a string
|
||||
| ^^^
|
||||
116 |
|
||||
117 | i18n:
|
||||
117 | l10n:
|
||||
|
||||
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\`.
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ Warning was generated by the configuration spec rule.
|
||||
|
||||
Property \`lint\` is not expected here.
|
||||
|
||||
Did you mean: env ?
|
||||
Did you mean:
|
||||
- l10n
|
||||
- env
|
||||
|
||||
2 | main: ./openapi.yaml
|
||||
3 |
|
||||
|
||||
@@ -7,7 +7,9 @@ The 'lint' field is deprecated. Read more about this change: https://redocly.com
|
||||
|
||||
Property \`lint\` is not expected here.
|
||||
|
||||
Did you mean: env ?
|
||||
Did you mean:
|
||||
- l10n
|
||||
- env
|
||||
|
||||
6 | operation-4xx-response: error
|
||||
7 |
|
||||
|
||||
@@ -19,7 +19,7 @@ module.exports = {
|
||||
},
|
||||
'packages/cli/': {
|
||||
statements: 60,
|
||||
branches: 50,
|
||||
branches: 49,
|
||||
functions: 60,
|
||||
lines: 60,
|
||||
},
|
||||
|
||||
16
package-lock.json
generated
16
package-lock.json
generated
@@ -3525,9 +3525,9 @@
|
||||
"link": true
|
||||
},
|
||||
"node_modules/@redocly/config": {
|
||||
"version": "0.7.0",
|
||||
"resolved": "https://registry.npmjs.org/@redocly/config/-/config-0.7.0.tgz",
|
||||
"integrity": "sha512-6GKxTo/9df0654Mtivvr4lQnMOp+pRj9neVywmI5+BwfZLTtkJnj2qB3D6d8FHTr4apsNOf6zTa5FojX0Evh4g=="
|
||||
"version": "0.9.0",
|
||||
"resolved": "https://registry.npmjs.org/@redocly/config/-/config-0.9.0.tgz",
|
||||
"integrity": "sha512-rRd0pSiPC68AQGud2VbrHqUov1VHospfcYE2pFYmGYfZhzZfHBSiVaeiTY+CZmrhf5RB9aVdOHRCm25Vb6GFkQ=="
|
||||
},
|
||||
"node_modules/@redocly/openapi-core": {
|
||||
"resolved": "packages/core",
|
||||
@@ -13814,7 +13814,7 @@
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@redocly/ajv": "^8.11.0",
|
||||
"@redocly/config": "^0.7.0",
|
||||
"@redocly/config": "^0.9.0",
|
||||
"colorette": "^1.2.0",
|
||||
"https-proxy-agent": "^7.0.4",
|
||||
"js-levenshtein": "^1.1.6",
|
||||
@@ -16516,15 +16516,15 @@
|
||||
}
|
||||
},
|
||||
"@redocly/config": {
|
||||
"version": "0.7.0",
|
||||
"resolved": "https://registry.npmjs.org/@redocly/config/-/config-0.7.0.tgz",
|
||||
"integrity": "sha512-6GKxTo/9df0654Mtivvr4lQnMOp+pRj9neVywmI5+BwfZLTtkJnj2qB3D6d8FHTr4apsNOf6zTa5FojX0Evh4g=="
|
||||
"version": "0.9.0",
|
||||
"resolved": "https://registry.npmjs.org/@redocly/config/-/config-0.9.0.tgz",
|
||||
"integrity": "sha512-rRd0pSiPC68AQGud2VbrHqUov1VHospfcYE2pFYmGYfZhzZfHBSiVaeiTY+CZmrhf5RB9aVdOHRCm25Vb6GFkQ=="
|
||||
},
|
||||
"@redocly/openapi-core": {
|
||||
"version": "file:packages/core",
|
||||
"requires": {
|
||||
"@redocly/ajv": "^8.11.0",
|
||||
"@redocly/config": "^0.7.0",
|
||||
"@redocly/config": "^0.9.0",
|
||||
"@types/js-levenshtein": "^1.1.0",
|
||||
"@types/js-yaml": "^4.0.3",
|
||||
"@types/lodash.isequal": "^4.5.5",
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
],
|
||||
"dependencies": {
|
||||
"@redocly/ajv": "^8.11.0",
|
||||
"@redocly/config": "^0.7.0",
|
||||
"@redocly/config": "^0.9.0",
|
||||
"colorette": "^1.2.0",
|
||||
"https-proxy-agent": "^7.0.4",
|
||||
"js-levenshtein": "^1.1.6",
|
||||
|
||||
@@ -127,7 +127,7 @@ const testPortalConfig = parseYamlToDocument(
|
||||
# serviceAccountPrivateKey: Must be reported as a missing required prop
|
||||
serviceAccountEmail: 789 # Must be a string
|
||||
|
||||
i18n:
|
||||
l10n:
|
||||
defaultLocale: en-US
|
||||
locales:
|
||||
- code: 123 # Must be a string
|
||||
@@ -201,18 +201,14 @@ const testPortalConfig = parseYamlToDocument(
|
||||
graphql:
|
||||
pagination: section
|
||||
menu:
|
||||
{
|
||||
initialLoadState: 'default',
|
||||
requireExactGroups: false,
|
||||
requireExactGroups: false
|
||||
groups:
|
||||
[
|
||||
{
|
||||
name: 'GraphQL custom group',
|
||||
directives: { includeByName: ['cacheControl', 'typeDirective'] },
|
||||
},
|
||||
],
|
||||
otherItemsGroupName: 'Other',
|
||||
}
|
||||
- name: 'GraphQL custom group'
|
||||
directives:
|
||||
includeByName:
|
||||
- cacheControl
|
||||
- typeDirective
|
||||
otherItemsGroupName: 'Other'
|
||||
sidebar:
|
||||
separatorLine: true
|
||||
linePosition: top
|
||||
@@ -1048,7 +1044,7 @@ describe('lint', () => {
|
||||
"from": undefined,
|
||||
"location": [
|
||||
{
|
||||
"pointer": "#/i18n/locales/0/code",
|
||||
"pointer": "#/l10n/locales/0/code",
|
||||
"reportOnKey": false,
|
||||
"source": "",
|
||||
},
|
||||
@@ -1252,12 +1248,12 @@ describe('lint', () => {
|
||||
"from": undefined,
|
||||
"location": [
|
||||
{
|
||||
"pointer": "#/i18n",
|
||||
"pointer": "#/l10n",
|
||||
"reportOnKey": true,
|
||||
"source": "",
|
||||
},
|
||||
],
|
||||
"message": "Property \`i18n\` is not expected here.",
|
||||
"message": "Property \`l10n\` is not expected here.",
|
||||
"ruleId": "configuration spec",
|
||||
"severity": "error",
|
||||
"suggest": [],
|
||||
|
||||
Reference in New Issue
Block a user