SmartRecruiters · API Governance Rules

SmartRecruiters API Rules

Spectral linting rules defining API design standards and conventions for SmartRecruiters.

10 Rules error 4 warn 6
View Rules File View on GitHub

Rule Categories

smartrecruiters

Rules

warn
smartrecruiters-operation-tags
All operations must have at least one tag for grouping
$.paths[*][*]
error
smartrecruiters-operation-ids
All operations must have an operationId in camelCase
$.paths[*][*]
warn
smartrecruiters-summary-title-case
Operation summaries must use Title Case
$.paths[*][*].summary
warn
smartrecruiters-pagination-params
List operations should support limit and offset pagination parameters
$.paths[*].get
warn
smartrecruiters-list-result-wrapper
List endpoints should return a ListResult wrapper with limit, offset, totalFound, and content fields
$.paths[*].get.responses.200.content['application/json'].schema
warn
smartrecruiters-company-identifier-path
Paths that access company-scoped resources must include companyIdentifier path parameter
$.paths['/v1/companies/{companyIdentifier}/*']
error
smartrecruiters-error-responses
All operations must define 401 and 403 error responses
$.paths[*][post,put,patch,delete]
error
smartrecruiters-content-type
Request bodies must use application/json content type
$.paths[*][post,put,patch].requestBody.content
error
smartrecruiters-security-scheme
API must define authentication security schemes (ApiKey or OAuth2)
$.components.securitySchemes
warn
smartrecruiters-no-trailing-slashes
API paths must not have trailing slashes
$.paths

Spectral Ruleset

Raw ↑
extends: spectral:oas
rules:
  smartrecruiters-operation-tags:
    description: All operations must have at least one tag for grouping
    severity: warn
    given: "$.paths[*][*]"
    then:
      field: tags
      function: truthy

  smartrecruiters-operation-ids:
    description: All operations must have an operationId in camelCase
    severity: error
    given: "$.paths[*][*]"
    then:
      field: operationId
      function: truthy

  smartrecruiters-summary-title-case:
    description: Operation summaries must use Title Case
    severity: warn
    given: "$.paths[*][*].summary"
    then:
      function: pattern
      functionOptions:
        match: "^[A-Z][a-zA-Z0-9 ]*$"

  smartrecruiters-pagination-params:
    description: List operations should support limit and offset pagination parameters
    severity: warn
    given: "$.paths[*].get"
    then:
      function: schema
      functionOptions:
        schema:
          type: object
          properties:
            parameters:
              type: array
              contains:
                type: object
                properties:
                  name:
                    enum: [limit, offset]

  smartrecruiters-list-result-wrapper:
    description: >-
      List endpoints should return a ListResult wrapper with limit, offset,
      totalFound, and content fields
    severity: warn
    given: "$.paths[*].get.responses.200.content['application/json'].schema"
    then:
      function: schema
      functionOptions:
        schema:
          type: object
          properties:
            '$ref':
              type: string

  smartrecruiters-company-identifier-path:
    description: >-
      Paths that access company-scoped resources must include companyIdentifier
      path parameter
    severity: warn
    given: "$.paths['/v1/companies/{companyIdentifier}/*']"
    then:
      function: truthy

  smartrecruiters-error-responses:
    description: All operations must define 401 and 403 error responses
    severity: error
    given: "$.paths[*][post,put,patch,delete]"
    then:
      field: responses
      function: schema
      functionOptions:
        schema:
          type: object
          required:
            - '401'
            - '403'

  smartrecruiters-content-type:
    description: Request bodies must use application/json content type
    severity: error
    given: "$.paths[*][post,put,patch].requestBody.content"
    then:
      function: schema
      functionOptions:
        schema:
          type: object
          required:
            - 'application/json'

  smartrecruiters-security-scheme:
    description: API must define authentication security schemes (ApiKey or OAuth2)
    severity: error
    given: "$.components.securitySchemes"
    then:
      function: truthy

  smartrecruiters-no-trailing-slashes:
    description: API paths must not have trailing slashes
    severity: warn
    given: "$.paths"
    then:
      function: pattern
      functionOptions:
        notMatch: "/$"

Work with this as data

Every ruleset here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for spectral rules

4 MCP tools reach this
  • find_rulesBrowse and filter every ruleset in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This ruleset
curl "https://apis.io/api/v1/rules/smartrecruiters-rules"
All spectral rules
curl "https://apis.io/api/v1/rules?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.