Skip to content

Conversation

@alxndrsn
Copy link
Contributor

@alxndrsn alxndrsn commented Dec 20, 2025

This updates the redocly rules per Redocly/redocly-cli-cookbook#12 to enforce all error-level (required) rules in the spec-compliant ruleset.

See: https://github.com/Redocly/redocly-cli-cookbook/tree/main/rulesets/spec-compliant

Closes getodk/central#1226, as this should enforce a higher standard than the minimal ruleset.

What has been done to verify that this works as intended?

  • ran make api-docs-lint locally
  • CI

Why is this the best possible solution? Were any other approaches considered?

Turns on some more rules, without requiring any changes to docs yaml.

How does this change affect users? Describe intentional changes to behavior and behavior that could have accidentally been affected by code changes. In other words, what are the regression risks?

Should help prevent regressions for people using the docs for OpenAPI-based integrations.

Does this change require updates to the API documentation? If so, please update docs/api.yaml as part of this PR.

Surprisingly no.

Before submitting this PR, please make sure you have:

  • run make test and confirmed all checks still pass OR confirm CircleCI build passes
  • verified that any code from external sources are properly credited in comments or that everything is internally sourced

This updates the redocly rules per Redocly/redocly-cli-cookbook#12 to enforce all error-level rules in the `spec-compliant` ruleset.

Closes getodk/central#1226, as this should enforce a higher standard than the `minimal` ruleset.
@alxndrsn alxndrsn marked this pull request as ready for review December 20, 2025 19:37
@alxndrsn alxndrsn requested a review from sadiqkhoja December 20, 2025 19:37
@alxndrsn alxndrsn changed the title docs: enfoce all spec-compliant OpenAPI/redocly rules docs: enforce all spec-compliant OpenAPI/redocly rules Dec 20, 2025
alxndrsn pushed a commit to alxndrsn/odk-central-backend that referenced this pull request Dec 20, 2025
Add missing rules from the `spec-compliant` ruleset at `warn` level for recommended rules.

See: https://github.com/Redocly/redocly-cli-cookbook/tree/main/rulesets/spec-compliant

Follow up to getodk#1723
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

API docs fail non-minimal linting

1 participant