Fieldwire · API Governance Rules

Fieldwire API Rules

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

9 Rules error 5 warn 4
View Rules File View on GitHub

Rule Categories

fieldwire

Rules

error
fieldwire-info-title
Info title must start with "Fieldwire".
$.info.title
error
fieldwire-info-license
Specs must reference the Fieldwire Terms of Service license.
$.info.license
error
fieldwire-server-host
Server URLs must use one of the Fieldwire API hosts (super, US, or EU).
$.servers[*].url
error
fieldwire-bearer-auth
All endpoints except token exchange must use BearerAuth.
$.components.securitySchemes
error
fieldwire-bearer-jwt
BearerAuth scheme must declare JWT bearer format.
$.components.securitySchemes.BearerAuth
warn
fieldwire-operation-id-camel
All operationIds must use camelCase.
$.paths.*.*.operationId
warn
fieldwire-summary-title-case
Operation summaries must use Title Case.
$.paths.*.*.summary
warn
fieldwire-snake-case-paths
Path segments and parameters must use snake_case (matches the Fieldwire convention).
$.paths
warn
fieldwire-id-int64
ID parameters must be integer/int64.
$.paths.*.*.parameters[?(@.name =~ /_id$/)]

Spectral Ruleset

Raw ↑
extends: spectral:oas
documentationUrl: https://developers.fieldwire.com/
rules:
  fieldwire-info-title:
    description: Info title must start with "Fieldwire".
    severity: error
    given: $.info.title
    then:
      function: pattern
      functionOptions:
        match: '^Fieldwire'
  fieldwire-info-license:
    description: Specs must reference the Fieldwire Terms of Service license.
    severity: error
    given: $.info.license
    then:
      - field: name
        function: pattern
        functionOptions:
          match: 'Fieldwire Terms of Service'
      - field: url
        function: pattern
        functionOptions:
          match: '^https://www\.fieldwire\.com/terms/'
  fieldwire-server-host:
    description: Server URLs must use one of the Fieldwire API hosts (super, US, or EU).
    severity: error
    given: $.servers[*].url
    then:
      function: pattern
      functionOptions:
        match: '^https://client-api\.(super|us|eu)\.fieldwire\.com(/api/v3)?$'
  fieldwire-bearer-auth:
    description: All endpoints except token exchange must use BearerAuth.
    severity: error
    given: $.components.securitySchemes
    then:
      function: truthy
      field: BearerAuth
  fieldwire-bearer-jwt:
    description: BearerAuth scheme must declare JWT bearer format.
    severity: error
    given: $.components.securitySchemes.BearerAuth
    then:
      - field: scheme
        function: pattern
        functionOptions:
          match: '^bearer$'
      - field: bearerFormat
        function: pattern
        functionOptions:
          match: '^JWT$'
  fieldwire-operation-id-camel:
    description: All operationIds must use camelCase.
    severity: warn
    given: $.paths.*.*.operationId
    then:
      function: pattern
      functionOptions:
        match: '^[a-z][a-zA-Z0-9]+$'
  fieldwire-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 ]+(?: [A-Z][A-Za-z0-9]*)*$'
  fieldwire-snake-case-paths:
    description: Path segments and parameters must use snake_case (matches the Fieldwire convention).
    severity: warn
    given: $.paths
    then:
      function: pattern
      functionOptions:
        match: '^/[a-z0-9_/{}]*$'
        property: '@key'
  fieldwire-id-int64:
    description: ID parameters must be integer/int64.
    severity: warn
    given: $.paths.*.*.parameters[?(@.name =~ /_id$/)]
    then:
      - field: schema.type
        function: pattern
        functionOptions:
          match: '^integer$'
      - field: schema.format
        function: pattern
        functionOptions:
          match: '^int64$'

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