Red Hat Enterprise Linux · API Governance Rules

Red Hat Enterprise Linux API Rules

Spectral linting rules defining API design standards and conventions for Red Hat Enterprise Linux.

9 Rules error 4 warn 5
View Rules File View on GitHub

Rule Categories

rhel

Rules

warn
rhel-operation-summary-title-case
All operation summaries must use Title Case
$.paths[*][get,post,put,patch,delete].summary
warn
rhel-operation-id-kebab-case
Operation IDs should be camelCase
$.paths[*][get,post,put,patch,delete].operationId
warn
rhel-tags-must-be-title-case
Tags must use Title Case
$.paths[*][get,post,put,patch,delete].tags[*]
error
rhel-must-have-security
All operations must define security requirements
$.paths[*][get,post,put,patch,delete]
error
rhel-responses-must-include-200
GET operations must return a 200 response
$.paths[*].get
warn
rhel-json-response-content-type
API responses must use application/json content type
$.paths[*][get].responses[200].content
warn
rhel-parameters-must-have-description
All parameters must have a description
$.paths[*][get,post,put,patch,delete].parameters[*]
error
rhel-path-params-must-be-required
Path parameters must be marked as required
$.paths[*][get,post,put,patch,delete].parameters[?(@.in == 'path')]
error
rhel-server-must-be-https
All servers must use HTTPS
$.servers[*].url

Spectral Ruleset

Raw ↑
rules:
  rhel-operation-summary-title-case:
    description: All operation summaries must use Title Case
    severity: warn
    given: "$.paths[*][get,post,put,patch,delete].summary"
    then:
      function: pattern
      functionOptions:
        match: "^([A-Z][a-z]* )*[A-Z][a-z]*$"

  rhel-operation-id-kebab-case:
    description: Operation IDs should be camelCase
    severity: warn
    given: "$.paths[*][get,post,put,patch,delete].operationId"
    then:
      function: pattern
      functionOptions:
        match: "^[a-z][a-zA-Z0-9]*$"

  rhel-tags-must-be-title-case:
    description: Tags must use Title Case
    severity: warn
    given: "$.paths[*][get,post,put,patch,delete].tags[*]"
    then:
      function: pattern
      functionOptions:
        match: "^[A-Z][a-zA-Z0-9 ]*$"

  rhel-must-have-security:
    description: All operations must define security requirements
    severity: error
    given: "$.paths[*][get,post,put,patch,delete]"
    then:
      field: security
      function: defined

  rhel-responses-must-include-200:
    description: GET operations must return a 200 response
    severity: error
    given: "$.paths[*].get"
    then:
      field: responses.200
      function: defined

  rhel-json-response-content-type:
    description: API responses must use application/json content type
    severity: warn
    given: "$.paths[*][get].responses[200].content"
    then:
      field: application/json
      function: defined

  rhel-parameters-must-have-description:
    description: All parameters must have a description
    severity: warn
    given: "$.paths[*][get,post,put,patch,delete].parameters[*]"
    then:
      field: description
      function: defined

  rhel-path-params-must-be-required:
    description: Path parameters must be marked as required
    severity: error
    given: "$.paths[*][get,post,put,patch,delete].parameters[?(@.in == 'path')]"
    then:
      field: required
      function: truthy

  rhel-server-must-be-https:
    description: All servers must use HTTPS
    severity: error
    given: "$.servers[*].url"
    then:
      function: pattern
      functionOptions:
        match: "^https://"

Work with this as data

Every ruleset here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for spectral rules

4 MCP tools reach this
  • find_rulesBrowse and filter every ruleset in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This ruleset
curl "https://apis.io/api/v1/rules/rhel-rules"
All spectral rules
curl "https://apis.io/api/v1/rules?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.