Prismatic · API Governance Rules
Prismatic API Rules
Spectral linting rules defining API design standards and conventions for Prismatic.
16 Rules
error 6
warn 8
Rule Categories
prismatic
Rules
error
prismatic-operation-summary-required
Every operation MUST have a summary.
$.paths[*][get,post,put,patch,delete]
warn
prismatic-operation-summary-title-case
Operation summaries MUST be Title Case per the API Evangelist convention.
$.paths[*][get,post,put,patch,delete].summary
hint
prismatic-operation-summary-prefix
Operation summaries SHOULD begin with the brand prefix "Prismatic".
$.paths[*][get,post,put,patch,delete].summary
error
prismatic-operation-id-required
Every operation MUST have an operationId.
$.paths[*][get,post,put,patch,delete]
warn
prismatic-operation-id-camel-case
operationId MUST be camelCase.
$.paths[*][get,post,put,patch,delete].operationId
error
prismatic-operation-tags-required
Every operation MUST have at least one tag.
$.paths[*][get,post,put,patch,delete]
warn
prismatic-tags-title-case
Tags MUST be Title Case.
$.tags[*].name
error
prismatic-server-https
All server URLs MUST use HTTPS.
$.servers[*].url
warn
prismatic-server-host
All server URLs MUST be on the prismatic.io domain.
$.servers[*].url
error
prismatic-bearer-auth-defined
The bearerAuth security scheme MUST be defined.
$.components.securitySchemes
warn
prismatic-non-auth-operations-require-bearer
Non-auth operations SHOULD declare bearerAuth security.
$.paths[?([email protected](/^\/(auth|get_auth_token)/))][get,post,put,patch,delete]
hint
prismatic-response-401-on-protected
Protected operations SHOULD document a 401 response.
$.paths[?([email protected](/^\/(auth|get_auth_token)/))][get,post,put,patch,delete].responses
warn
prismatic-response-429-on-graphql
The GraphQL operation SHOULD document a 429 (rate limited) response.
$.paths[/api].post.responses
warn
prismatic-info-contact
info.contact MUST be present.
$.info
warn
prismatic-info-license
info.license MUST be present.
$.info
error
prismatic-graphql-request-has-query
GraphQLRequest schema MUST require a `query` string field.
$.components.schemas.GraphQLRequest