Skip to content

Format json-pointer: uri fragment, json pointer or both #328

Closed
@CroniD

Description

@CroniD

Hi there,

first: great work with draft-06. I really like it and I'm about to update my schemes for it. Looks really good so far.

But one thing is unclear to me:

8.3.9. json-pointer

This attribute applies to string instances.

A string instance is valid against this attribute if it is a valid
JSON Pointer, according to [RFC6901]

This means the "json pointer" representation or the uri fragment one, or both? Some validators like ajv (@epoberezkin) allow both versions, but the term "valid JSON pointer" may suggest otherwise. I guess most people will expect both representations to work, but as it is written above it may not be intended (strictly speaking)?
Implementationwise it should be a difference, because an uri fragment may contain percent-encoded characters, while the other one doesn't.

Best regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    clarificationItems that need to be clarified in the specification

    Type

    No type

    Projects

    Status

    Closed

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions