Dun & Bradstreet · API Governance Rules
Dun & Bradstreet — dnb direct plus rules
Spectral linting rules defining API design standards and conventions for Dun & Bradstreet.
8 Rules
error 3
warn 4
info 1
Authorship not recorded
No authorship marker is recorded for this file. It is not presented as the provider's; it was most likely written by an API Evangelist pass before outputs were stamped.
Rule Categories
dnb
Rules
warn
dnb-duns-field-name
Identifier for a business should use the field name `duns`.
$.components.schemas..properties
error
dnb-operation-id-camel-case
Direct+ operationIds are lowerCamelCase verbs.
$.paths.*[get,post,put,delete,patch]
warn
dnb-tags-title-case
Tags use Title Case.
$.tags[*].name
warn
dnb-summary-title-case
Operation summaries use Title Case.
$.paths.*[get,post,put,delete,patch].summary
error
dnb-bearer-auth-required
All non-token operations must require bearer auth.
$.paths[?(@property != "/v3/token")].*[get,post,put,delete,patch]
error
dnb-version-in-path
Direct+ paths must be prefixed with /v{n}/.
$.paths
warn
dnb-country-code-iso2
Country codes use ISO 3166-1 alpha-2 (countryISOAlpha2Code).
$..parameters[?(@.name == 'country' || @.name == 'countryCode')]
info
dnb-pagination-page-size
Paginated list endpoints expose pageNumber and pageSize.
$.paths[?(@property =~ /search/)].get.parameters[*].name
Spectral Ruleset
Work with this as data
Every ruleset here is available over the APIs.io API and to AI agents over MCP.