MyCase · API Governance Rules

MyCase API Rules

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

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

Rule Categories

mycase

Rules

warn
mycase-operation-summary-title-case
Operation summaries must use Title Case (matches MyCase's Stoplight summaries).
$.paths[*][get,post,put,patch,delete].summary
warn
mycase-operation-id-camel-case
Operation IDs must be lowerCamelCase.
$.paths[*][get,post,put,patch,delete].operationId
warn
mycase-path-snake-case
Path segments (other than path parameters) must be snake_case to match MyCase conventions (case_stages, client_relationships, documents_folder).
$.paths
error
mycase-tag-defined
Every operation must include at least one tag.
$.paths[*][get,post,put,patch,delete]
warn
mycase-bearer-security
All operations must require bearer auth (MyCase Open API is gated).
$.paths[*][get,post,put,patch,delete]

Spectral Ruleset

Raw ↑
extends: [[spectral:oas, recommended]]
rules:
  mycase-operation-summary-title-case:
    description: Operation summaries must use Title Case (matches MyCase's Stoplight summaries).
    message: "Operation summary should be Title Case: {{value}}"
    severity: warn
    given: $.paths[*][get,post,put,patch,delete].summary
    then:
      function: pattern
      functionOptions:
        match: "^([A-Z0-9][\\w'-]*)(\\s+(a|an|and|or|the|for|of|to|in|on|by|at|with|from|as|but|nor|so|yet|per)\\b|\\s+[A-Z0-9][\\w'-]*)*$"

  mycase-operation-id-camel-case:
    description: Operation IDs must be lowerCamelCase.
    message: "operationId should be lowerCamelCase: {{value}}"
    severity: warn
    given: $.paths[*][get,post,put,patch,delete].operationId
    then:
      function: pattern
      functionOptions:
        match: "^[a-z][a-zA-Z0-9]*$"

  mycase-path-snake-case:
    description: Path segments (other than path parameters) must be snake_case to match MyCase conventions (case_stages, client_relationships, documents_folder).
    message: "Path segment is not snake_case: {{path}}"
    severity: warn
    given: $.paths
    then:
      field: "@key"
      function: pattern
      functionOptions:
        match: "^(/([a-z][a-z0-9_]*|\\{[a-zA-Z]+\\}))+$"

  mycase-tag-defined:
    description: Every operation must include at least one tag.
    severity: error
    given: $.paths[*][get,post,put,patch,delete]
    then:
      field: tags
      function: truthy

  mycase-bearer-security:
    description: All operations must require bearer auth (MyCase Open API is gated).
    severity: warn
    given: $.paths[*][get,post,put,patch,delete]
    then:
      field: security
      function: defined

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