Skip to content
This repository was archived by the owner on Mar 18, 2019. It is now read-only.

UnboundLocalError: local variable 'components' referenced before assignment #9

Open
on1link opened this issue Jan 25, 2018 · 3 comments

Comments

@on1link
Copy link

on1link commented Jan 25, 2018

Hi,
I'm getting this error when I trying to use jsonhyperschema codec load() method as follow:

50                             if component != 'definitions'
51                         ]
---> 52                     item = '_'.join(components).replace('-', '_')
53                     url = url.replace(orig, item)
54                     fields.append(Field(name=item, location='path', required=True))

UnboundLocalError: local variable 'components' referenced before assignment```

Offtopic: There's be an update for the new draft (draft-07) of JSON Hyper-Schema ?
@tomchristie
Copy link
Contributor

Okay, may gat around to looking at this, at some point.
Just as a data point, are you using JSON Hyperschema to describe your API?
Trying to get a feel for how important (or not) it is for us to maintain this codec.

@on1link
Copy link
Author

on1link commented Feb 20, 2018

Hello, yes I'm trying to use the new draft to describe my API with JSON Hyperschema, and generate Documentation, Postman Collection through it.

@handrews
Copy link

@on1link I just filed #12 asking about draft-07 support as I didn't guess from this issue's title that it would have reference draft-07 :-) Glad to see there is interest in the new draft!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants