Purdue University · API Governance Rules
Purdue University API Rules
Spectral linting rules defining API design standards and conventions for Purdue University.
6 Rules
error 3
warn 3
Rule Categories
purdue
Rules
warn
purdue-info-contact
API info must include a contact pointing at the Purdue.io project.
$.info
error
purdue-server-is-odata
The server URL should be the Purdue.io OData base.
$.servers[*].url
error
purdue-operation-ids
Every operation must declare an operationId.
$.paths[*][*]
warn
purdue-entity-id-is-uuid
Entity Id properties must be declared as string/uuid (OData Edm.Guid).
$.components.schemas[*].properties.Id
warn
purdue-collections-have-value-array
OData collection wrappers must expose a value array property.
$.components.schemas[?(@property.match(/Collection$/))].properties
error
purdue-read-only
This is a read-only catalog; write methods are not expected.
$.paths[*]