AWS Redshift · API Governance Rules

AWS Redshift API Rules

Spectral linting rules defining API design standards and conventions for AWS Redshift.

11 Rules error 4 warn 6 info 1
View Rules File View on GitHub

Rule Categories

redshift

Rules

warn
redshift-operation-summary
All operations must have a summary starting with "Amazon Redshift"
$.paths[*][get,post,put,delete,patch]
error
redshift-operation-id
All operations must have an operationId
$.paths[*][get,post,put,delete,patch]
warn
redshift-operation-description
All operations should have a description
$.paths[*][get,post,put,delete,patch]
warn
redshift-components-schemas
Components schemas should be defined
$.components
warn
redshift-security-defined
API security schemes should be defined
$
error
redshift-info-title
Info object must have a title
$.info
error
redshift-info-version
Info object must have a version
$.info
warn
redshift-parameter-description
All parameters should have a description
$.paths[*][*].parameters[*]
error
redshift-response-description
All response objects must have a description
$.paths[*][*].responses[*]
warn
redshift-schema-type
Schema properties should have a type
$.components.schemas[*]
info
redshift-microcks-annotation
Operations should have x-microcks-operation annotation
$.paths[*][get,post,put,delete,patch]

Spectral Ruleset

Raw ↑
rules:
  redshift-operation-summary:
    description: All operations must have a summary starting with "Amazon Redshift"
    severity: warn
    given: "$.paths[*][get,post,put,delete,patch]"
    then:
      field: summary
      function: pattern
      functionOptions:
        match: "^Amazon Redshift"

  redshift-operation-id:
    description: All operations must have an operationId
    severity: error
    given: "$.paths[*][get,post,put,delete,patch]"
    then:
      field: operationId
      function: truthy

  redshift-operation-description:
    description: All operations should have a description
    severity: warn
    given: "$.paths[*][get,post,put,delete,patch]"
    then:
      field: description
      function: truthy

  redshift-components-schemas:
    description: Components schemas should be defined
    severity: warn
    given: "$.components"
    then:
      field: schemas
      function: truthy

  redshift-security-defined:
    description: API security schemes should be defined
    severity: warn
    given: "$"
    then:
      field: components.securitySchemes
      function: truthy

  redshift-info-title:
    description: Info object must have a title
    severity: error
    given: "$.info"
    then:
      field: title
      function: truthy

  redshift-info-version:
    description: Info object must have a version
    severity: error
    given: "$.info"
    then:
      field: version
      function: truthy

  redshift-parameter-description:
    description: All parameters should have a description
    severity: warn
    given: "$.paths[*][*].parameters[*]"
    then:
      field: description
      function: truthy

  redshift-response-description:
    description: All response objects must have a description
    severity: error
    given: "$.paths[*][*].responses[*]"
    then:
      field: description
      function: truthy

  redshift-schema-type:
    description: Schema properties should have a type
    severity: warn
    given: "$.components.schemas[*]"
    then:
      field: type
      function: truthy

  redshift-microcks-annotation:
    description: Operations should have x-microcks-operation annotation
    severity: info
    given: "$.paths[*][get,post,put,delete,patch]"
    then:
      field: x-microcks-operation
      function: truthy