FOLIO · API Governance Rules
FOLIO API Rules
Spectral linting rules defining API design standards and conventions for FOLIO.
9 Rules
error 3
warn 5
info 1
Published by FOLIO
Served by the provider at https://github.com/folio-org/mod-record-specifications/blob/0d5ec1fe5628eb7355fa3feefa30d89e929d543e/.spectral.yaml; the copy below was fetched from there.
Rule Categories
docs
schema
Rules
warn
docs-descriptions
Descriptions should be provided for describable objects, such as `info`, `tags`, `operations`, `parameters`, and more.
#DescribableObjects
warn
docs-info-contact
`Info` object should include contact information.
$
info
docs-parameters-examples-or-schema
Path parameter must contain a defined schema or examples.
$.paths.parameters[*]
error
docs-summary
Path parameter must contain a defined schema or examples.
#PathItem[*]
warn
docs-media-types-examples-or-schema
Media object must contain a defined schema or examples.
#MediaTypeObjects
warn
docs-tags-alphabetical
Tags are not in alphabetical order.
$
warn
docs-operation-tags
Operation must have at least one tag.
#OperationObject
error
schema-fields-descriptions
Each field in schema should have description
$..[?(@ && @.properties)].properties.*
error
schema-descriptions
Each schema should have description and title
$..[?(@ && @.properties)]
Spectral Ruleset
Work with this as data
Every ruleset here is available over the APIs.io API and to AI agents over MCP.