core-api / python-openapi-codec

An OpenAPI codec for Core API.
Other
33 stars 35 forks source link

encode._get_parameters() not setting parameter default #41

Open tovmeod opened 7 years ago

tovmeod commented 7 years ago

When creating the parameter dict it should also get the default value, it should look like this:

parameter = { 'name': field.name, 'required': field.required, 'in': location, 'description': field_description, 'type': field_type or 'string', 'default': field.schema.default, }

see encode.py:183