oasis-tcs / sarif-spec

OASIS SARIF TC: Repository for development of the draft standard, where requests for modification should be made via Github Issues
https://github.com/oasis-tcs/sarif-spec
Other
163 stars 46 forks source link

Do we need an escaping mechanism for slashes in hierarchical strings? #264

Closed ghost closed 5 years ago

ghost commented 5 years ago

Hierarchical strings consist of forward-slash-separated components, so a component can't contain a slash. There are two options:

  1. Explicitly prohibit slashes in components.
  2. Define an escaping mechanism. For example, JSON Pointer (RFC 6901) is made of just such forward-slash-separated strings. It uses ~1 for literal slash, and (since ~ is now special) ~0 for a literal tilde.

Which shall it be?

ghost commented 5 years ago

Duplicate of #183.