1Password · API Governance Rules
1Password API Rules
Spectral linting rules defining API design standards and conventions for 1Password.
6 Rules
warn 5
info 1
Rule Categories
defs
no
property
schema
Rules
warn
schema-declares-$schema
Every JSON Schema document should declare its $schema (draft).
$
warn
schema-draft-consistency
$schema should reference the 2020-12 draft (this API's convention).
$.$schema
info
schema-has-title
JSON Schema documents should declare a title.
$
warn
property-name-casing
Schema properties should be snake_case (the dominant convention in this API).
$..properties
warn
defs-name-casing
Schema $defs names should be PascalCase (the dominant convention in this API).
$..$defs
warn
no-empty-descriptions
Descriptions must not be empty strings.
$..description