voxpupuli / json-schema

Ruby JSON Schema Validator
MIT License
1.52k stars 242 forks source link

Accept explicit base URI so that relative $ref works when schema is passed as a String or Hash #403

Open pdrakeweb opened 6 years ago

pdrakeweb commented 6 years ago

I would like to be able to specify an explicit base URI when passing a schema as a String or Hash so that relative $refs will work. As it stands today, the relative $refs get absolutized with the current working directory because Hash or String type schemas do not have a valid base URI.