Fix bug with JSONSchema and custom paths