Taddy API · API Governance Rules
Taddy API API Rules
Spectral linting rules defining API design standards and conventions for Taddy API.
8 Rules
error 3
warn 4
info 1
Rule Categories
taddy
Rules
error
taddy-graphql-endpoint-must-be-post
Taddy GraphQL API only accepts POST requests
$.paths['/'].get
error
taddy-request-must-include-query
All GraphQL requests must include a query field
$.paths['/'].post.requestBody.content['application/json'].schema
warn
taddy-auth-headers-documented
API must document X-API-KEY and X-USER-ID authentication headers
$.components.securitySchemes
info
taddy-operations-have-examples
GraphQL operations should include request examples
$.paths['/'].post.requestBody.content['application/json'].examples
warn
taddy-response-includes-data-field
GraphQL responses should document the data wrapper
$.paths['/'].post.responses['200'].content['application/json'].schema.properties
warn
taddy-schemas-have-descriptions
All schema components should have descriptions
$.components.schemas[*]
error
taddy-uuid-fields-are-strings
UUID identifier fields must be typed as string
$.components.schemas[*].properties.uuid
warn
taddy-url-fields-use-uri-format
URL fields should use format uri
$.components.schemas[*].properties[*Url]