University of Warsaw · API Governance Rules
University of Warsaw API Rules
Spectral linting rules defining API design standards and conventions for University of Warsaw.
7 Rules
error 1
warn 4
info 2
Rule Categories
usos
Rules
warn
usos-info-contact
USOS API spec should declare a contact.
$.info
error
usos-server-https
USOS API servers must use HTTPS even though base_url advertises http.
$.servers[*].url
warn
usos-operation-external-docs
Each USOS operation should link back to its reference page.
$.paths[*][get]
info
usos-fields-parameter
USOS read operations that return field-selectable objects should expose a "fields" selector parameter.
$.paths[*][get].parameters
warn
usos-format-parameter-enum
The format parameter should be limited to supported output formats.
$..parameters[?(@.name=='format')].schema
warn
usos-error-envelope
An Error schema with error/message fields should be defined.
$.components.schemas.Error.properties
info
usos-langdict-defined
A LangDict schema should be defined for localized strings.
$.components.schemas