University of Vienna · API Governance Rules
University of Vienna API Rules
Spectral linting rules defining API design standards and conventions for University of Vienna.
7 Rules
error 2
warn 4
info 1
Rule Categories
phaidra
Rules
error
phaidra-info-title
API document must declare an info.title.
$.info
error
phaidra-info-version
API document must declare an info.version.
$.info
warn
phaidra-server-https
Production servers should use HTTPS (PHAIDRA is served over TLS).
$.servers[*].url
warn
phaidra-operation-tags
Every operation should carry at least one tag (object-basics, search, directory, etc.).
$.paths[*][get,post,put,delete,patch]
warn
phaidra-operation-summary
Every operation should have a human-readable summary.
$.paths[*][get,post,put,delete,patch]
info
phaidra-pid-path-param
Object paths use a {pid} path parameter for the persistent identifier.
$.paths[?(@property.match(/object\/\{pid\}/))]
warn
phaidra-security-defined
Components should define the basicAuth / tokenAuth security schemes used by PHAIDRA.
$.components.securitySchemes