Open VidurMalik opened 9 years ago
How is your path in the schema markup? we resolve a path downwards or on the same dir from a current schema. So as far as i see not up an down. Take a look at the specs: https://github.com/salesking/json_schema_tools/blob/master/spec/schema_tools/ref_resolver_spec.rb#L61
or this schema: https://github.com/fidor/fidor_schema/tree/master/schema/v1.0
=> https://github.com/fidor/fidor_schema/blob/master/schema/v1.0/transaction.json
Example:
Directory Structure
If
parent.json
referencesv2/child.json
, the current implementation ofRefResolver::find_local_file_path
will returnv1/child.json
instead of the expectedv2/child.json
. It will also returnv1/child.json
even if the absolute path tov2/child.json
is specified in the$ref
.