Resolves the file for a schema name. The name comes from test code but still becomes a file
path, so it is sanitized: .. is removed and characters other than letters, digits, /,
_ and - become _.
Parameters
schemasDir: string
the schemas folder
name: string
schema name, e.g. "posts/getPost"
Returns string
the absolute path, e.g. <schemasDir>/posts/getPost.schema.json
Resolves the file for a schema name. The name comes from test code but still becomes a file path, so it is sanitized:
..is removed and characters other than letters, digits,/,_and-become_.