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

@on1link

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions