University of Western Australia · API Governance Rules
University of Western Australia API Rules
Spectral linting rules defining API design standards and conventions for University of Western Australia.
7 Rules
error 2
warn 3
info 2
Rule Categories
uwa
Rules
error
uwa-info-version-present
Info object must carry the Pure web service version (e.g. 524).
$.info
warn
uwa-server-versioned-basepath
Server URL should target the versioned Pure web service base path /ws/api/.
$.servers[*].url
error
uwa-apikey-security-defined
An apiKey security scheme must be defined; Pure requires a query or header API key.
$.components.securitySchemes
warn
uwa-apikey-scheme-type
Every declared security scheme should be of type apiKey (Pure does not use OAuth2/HTTP auth on the legacy web service).
$.components.securitySchemes[*]
warn
uwa-operation-tagged
Every operation should be tagged with a Pure resource family (persons, research-outputs, etc.).
$.paths[*][get,put,post,delete]
info
uwa-ws-schema-naming
Pure response/object schemas use the WS prefix (e.g. WSPerson, WSResearchOutput).
$.components.schemas
info
uwa-list-result-envelope
List-result schemas should expose the standard count + items envelope used across Pure collections.
$.components.schemas[?(@property.match(/ListResult$/))].properties