ci(spec): enforce WAVE redocly ruleset on openapi.yaml - #47
Conversation
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: serverGenReqId_f67a4617-43ab-45e5-9607-110e163cdff9) |
|
Warning Review limit reachedYou’ve reached a temporary PR review limit under our Fair Usage Limits Policy. Next review available in: 2 minutes Your organization has reached its usage spending cap. Adjust your spending cap in the billing tab. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
Comment |
PR Summary by QodoEnforce WAVE Redocly rules via .redocly.yaml for OpenAPI lint gate
AI Description
Diagram
High-Level Assessment
Files changed (1)
|
Code Review by Qodo🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)
Great, no issues found!Qodo reviewed your code and found no material issues that require reviewTip of the day💡 Did you know, you can group findings by type and pick your Finding display, from Minimal to Full |
Qodo FixerNo findings are available for this PR yet. Findings appear here once Qodo has reviewed the PR. |
… ruleset applies Co-authored-by: Codesmith <codesmith-bot@users.noreply.github.com>
ApprovabilityVerdict: Approved 37d8ee2 This PR adds CI linting configuration for the OpenAPI spec. The change is owned by the author, has no runtime impact, and is a standard CI/CD addition. The unresolved Medium finding about the regex pattern not supporting well-known URIs will block merge independently. You can customize Macroscope's approvability policy. Learn more. |
…ab-case rule Co-authored-by: Codesmith <codesmith-bot@users.noreply.github.com>
North Star Card L6 (CONTRACT) lever. The existing foundation-gate spec-lint job runs bare redocly; this adds
redocly.yamlwhich that job auto-loads, enforcing: operation-summary (error), kebab-case path segments (error), operation-4xx-response (warn, backlog visible). Verified:redocly lintexits 0 on the current spec.Note
Low Risk
CI-only OpenAPI lint configuration with no runtime or API behavior changes; severities are tuned so the current spec still passes.
Overview
Adds
.redocly.yamlso the existingfoundation-gatespec-lintjob (bareredocly lint openapi.yaml) picks up a WAVE ruleset instead of default-only linting.The config extends
recommendedand setsoperation-summaryand a custompath-segments-kebab-caserule toerror, whileoperation-4xx-responsestays atwarnso missing 4xx/5xx docs remain visible in CI without failing the gate until the backlog is fixed. Comments document that severities should tighten over time by fixingopenapi.yaml, not loosening rules.Reviewed by Cursor Bugbot for commit f508c94. Configure here.
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is enabled.Note
Enforce WAVE Redocly ruleset on openapi.yaml via CI lint gate
Adds a redocly.yaml configuration that extends the
recommendedruleset and enforces two additional rules:operation-summary(error) requires all operations to have summaries, and a customrule/path-segments-kebab-case(error) enforces kebab-case path segments with brace-wrapped parameters. A third rule,operation-4xx-response, is set to warn only. Risk: existing OpenAPI operations without summaries or with non-kebab-case path segments will now fail CI.Macroscope summarized 37d8ee2.