CoreLogic (Cotality) · API Governance Rules

CoreLogic (Cotality) API Rules

Spectral linting rules defining API design standards and conventions for CoreLogic (Cotality).

10 Rules error 6 warn 4
View Rules File View on GitHub

Rule Categories

trestle

Rules

error
trestle-info-contact
API info object must declare contact info pointing at Trestle support.
$.info
error
trestle-server-https
Servers must use HTTPS.
$.servers[*].url
error
trestle-base-url
Base URL must reference the api.cotality.com Trestle OData endpoint.
$.servers[*].url
error
trestle-oauth2-client-credentials
Security must be OAuth2 Client Credentials against the cotality token endpoint.
$.components.securitySchemes.oauth2ClientCredentials.flows.clientCredentials.tokenUrl
warn
trestle-reso-resources
API must expose the canonical RESO Web API resources.
$.paths
warn
trestle-odata-query-parameters
Property collection endpoint must accept the standard OData query parameters.
$.paths['/Property'].get.parameters[*].name
error
trestle-operation-id
Every operation must define a camelCase operationId.
$.paths.*.*
warn
trestle-summary-title-case
Operation summaries must be in Title Case.
$.paths.*.*.summary
error
trestle-tags-required
Every operation must declare at least one tag.
$.paths.*.*
warn
trestle-pascal-case-resources
Resource paths must use PascalCase to match RESO Data Dictionary entity names.
$.paths

Spectral Ruleset

Raw ↑
extends: ["spectral:oas"]
documentationUrl: https://trestle-documentation.corelogic.com/webapi.html
rules:
  trestle-info-contact:
    description: API info object must declare contact info pointing at Trestle support.
    given: "$.info"
    severity: error
    then:
      field: contact
      function: truthy
  trestle-server-https:
    description: Servers must use HTTPS.
    given: "$.servers[*].url"
    severity: error
    then:
      function: pattern
      functionOptions:
        match: "^https://"
  trestle-base-url:
    description: Base URL must reference the api.cotality.com Trestle OData endpoint.
    given: "$.servers[*].url"
    severity: error
    then:
      function: pattern
      functionOptions:
        match: "api.cotality.com/trestle/odata"
  trestle-oauth2-client-credentials:
    description: Security must be OAuth2 Client Credentials against the cotality token endpoint.
    given: "$.components.securitySchemes.oauth2ClientCredentials.flows.clientCredentials.tokenUrl"
    severity: error
    then:
      function: pattern
      functionOptions:
        match: "https://api.cotality.com/trestle/oidc/connect/token"
  trestle-reso-resources:
    description: API must expose the canonical RESO Web API resources.
    given: "$.paths"
    severity: warn
    then:
      function: schema
      functionOptions:
        schema:
          type: object
          required:
            - /Property
            - /Member
            - /Office
            - /Media
  trestle-odata-query-parameters:
    description: Property collection endpoint must accept the standard OData query parameters.
    given: "$.paths['/Property'].get.parameters[*].name"
    severity: warn
    then:
      function: enumeration
      functionOptions:
        values:
          - $filter
          - $select
          - $expand
          - $orderby
          - $top
          - $skip
          - $count
          - $apply
          - Replication
          - PrettyEnums
  trestle-operation-id:
    description: Every operation must define a camelCase operationId.
    given: "$.paths.*.*"
    severity: error
    then:
      field: operationId
      function: truthy
  trestle-summary-title-case:
    description: Operation summaries must be in Title Case.
    given: "$.paths.*.*.summary"
    severity: warn
    then:
      function: pattern
      functionOptions:
        match: "^([A-Z][a-zA-Z0-9]*)(\\s+[A-Z$][a-zA-Z0-9$()]*)*$"
  trestle-tags-required:
    description: Every operation must declare at least one tag.
    given: "$.paths.*.*"
    severity: error
    then:
      field: tags
      function: truthy
  trestle-pascal-case-resources:
    description: Resource paths must use PascalCase to match RESO Data Dictionary entity names.
    given: "$.paths"
    severity: warn
    then:
      field: "@key"
      function: pattern
      functionOptions:
        match: "^/([A-Z][a-zA-Z]+|\\$metadata)(\\(.*\\))?$"

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/corelogic-trestle-reso-web-api-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.