Skip to content
This repository was archived by the owner on Oct 23, 2026. It is now read-only.
This repository was archived by the owner on Oct 23, 2026. It is now read-only.

JSON Path: the RFC exists, this format does not follow it — pick a path and an escape route #28

Open

Description

@kinlane

Raised in office hours on 2026-08-21, confirmed first-hand by two people in the room, and not
previously filed anywhere.

The facts

  • JSON Path is a ratified RFC (RFC 9535,
    February 2024).
  • The dialect this format uses is not compatible with it. Not "mostly compatible" — the
    behavior differs.
  • This is already biting people who use two formats at once: OpenAPI Overlay follows the RFC.
    Expressions that work in an Overlay do not work here, and expressions that work here do not
    work in an Overlay. That is a live defect in the experience of anyone doing both.

A specification that is being written now, in 2026, and that is meant to be independently
implementable, cannot quietly define its own path language and not say so.

Why this is not simply "adopt the RFC"

The migration cost is the whole problem.

  • The change is severely backward-incompatible — the comparison offered on the call was
    OpenAPI moving to JSON Schema, "even more so."
  • Prior evidence from inside the implementation: the minor breaking changes between v3 and v4
    produced "it doesn't work anymore, fix it." This is not a minor change. Every non-trivial
    ruleset in existence would need rewriting, and every author would need to learn new syntax.
  • The failure mode is not "people complain." It is people stay on Spectral, which makes
    every other decision in this repo moot.

Adoption is not only about solving someone's issue. It's also about taking out the pain points.

The three options, as they stand

  1. Specify the existing dialect as-is. Honest, cheap, and permanently diverges from a
    ratified standard. Every implementer inherits a bespoke path language.
  2. Adopt RFC 9535 outright. Correct, and probably fatal to adoption without (3).
  3. Adopt RFC 9535 with a declared escape path — a compatibility mode that runs existing
    rules unchanged, a per-ruleset or per-document declaration of which dialect applies, and an
    automated or semi-automated conversion tool. Expensive, and the only version anyone in
    the room thought would actually be taken up.

What this issue needs to produce

  • A written inventory of the incompatibilities between the current dialect and RFC 9535 —
    not an impression, a list. Nobody can weigh this without it.
  • A decision on which of the three options is the plan, and what the escape path is if it
    is (3).
  • A note on how this interacts with annotations / aliases (Elevate aliases out of the core ruleset into their own namespace, and get rules off JSONPath #20). If annotations become the
    primary authoring route and paths become the fallback, the blast radius of the dialect change
    shrinks considerably — which may be the cheapest way through this. That connection was made
    on the call and deserves testing rather than assuming.
  • Conformance-suite consequences (Build the conformance suite — and no blessed implementation #9): whichever dialect is normative, the suite has to test it.

Related: #9, #11, #20.

Activity

  1. added
    question
    roadmap
    maturity:discussing
    on Aug 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    maturity:discussingquestionroadmap

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions