Mangopay · API Governance Rules

Mangopay API Rules

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

2 Rules warn 2
View Rules File View on GitHub

Rule Categories

no property

Rules

warn
property-name-casing
Schema properties should be PascalCase (the dominant convention in this API).
$..properties
warn
no-empty-descriptions
Descriptions must not be empty strings.
$..description

Spectral Ruleset

Raw ↑
# mangopay — JSON Schema Spectral ruleset (strengthened)
# Plain Spectral. Rules measured from this provider's own JSON Schema
# conventions by strengthen_jsonschema.py, then self-validated against them.
#
# Provenance:
#   - property-name-casing: pascal @ 93% (n=340)
rules:
  property-name-casing:
    description: Schema properties should be PascalCase (the dominant convention in this API).
    severity: warn
    given: $..properties
    then:
      field: '@key'
      function: pattern
      functionOptions:
        match: ^[A-Z][A-Za-z0-9]*$
  no-empty-descriptions:
    description: Descriptions must not be empty strings.
    severity: warn
    given: $..description
    then:
      function: truthy