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

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

Description

@on1link

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 ?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions