LanceDB · API Governance Rules

LanceDB API Rules

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

7 Rules error 4 warn 3
View Rules File View on GitHub

Rule Categories

lancedb

Rules

warn
lancedb-info-title-mentions-lance
The OpenAPI title must mention "Lance" so consumers know this is a Lance Namespace-conformant API.
$.info.title
error
lancedb-paths-must-be-v1-prefixed
All Lance Namespace REST paths must be prefixed with /v1/ for forward-compatible versioning.
$.paths[*]~
error
lancedb-operation-must-have-tag
Each operation must be tagged with one of the canonical Lance Namespace tags.
$.paths[*][get,post,put,delete,patch]
error
lancedb-operation-id-pascal-case
operationId must be PascalCase (e.g. CreateTable, ListTableIndices).
$.paths[*][get,post,put,delete,patch].operationId
error
lancedb-security-required
The API must declare at least one of OAuth2, BearerAuth, or ApiKeyAuth security schemes.
$.components.securitySchemes
warn
lancedb-response-error-shape
Operations must declare 400, 401, 403, 404 and 5XX responses for uniform error handling.
$.paths[*][get,post,put,delete,patch].responses
warn
lancedb-no-empty-summary
Each operation should have a non-empty summary.
$.paths[*][get,post,put,delete,patch]

Spectral Ruleset

Raw ↑
extends: [[spectral:oas, all]]
documentationUrl: https://github.com/api-evangelist/lancedb/blob/main/rules/lancedb-rules.yml
rules:
  lancedb-info-title-mentions-lance:
    description: The OpenAPI title must mention "Lance" so consumers know this is a Lance Namespace-conformant API.
    severity: warn
    given: $.info.title
    then:
      function: pattern
      functionOptions:
        match: "(?i)lance"

  lancedb-paths-must-be-v1-prefixed:
    description: All Lance Namespace REST paths must be prefixed with /v1/ for forward-compatible versioning.
    severity: error
    given: $.paths[*]~
    then:
      function: pattern
      functionOptions:
        match: "^/v1/"

  lancedb-operation-must-have-tag:
    description: Each operation must be tagged with one of the canonical Lance Namespace tags.
    severity: error
    given: $.paths[*][get,post,put,delete,patch]
    then:
      field: tags
      function: schema
      functionOptions:
        schema:
          type: array
          minItems: 1
          items:
            type: string
            enum: [Namespace, Table, Index, Tag, Transaction, Metadata, Data]

  lancedb-operation-id-pascal-case:
    description: operationId must be PascalCase (e.g. CreateTable, ListTableIndices).
    severity: error
    given: $.paths[*][get,post,put,delete,patch].operationId
    then:
      function: pattern
      functionOptions:
        match: "^[A-Z][A-Za-z0-9]+$"

  lancedb-security-required:
    description: The API must declare at least one of OAuth2, BearerAuth, or ApiKeyAuth security schemes.
    severity: error
    given: $.components.securitySchemes
    then:
      function: schema
      functionOptions:
        schema:
          type: object
          anyOf:
            - required: [OAuth2]
            - required: [BearerAuth]
            - required: [ApiKeyAuth]

  lancedb-response-error-shape:
    description: Operations must declare 400, 401, 403, 404 and 5XX responses for uniform error handling.
    severity: warn
    given: $.paths[*][get,post,put,delete,patch].responses
    then:
      function: schema
      functionOptions:
        schema:
          type: object
          required: ["400", "401", "403", "404"]

  lancedb-no-empty-summary:
    description: Each operation should have a non-empty summary.
    severity: warn
    given: $.paths[*][get,post,put,delete,patch]
    then:
      field: summary
      function: truthy

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