Comeet · API Governance Rules

Comeet API Rules

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

8 Rules error 3 warn 4 info 1
View Rules File View on GitHub

Rule Categories

comeet

Rules

error
comeet-info-contact
API info must include a contact block.
$.info
error
comeet-server-https
Server URLs must use HTTPS.
$.servers[*].url
warn
comeet-server-host
Public server URL should point to comeet.co.
$.servers[*].url
info
comeet-careers-base-path
Careers API server URL should include /careers-api/2.0.
$.servers[*].url
error
comeet-operation-id
Every operation must declare a unique operationId.
$.paths[*][get,post,put,patch,delete]
warn
comeet-operation-tags
Operations must declare at least one tag.
$.paths[*][get,post,put,patch,delete]
warn
comeet-token-query-param
Read endpoints must accept the public company `token` query parameter.
$.paths[*].get.parameters
warn
comeet-company-uid-path
Company-scoped endpoints must use a {company_uid} path parameter.
$.paths[?(@property.indexOf('company') > -1)]

Spectral Ruleset

Raw ↑
extends:
  - spectral:oas

# Spectral linting rules for the Comeet (Spark Hire Recruit) Careers API.
# Tuned to comeet.co careers-api conventions: tokenized GETs over HTTPS,
# company UID path parameters, and embeddable widget data shapes.
rules:
  comeet-info-contact:
    description: API info must include a contact block.
    severity: error
    given: "$.info"
    then:
      field: contact
      function: truthy

  comeet-server-https:
    description: Server URLs must use HTTPS.
    severity: error
    given: "$.servers[*].url"
    then:
      function: pattern
      functionOptions:
        match: "^https://"

  comeet-server-host:
    description: Public server URL should point to comeet.co.
    severity: warn
    given: "$.servers[*].url"
    then:
      function: pattern
      functionOptions:
        match: "comeet.co"

  comeet-careers-base-path:
    description: Careers API server URL should include /careers-api/2.0.
    severity: info
    given: "$.servers[*].url"
    then:
      function: pattern
      functionOptions:
        match: "/careers-api/"

  comeet-operation-id:
    description: Every operation must declare a unique operationId.
    severity: error
    given: "$.paths[*][get,post,put,patch,delete]"
    then:
      field: operationId
      function: truthy

  comeet-operation-tags:
    description: Operations must declare at least one tag.
    severity: warn
    given: "$.paths[*][get,post,put,patch,delete]"
    then:
      field: tags
      function: schema
      functionOptions:
        schema:
          type: array
          minItems: 1

  comeet-token-query-param:
    description: Read endpoints must accept the public company `token` query parameter.
    severity: warn
    given: "$.paths[*].get.parameters"
    then:
      function: schema
      functionOptions:
        schema:
          type: array
          contains:
            type: object
            properties:
              name:
                const: token
              in:
                const: query

  comeet-company-uid-path:
    description: Company-scoped endpoints must use a {company_uid} path parameter.
    severity: warn
    given: "$.paths[?(@property.indexOf('company') > -1)]"
    then:
      function: pattern
      functionOptions:
        match: "{company_uid}"

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/comeet-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.