Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

write parameters should handle lists as well as maps #28

Merged
merged 1 commit into from
Jan 30, 2018

Conversation

kerrd89
Copy link
Contributor

@kerrd89 kerrd89 commented Jan 30, 2018

Using swagger to generate API documentation, the parameters field is not generated as a map. When swagger_slate_markdown_writer calls write_parameters, the method to update the parameters in the file never triggers because of the guard clause map_size(params) > 0.

This pr updates that guard clause to accept lists as well as maps, and now the markdown_writer works as the documentation implies.

@kerrd89
Copy link
Contributor Author

kerrd89 commented Jan 30, 2018

closes issue #29

@OpakAlex OpakAlex merged commit 87c719d into api-hogs:master Jan 30, 2018
@OpakAlex
Copy link
Member

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants