I am trying to understand in which case the forward slash needs to be escaped when writing OpenApi specification document. Here (https://swagger.io/docs/specification/using-ref/) is written:
/ and ~ are special characters in JSON Pointers, and need to be escaped when used literally
(for example, in path names).
For example, to refer to the path /blogs/{blog_id}/new~posts, you would use:
$ref: '#/paths/~1blogs~1{blog_id}~1new~0posts'
In this example the first two forward slashes are not escaped?
Then later the following example is given:
$ref: '../resources/users.yaml'
$ref: '../resources/users-by-id.yaml'
And these paths are not escaped?
In which case all (or part of the) forward slashes need to be escaped with ~1 ?