United States Fire Administration · API Governance Rules

United States Fire Administration API Rules

Spectral linting rules defining API design standards and conventions for United States Fire Administration.

7 Rules error 2 warn 5
View Rules File View on GitHub

Rule Categories

openfema

Rules

error
openfema-operation-ids-required
All operations must have operationIds.
$.paths[*][get,post,put,delete,patch]
warn
openfema-operations-have-tags
All operations should be tagged for grouping.
$.paths[*][get,post,put,delete,patch]
warn
openfema-parameters-have-descriptions
All query parameters should have descriptions.
$.paths[*][*].parameters[*]
error
openfema-success-responses
All operations must document 200 success response.
$.paths[*][get,post].responses
warn
openfema-json-responses
OpenFEMA operations should support JSON responses.
$.paths[*][get].responses.200.content
warn
openfema-schemas-have-descriptions
Schema components should have descriptions.
$.components.schemas[*]
warn
openfema-info-contact
API info should include contact information.
$.info

Spectral Ruleset

Raw ↑
rules:
  openfema-operation-ids-required:
    description: All operations must have operationIds.
    message: Operation must have an operationId.
    given: "$.paths[*][get,post,put,delete,patch]"
    then:
      field: operationId
      function: truthy
    severity: error

  openfema-operations-have-tags:
    description: All operations should be tagged for grouping.
    message: Operation must include at least one tag.
    given: "$.paths[*][get,post,put,delete,patch]"
    then:
      field: tags
      function: truthy
    severity: warn

  openfema-parameters-have-descriptions:
    description: All query parameters should have descriptions.
    message: Parameter must have a description.
    given: "$.paths[*][*].parameters[*]"
    then:
      field: description
      function: truthy
    severity: warn

  openfema-success-responses:
    description: All operations must document 200 success response.
    message: Operation must document a 200 success response.
    given: "$.paths[*][get,post].responses"
    then:
      field: "200"
      function: truthy
    severity: error

  openfema-json-responses:
    description: OpenFEMA operations should support JSON responses.
    message: >-
      OpenFEMA API operations should document application/json response content type.
    given: "$.paths[*][get].responses.200.content"
    then:
      function: schema
      functionOptions:
        schema:
          type: object
          properties:
            application/json:
              type: object
    severity: warn

  openfema-schemas-have-descriptions:
    description: Schema components should have descriptions.
    message: Schema component must include a description.
    given: "$.components.schemas[*]"
    then:
      field: description
      function: truthy
    severity: warn

  openfema-info-contact:
    description: API info should include contact information.
    message: API info block must contain a contact object.
    given: "$.info"
    then:
      field: contact
      function: truthy
    severity: warn

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/openfema-fire-data-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.