yes but since we are auto-detecting the schema_location in the reader
anyway the :path is not really needed anymore


2013/6/28 Andy Nicholson <notifications@github.com>

> In lib/schema_tools/modules/attributes.rb:
>
> > @@ -17,8 +17,9 @@ module ClassMethods
> >          # @options opts [String] :path schema path
> >          # @options opts [SchemaTools::Reader] :reader instance, instead of global reader/registry
> >          def has_schema_attrs(schema, opts={})
> > -          reader = opts[:reader] || SchemaTools::Reader
> > -          schema = reader.read(schema, opts[:path])
> > +          reader          = opts[:reader] || SchemaTools::Reader
> > +          schema_location = opts[:path]   || opts[:schema]
>
> But there's already two option keys: :reader and :path - isn't it better
> to just add :schema as an extra key?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/salesking/json_schema_tools/pull/5/files#r4930908>
> .
>