Skip to content
This repository was archived by the owner on Mar 18, 2019. It is now read-only.
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixing tests once again
  • Loading branch information
xxmatyuk committed Jan 18, 2018
commit 84a1d7b1ebd38a41a8d4940c7455706221c4c79c
2 changes: 1 addition & 1 deletion openapi_codec/encode.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ def _get_parameters(link, encoding, definitions):
definition_data = _get_field_definition_data(field, definitions)

definition_data = definition_data.get('properties')
defs = [d for d in definitions if definitions.get(d).get('properties') == definition_data]
defs = filter(lambda d: definitions.get(d).get('properties') == definition_data, definitions)

if defs:
# Note: Python2.X <-> Python3.X
Expand Down
2 changes: 1 addition & 1 deletion tests/test_encode.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ def test_clashing_names(self):
expected_v2_list_params = [
{
'schema': {
'required': ['author', 'co_authoors'],
'required': ['author', 'co_authors'],
'type': 'object',
'properties': {
'co_authors': {
Expand Down