Open dan-j opened 3 years ago
Looking more into this, I notice that jsonschema
actually implements JSONChildren() map[string]JSONPather
. Notice the value-type of the map is JSONPather
and not interface{}
.
I think this should be closed and add a new method to the relevant keywords within jsonschema
for JSONProps() map[string]interface{}
Issue
I'm trying to traverse a
*jsonschema.Schema
using this library and notice that this library declares the following interface:Note that the
JSONProps()
function is actually documented asJSONChildren
.Also, https://github.com/qri-io/jsonschema exposes the
JSONChildren()
function and notJSONProps()
.Do you have a suggested fix?
Two options:
jsonschema
package to implement bothJSONProps()
andJSONChildren()
(which implements the same behaviour)jsonschema
would be to updatego.mod
with the latest version.