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

encode._get_parameters() not setting parameter default #41

Open
tovmeod opened this issue Jun 20, 2017 · 0 comments
Open

encode._get_parameters() not setting parameter default #41

tovmeod opened this issue Jun 20, 2017 · 0 comments

Comments

@tovmeod
Copy link

tovmeod commented Jun 20, 2017

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

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

1 participant