Skip to content

The schema rejects lowercase x- extensions that the specification says are valid #122

Closed

Description

@kinlane

The published 0.23 specification, line 1197:

Custom property types are prefixed x- or X-. Both cases are valid. Lower case matches the convention used by OpenAPI and JSON Schema and is preferred.

The schema does not do that. patternProperties is ^X- — uppercase only — so every lowercase extension fails validation against a specification that explicitly permits it, and recommends it.

The prose and the schema disagree, and the schema is the half machines read.

Scale

Measured 2026-08-29 across 27,657 apis.yml files in the APIs.io catalog, providers carrying a lowercase extension the schema rejects:

x-source        17,156        x-tier          16,034
x-enrichment    16,430        x-tier-reason   16,008
x-type          16,177        x-backed-by     13,732

Proposed

^X- → ^[Xx]-, in both places it appears. Purely permissive.

Status

Committed to develop (b3b37c1). Not published, for the same reason as the sibling issue.

Worth noting this had been mis-filed downstream as a pipeline defect — api-evangelist/roadmap#14 lists "x- extensions must be uppercase X-" as something the profiling pipeline should fix. The documents were right and the schema was wrong.

Activity

  1. kinlane commented on Oct 21, 2026

    @kinlane
    ContributorAuthor

    Fixed. schema_0.23.yml has accepted ^[Xx]- since b3b37c1 (2026-08-29), and apisjson.org has served that version since a5e79b1. In 0.24, #128 removed the root extension rule altogether. What the rule should be is now part of the 0.25 Extensions issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions