json-schema-ref-parser icon indicating copy to clipboard operation
json-schema-ref-parser copied to clipboard

MissingPointerError: Token "smartylighting" does not exist.

Open KhudaDad414 opened this issue 4 years ago • 0 comments

Assume I have this JSON schema:

channels:
  'smartylighting/streetlights/1/0/event/{streetlightId}/lighting/measured':
    description: The topic on which measured values may be produced and consumed.
    parameters:
      streetlightId:
        description: The ID of the streetlight.
        schema:
          type: string

now if I try to parse the parameters using $refs.get('#/channels/smartylighting/streetlights/1/0/event/{streetlightId}/lighting/measured/parameters') I will get the above error. Is there a way to handle cases that token(path) itself contains '/' ?

KhudaDad414 avatar Jul 28 '21 08:07 KhudaDad414