Yardi · API Governance Rules

Yardi API Rules

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

10 Rules error 2 warn 8
View Rules File View on GitHub

Rule Categories

yardi

Rules

warn
yardi-operation-summary-title-case
All operation summaries must use Title Case
$.paths[*][*].summary
warn
yardi-operation-id-camel-case
All operationIds must use camelCase
$.paths[*][*].operationId
error
yardi-must-have-operation-id
All operations must have an operationId
$.paths[*][get,post,put,patch,delete]
warn
yardi-must-have-tags
All operations must have at least one tag
$.paths[*][get,post,put,patch,delete]
warn
yardi-post-must-have-request-body
POST operations for imports must have a request body
$.paths[*][post]
warn
yardi-must-have-description
All operations must have a description
$.paths[*][get,post,put,patch,delete]
error
yardi-responses-must-have-200
All operations must have a 200 response
$.paths[*][get,post,put,patch,delete].responses
warn
yardi-responses-must-have-401
Authenticated operations must document 401 response
$.paths[*][get,post,put,patch,delete].responses
warn
yardi-must-have-contact
API must have contact information
$.info
warn
yardi-must-have-terms-of-service
API must have terms of service
$.info

Spectral Ruleset

Raw ↑
rules:
  yardi-operation-summary-title-case:
    description: All operation summaries must use Title Case
    message: "Operation summary '{{value}}' must use Title Case"
    given: "$.paths[*][*].summary"
    severity: warn
    then:
      function: pattern
      functionOptions:
        match: "^[A-Z][a-zA-Z0-9 ]*$"

  yardi-operation-id-camel-case:
    description: All operationIds must use camelCase
    message: "OperationId '{{value}}' must use camelCase"
    given: "$.paths[*][*].operationId"
    severity: warn
    then:
      function: pattern
      functionOptions:
        match: "^[a-z][a-zA-Z0-9]*$"

  yardi-must-have-operation-id:
    description: All operations must have an operationId
    message: "Operation is missing an operationId"
    given: "$.paths[*][get,post,put,patch,delete]"
    severity: error
    then:
      field: operationId
      function: truthy

  yardi-must-have-tags:
    description: All operations must have at least one tag
    message: "Operation is missing tags"
    given: "$.paths[*][get,post,put,patch,delete]"
    severity: warn
    then:
      field: tags
      function: truthy

  yardi-post-must-have-request-body:
    description: POST operations for imports must have a request body
    message: "POST operation importing data must have a request body"
    given: "$.paths[*][post]"
    severity: warn
    then:
      field: requestBody
      function: truthy

  yardi-must-have-description:
    description: All operations must have a description
    message: "Operation is missing a description"
    given: "$.paths[*][get,post,put,patch,delete]"
    severity: warn
    then:
      field: description
      function: truthy

  yardi-responses-must-have-200:
    description: All operations must have a 200 response
    message: "Operation is missing a 200 success response"
    given: "$.paths[*][get,post,put,patch,delete].responses"
    severity: error
    then:
      field: "200"
      function: truthy

  yardi-responses-must-have-401:
    description: Authenticated operations must document 401 response
    message: "Operation is missing a 401 unauthorized response"
    given: "$.paths[*][get,post,put,patch,delete].responses"
    severity: warn
    then:
      field: "401"
      function: truthy

  yardi-must-have-contact:
    description: API must have contact information
    message: "API info is missing contact details"
    given: "$.info"
    severity: warn
    then:
      field: contact
      function: truthy

  yardi-must-have-terms-of-service:
    description: API must have terms of service
    message: "API info is missing termsOfService"
    given: "$.info"
    severity: warn
    then:
      field: termsOfService
      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/yardi-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.