Using the example given in above link, I am trying to get the multiple json schemas parsed and subsequently print them to stdout. However, it is throwing the following error :-
[{'json': {u'$schema': u'http://json-schema.org/draft-03/schema', u'type': u'object', u'properties': {u'album_type': {u'type': u'string', u'description': u"The type of the album: one of 'album', 'single', or 'compilation'."}, u'artists': {u'items': [Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python2.7/dist-packages/proxytypes.py", line 91, in wrapper
return method(self, *args, kwargs)
File "/usr/local/lib/python2.7/dist-packages/jsonref.py", line 212, in repr
return repr(self.subject)
File "/usr/local/lib/python2.7/dist-packages/proxytypes.py", line 131, in getattribute
return _oga(self, attr)
File "/usr/local/lib/python2.7/dist-packages/proxytypes.py", line 91, in wrapper
return method(self, *args, *kwargs)
File "/usr/local/lib/python2.7/dist-packages/proxytypes.py", line 209, in subject
self.cache = super(LazyProxy, self).subject
File "/usr/local/lib/python2.7/dist-packages/proxytypes.py", line 91, in wrapper
return method(self, args, kwargs)
File "/usr/local/lib/python2.7/dist-packages/proxytypes.py", line 195, in subject
return self.callback()
File "/usr/local/lib/python2.7/dist-packages/proxytypes.py", line 91, in wrapper
return method(self, *args, *kwargs)
File "/usr/local/lib/python2.7/dist-packages/jsonref.py", line 165, in callback
self._error("%s: %s" % (e.class.name, unicode(e)), cause=e)
File "/usr/local/lib/python2.7/dist-packages/proxytypes.py", line 91, in wrapper
return method(self, args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/jsonref.py", line 207, in _error
cause=cause
jsonref.JsonRefError
It runs fine with non-nested, single json schema.
Steps to debug:
Tried with both python 2.7 and python 3.
Tried changing the json & raml files etc.
https://ramlfications.readthedocs.io/en/latest/extendedusage.html#localfile
Using the example given in above link, I am trying to get the multiple json schemas parsed and subsequently print them to stdout. However, it is throwing the following error :-
[{'json': {u'$schema': u'http://json-schema.org/draft-03/schema', u'type': u'object', u'properties': {u'album_type': {u'type': u'string', u'description': u"The type of the album: one of 'album', 'single', or 'compilation'."}, u'artists': {u'items': [Traceback (most recent call last): File "", line 1, in
File "/usr/local/lib/python2.7/dist-packages/proxytypes.py", line 91, in wrapper
return method(self, *args, kwargs)
File "/usr/local/lib/python2.7/dist-packages/jsonref.py", line 212, in repr
return repr(self.subject)
File "/usr/local/lib/python2.7/dist-packages/proxytypes.py", line 131, in getattribute
return _oga(self, attr)
File "/usr/local/lib/python2.7/dist-packages/proxytypes.py", line 91, in wrapper
return method(self, *args, *kwargs)
File "/usr/local/lib/python2.7/dist-packages/proxytypes.py", line 209, in subject
self.cache = super(LazyProxy, self).subject
File "/usr/local/lib/python2.7/dist-packages/proxytypes.py", line 91, in wrapper
return method(self, args, kwargs)
File "/usr/local/lib/python2.7/dist-packages/proxytypes.py", line 195, in subject
return self.callback()
File "/usr/local/lib/python2.7/dist-packages/proxytypes.py", line 91, in wrapper
return method(self, *args, *kwargs)
File "/usr/local/lib/python2.7/dist-packages/jsonref.py", line 165, in callback
self._error("%s: %s" % (e.class.name, unicode(e)), cause=e)
File "/usr/local/lib/python2.7/dist-packages/proxytypes.py", line 91, in wrapper
return method(self, args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/jsonref.py", line 207, in _error
cause=cause
jsonref.JsonRefError
It runs fine with non-nested, single json schema.
Steps to debug:
Tried with both python 2.7 and python 3. Tried changing the json & raml files etc.
Kindly guide me in the right direction.
Thanks & Regards, Vipul