mirror of
https://github.com/ubicloud/ubicloud.git
synced 2025-10-05 22:31:57 +08:00
Recently, Redocly CLI v2 was released with some breaking changes. Dependabot opened a PR to upgrade it, but the linter failed on our API spec with the following error [^1]: [1] openapi/openapi.yml:2585:21 at #/components/responses/LoadBalancer/content/application~1json/schema/allOf/1/required/0 Required property 'location' is undefined. 2583 | additionalProperties: false 2584 | required: 2585 | - location 2586 | - subnet 2587 | - vms While reviewing the migration guide from v1 to v2 [^2], I found that v2 introduces a new `spec` ruleset that enforces OpenAPI specification compliance. Adding this ruleset to our configuration resolved the issue and allowed the linter to pass. [^1]: https://github.com/ubicloud/ubicloud/actions/runs/17173012435/job/48725151615?pr=3754 [^2]: https://redocly.com/docs/cli/guides/migrate-to-v2#spec-ruleset
19 lines
582 B
JSON
19 lines
582 B
JSON
{
|
|
"devDependencies": {
|
|
"@redocly/cli": "^2.0.7",
|
|
"@stoplight/spectral-cli": "^6.15.0",
|
|
"@tailwindcss/forms": "^0.5.10",
|
|
"@tailwindcss/typography": "^0.5.16",
|
|
"openapi-format": "^1.27.2",
|
|
"tailwindcss": "^3.4.17"
|
|
},
|
|
"scripts": {
|
|
"dev": "npx tailwindcss -o assets/css/app.css -i assets/css/tailwind.css",
|
|
"prod": "npx tailwindcss -o assets/css/app.css -i assets/css/tailwind.css --minify",
|
|
"watch": "npx tailwindcss -o assets/css/app.css -i assets/css/tailwind.css --watch"
|
|
},
|
|
"engines": {
|
|
"node": "24.6.0",
|
|
"npm": "11.5.2"
|
|
}
|
|
}
|