spectral icon indicating copy to clipboard operation
spectral copied to clipboard

JSONPath is an RFC now

Open dret opened this issue 11 months ago • 3 comments

Describe the bug

Documentation should be updated regarding JSONPath status. It is RFC 9535 now.

dret avatar Feb 01 '25 10:02 dret

This is potentially dependent on JSONPath-plus having support for RFC 9535 (https://github.com/JSONPath-Plus/JSONPath/issues/205) or changing the implementation of spectral to use another library.

mnaumanali94 avatar Feb 04 '25 15:02 mnaumanali94

On 2025-02-04 16:47, Nauman wrote:

This is potentially dependent on JSONPath-plus having support for RFC 9535 (JSONPath-Plus/JSONPath#205 https://github.com/JSONPath-Plus/JSONPath/issues/205) or changing the implementation of spectral to use another library.

Good point, I was naively assuming that JSONPath-plus is an implementation of RFC 9535 but it is not. My apologies for the confusion.

I am updating my PR to state that even though Spectral supports JSONPath, it is not the language that's standardized in the RFC of the same name.

dret avatar Feb 04 '25 16:02 dret

Some interesting context about the slightly confusing history and evolution of the specification and implementations: https://github.com/P0lip/nimma/issues/10

dret avatar Feb 04 '25 16:02 dret