University of Sheffield · API Governance Rules

University of Sheffield API Rules

Spectral linting rules defining API design standards and conventions for University of Sheffield.

10 Rules error 3 warn 7
View Rules File View on GitHub

Rule Categories

uos

Rules

error
uos-info-title
API must declare a title.
$.info
warn
uos-info-description
API should describe itself. The institution's published document does not — the description in this repo's refined copy was added by API Evangelist from the provider's own public docs and is marked as such.
$.info
warn
uos-info-contact
API should name a contact. Absent from the published source document.
$.info
error
uos-servers-declared
A contract must say where it is callable. The published source document ships no servers block; the host was recovered by probe.
$
warn
uos-version-not-placeholder
info.version must not be the framework default 0.1.0 — the observed value. Path-level versions (v4, v5) carry the real version signal instead.
$.info.version
warn
uos-operation-tagged
Every operation should carry a tag. Observed 43 paths, of which the /user/* HTML form routes are untagged.
$.paths[*][get,post,put,patch,delete]
error
uos-operation-id
Every operation should carry an operationId. Satisfied throughout.
$.paths[*][get,post,put,patch,delete]
warn
uos-operation-summary
Every operation should carry a summary. Satisfied throughout.
$.paths[*][get,post,put,patch,delete]
warn
uos-path-lowercase
Path segments are lower_snake_case throughout this API.
$.paths[*]~
warn
uos-security-schemes-declared
Declared security schemes must exist. Note that the runtime X-User-Id header enforced on PV_Forecast is NOT among them — see authentication/.
$.components

Spectral Ruleset

Raw ↑
# x-method: derived
# source: openapi/university-of-sheffield-sheffield-solar-api-openapi.yml
# generated: 2026-08-30
#
# Spectral ruleset encoding the conventions actually observed in the University
# of Sheffield's own Sheffield Solar API, plus the two contract gaps that API
# Evangelist measured in it (no servers block, placeholder info.version).
# Measured, not aspirational: every rule below is either satisfied by the
# institution's published document or names a gap this profile recorded.
---
formats:
  - oas3
rules:
  uos-info-title:
    description: API must declare a title.
    severity: error
    given: $.info
    then:
      field: title
      function: truthy
  uos-info-description:
    description: >-
      API should describe itself. The institution's published document does not —
      the description in this repo's refined copy was added by API Evangelist from
      the provider's own public docs and is marked as such.
    severity: warn
    given: $.info
    then:
      field: description
      function: truthy
  uos-info-contact:
    description: API should name a contact. Absent from the published source document.
    severity: warn
    given: $.info
    then:
      field: contact
      function: truthy
  uos-servers-declared:
    description: >-
      A contract must say where it is callable. The published source document ships
      no servers block; the host was recovered by probe.
    severity: error
    given: $
    then:
      field: servers
      function: truthy
  uos-version-not-placeholder:
    description: >-
      info.version must not be the framework default 0.1.0 — the observed value.
      Path-level versions (v4, v5) carry the real version signal instead.
    severity: warn
    given: $.info.version
    then:
      function: pattern
      functionOptions:
        notMatch: '^0\.1\.0$'
  uos-operation-tagged:
    description: >-
      Every operation should carry a tag. Observed 43 paths, of which the /user/*
      HTML form routes are untagged.
    severity: warn
    given: $.paths[*][get,post,put,patch,delete]
    then:
      field: tags
      function: truthy
  uos-operation-id:
    description: Every operation should carry an operationId. Satisfied throughout.
    severity: error
    given: $.paths[*][get,post,put,patch,delete]
    then:
      field: operationId
      function: truthy
  uos-operation-summary:
    description: Every operation should carry a summary. Satisfied throughout.
    severity: warn
    given: $.paths[*][get,post,put,patch,delete]
    then:
      field: summary
      function: truthy
  uos-path-lowercase:
    description: Path segments are lower_snake_case throughout this API.
    severity: warn
    given: $.paths[*]~
    then:
      function: pattern
      functionOptions:
        match: '^[a-z0-9_{}/\-]+$'
  uos-security-schemes-declared:
    description: >-
      Declared security schemes must exist. Note that the runtime X-User-Id header
      enforced on PV_Forecast is NOT among them — see authentication/.
    severity: warn
    given: $.components
    then:
      field: securitySchemes
      function: truthy

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/university-of-sheffield-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.