Jack Henry & Associates · API Governance Rules

Jack Henry & Associates API Rules

Spectral linting rules defining API design standards and conventions for Jack Henry & Associates.

3 Rules error 2 warn 1
View Rules File View on GitHub

Rule Categories

jxchange

Rules

error
jxchange-paths-versioned
jXchange REST paths MUST live under /jxchange/v1.
$.paths.*~
warn
jxchange-summary-title-case
Operation summaries should use Title Case.
$.paths[*][get,post,put,delete,patch].summary
error
jxchange-routing-number-pattern
routingNumber properties MUST be 9 digits.
$..properties.routingNumber.pattern,$..properties.beneficiaryRoutingNumber.pattern

Spectral Ruleset

Raw ↑
extends: [[spectral:oas, all]]
rules:
  jxchange-paths-versioned:
    description: jXchange REST paths MUST live under /jxchange/v1.
    given: $.paths.*~
    severity: error
    then:
      function: pattern
      functionOptions:
        match: '^/jxchange/v1/'
  jxchange-summary-title-case:
    description: Operation summaries should use Title Case.
    given: $.paths[*][get,post,put,delete,patch].summary
    severity: warn
    then:
      function: pattern
      functionOptions:
        match: '^([A-Z][a-zA-Z0-9]*\s?)+$'
  jxchange-routing-number-pattern:
    description: routingNumber properties MUST be 9 digits.
    given: "$..properties.routingNumber.pattern,$..properties.beneficiaryRoutingNumber.pattern"
    severity: error
    then:
      function: pattern
      functionOptions:
        match: '\^\[0-9\]\{9\}\$'