Skip to content

Instantly share code, notes, and snippets.

@ikenna
Created February 12, 2025 12:21
Show Gist options
  • Save ikenna/a87a22c4ca0147214b10ed562043d2b1 to your computer and use it in GitHub Desktop.
Save ikenna/a87a22c4ca0147214b10ed562043d2b1 to your computer and use it in GitHub Desktop.
redocly.yaml
rules:
rule/info-description:
subject:
type: Info
property: description
assertions:
defined: true
rule/delete-should-not-define-requestBody:
severity: warn
message: '"DELETE" SHOULD NOT define a "requestBody" schema'
subject:
type: Operation
filterInParentKeys:
- delete
assertions:
disallowed:
- requestBody
rule/operation-summary-sentence-case:
subject:
type: Operation
property: summary
message: "Operation summary must be sentence cased."
assertions:
pattern: /^[A-Z]+[^A-Z]+$/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment